How to control P-Asserted-Id value?

Hello,

While working on a new Asterisk 16.28.0 setup, I’m observing Asterisk the following.

Alice is calling Bob over the PSTN.
Alice’s phone, connected though PJSIP, has the following settings:
send_pai=true
trust_id_inbound=true
trust_id_outbound=true

When Asterisk sends a final 200 OK back to Alice’s phone, it includes a P-Asserted-Identity field valued to something like <sip: s@mydomain.com>.
This “s” string is then displayed on Alice’s phone screen.

  1. Where does this “s” value come from ? In my testing, it seems to match the dialplan extension that called the Dial app ?
  2. How can I control this value and send back a more useful value ?

Best regards

Why are you working on a new system with an unsupported version of Asterisk?

https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information

This is the version of current debian stable :wink:

Adding an I (capital i)option to Dial and preceding Dial with a CONNECTEDLINE statement made it.

same = n,Set(CONNECTEDLINE(num,i)=123456)
same = n,Dial(PJSIP/123456@trunk,,I)

Thanks for helping

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.