Bad Caller ID with ringgroup dial PJSIP

I am using Asterisk 13.3.2 with PJSIP and when dialing two endpoints, it will not show the right caller ID. I did not have this problem with Chansip. Am I missing something? As you will see on the CLI the caller ID is present just before dialing “Asterisk test” <2727>".

The problem only happen if I call from a Cisco phone. I did a test by calling from a softphone and a polycom phone and the caller id is displayed correctly.

Here is part of my dialplan and what I see in asterisk and on the actual phone ringing:


same => n,NoOp(My caller ID is {CALLERID(all)}) same => n,Dial(PJSIP/{IP_Peer}&PJSIP/${Analog_Peer},20)


Executing [start@Sub_Ringgroup:16] NoOp(“PJSIP/U_9172-00000062”, “My caller ID is “Asterisk test” <2727>”) in new stack
[Jun 5 14:34:48] – Executing [start@Sub_Ringgroup:17] Dial(“PJSIP/U_9172-00000062”, “PJSIP/U_8374&PJSIP/2709,20”) in new stack
[Jun 5 14:34:48] – Called PJSIP/U_8374
[Jun 5 14:34:48] – Called PJSIP/2709
[Jun 5 14:34:48] == Using SIP RTP Audio TOS bits 184

Display on my phone:

Nevermind, it was the callerid_Privacy in the realtime db that had nothing in it. It has to be a null value.