CALLERID On Pjsip Doesn’t Work?

Home » Asterisk Users » CALLERID On Pjsip Doesn’t Work?
Asterisk Users 4 Comments

Asterisk 13.8

Is CALLERID(all) supposed to wok for pjsip? When I do this:

exten => 1234,Set(CALLERID(all)=”Jon Doe” <+123456789>)
same => n,Dial(PJSIP/phone123, 30)

I expect the callerid to be as set, but is always seems to be “phone123”, the name of the endpoint.

Andrew

4 thoughts on - CALLERID On Pjsip Doesn’t Work?

  • Andrew Ivins wrote:

    Your exten line has no priority, is that how it is in your dialplan?

    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)

    If those don’t work I’d suggest showing the console and your configuration for the endpoint as it’s something there instead.

    Cheers,

  • Actually no, I stole that line from an earlier email to this list. Mine has a priority.

    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)a23)
    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.

    In the pjsip debug, the callerid I am trying to set doesn’t appear anywhere.

    I’m using your Sorcery stuff backing into astb for pjsip, but I’ve done a little script to dump it back into text so I can override it in the config file. Therefore it’s a bit verbose. Thanks for looking.

    [DEADDEADBEEF]
    type=aor support_path=true default_expiration600
    qualify_timeout=3.000000
    mailboxesminimum_expiration`
    outbound_proxyvoicemail_extensionmaximum_expirationr00
    qualify_frequency=0
    authenticate_qualify

  • Andrew Ivins wrote:

    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.