P-Asserted Identity problems

P-Asserted Identity

  • I know what P-Asserted Identity is.
  • I have limited experience with P-Asserted Identity
  • I have no idea.

0 voters

I have a specific SIP carrier that I am in the process of interoperability testing. They require the P-Asserted Identity to be sent with the Invite.
There is little documentation on this. I have modified the extensions_custom and had mixed results. Ultimately what I need is the P-Asserted Identity to be included dynamically. I cant seem to come up with the right code combination and or field.
Let me give some examples:
[from-internal-custom]
exten => _1800NXXXXXX,1,SIPAddHeader(P-Asserted-Identity: "Your Sip"
When I call an 800 number with the above code in place, The call is placed fine. The trace looks great. But I am statically entering all the information.
What I am looking for is a variable that will use the outbound caller ID. There are a few references for this. I tried the following.
[from-internal-custom]
exten => _1800NXXXXXX,1,SipAddHeader(P-Asserted-Identity: “Your Sip” )
When I use this code. This is a cut of the trace from the Invite.
P-Asserted-Identity: “Your Sip Inc.” {CALLERIDNUM}
So not sure what I am doing wrong, but any advice out there.
Regards,
Lance - Tampa, FL.

Seems the $ sign in front of {CALLERIDNUM} is missing, also you should use CALLERID(num) and not CALLERID (I assume you’re using * 1.4.x), so try put this in the from-internal-custom context:

exten => _1800NXXXXXX,1,SipAddHeader(P-Asserted-Identity: ${CALLERID(num)})

Cheers.

Marco Bruni