[asterisk-users] CALLERID on pjsip doesn't work?

Joshua Colp jcolp at digium.com
Mon Jul 4 06:18:50 CDT 2016


Andrew Ivins wrote:
> On 1 July 2016 at 17:41, Joshua Colp <jcolp at digium.com
> <mailto:jcolp at digium.com>> wrote:
>
>
>         exten => 1234,Set(CALLERID(all)="Jon Doe" <+123456789>)
>         same => n,Dial(PJSIP/phone123, 30)
>
>
>     Your exten line has no priority, is that how it is in your dialplan?
>
>
> Actually no, I stole that line from an earlier email to this list. Mine
> has a priority.
>
>     If not you can isolate things a bit further by trying the following:
>
>     Set(CALLERID(all)=Jon Doe <+123456789>)
>
>     Or individually:
>
>     Set(CALLERID(name)=Jon Doe)
>     Set(CALLERID(num)=+123456789)
>
>
> Tried many permutations of this, and the only thing I can get to happen
> is to make the call present as Anonymous by changing the
> pres-name/pres-num setting.
>
> It's not a production system, dialplan is pretty simple:
>
> same => _X.1,Set(CALLERID(name-pres)=allowed)
> same => n,Set(CALLERID(num-pres)=allowed)
> same => n,Set(CALLERID(name)=Fred)
> same => n,Set(CALLERID(num)=6123)
> same => n,Dial(PJSIP/DEADDEADBEEF, 30)
> same => n,Hangup()
>
> DEADDEADBEEF is the name of the endpoint and the endpoint works. I use
> MAC addresses and plan to dynamically map extensions to them later on
> (kind of like user mode in freepbx).
>
> In the console, if I log the value of CALLERID, it is what I expect to
> it to be.
>

<snip>

You have from_user set which will override the user in the From header 
which is where callerid would be. You also don't have send_rpid or 
send_pai turned on so there would be no alternate way to send it. Try 
setting send_rpid or send_pai to yes and trying again.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org




More information about the asterisk-users mailing list