P-Asserted Identity problems

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” sip:+15555551212

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” sip:{CALLERIDNUM})

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.

Your two examples look the same?

not really sure what you tried and what your getting. can you please post the dialplan again + the relevant parts of the log file?