I got this working by adding the following line to my sip profile config:

<param name="p-asserted-id-parse" value="verbatim"/>


2014-07-24 10:33 GMT+03:00 Ričardas Stoma <ricardas.stoma@gmail.com>:
Hello guys, i have a problem when i try to read P-Asserted-Identity header.
Let's say i send to freeswitch this header:

P-Asserted-Identity: <sip:123456789 at 192.168.0.73:5060;user=phone>

But when i try to read this header in my dialplan, i get:

123456789

When i check channel variables i see:

variable_sip_P-Asserted-Identity: 370370370370

maybe there is a way to read full P-Asserted-Identity header? I need to
resend this header without modifying it. Is it possible?