# P-Asserted Identity problems

**URL:** <https://community.asterisk.org/t/p-asserted-identity-problems/21474>\
**Category:** Asterisk Support\
**Created:** [June 16, 2008, 4:45pm UTC](https://community.asterisk.org/t/p-asserted-identity-problems/21474 "2008-06-16T16:45:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lancekoster](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lancekoster](https://community.asterisk.org/u/lancekoster)\
**Post date:** [June 16, 2008, 4:45pm UTC](https://community.asterisk.org/t/p-asserted-identity-problems/21474/1 "2008-06-16T16:45:05Z")

</div>

P-Asserted Identity

_Poll ([view on site](https://community.asterisk.org/t/p-asserted-identity-problems/21474/1))_

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.

---

<div class="post-metadata">

**Author:** ![mbruni](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mbruni](https://community.asterisk.org/u/mbruni)\
**Post date:** [June 17, 2008, 7:48am UTC](https://community.asterisk.org/t/p-asserted-identity-problems/21474/2 "2008-06-17T07:48:39Z")

</div>

> [@](#):
>
> When I use this code. This is a cut of the trace from the Invite.  
> P-Asserted-Identity: “Your Sip Inc.” {CALLERIDNUM}

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:

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

Cheers.

Marco Bruni
