[Freeswitch-users] Multiple P-Asserted-Identity Headers

George F. Phelps GeorgePhelps at gfphelps.com
Tue Jan 6 16:57:45 MSK 2015

Michael Jerris,


Thanks for pointing out the comma delimited syntax.  However…


I am still trying to get setting my outbound caller ID to work.  I noticed, in this Freeswitch SIP trace…


send 1202 bytes to udp/[]:5060 at 07:12:09.474756:


   INVITE sip:1770XXXXXXX at SIP/2.0

   Via: SIP/2.0/UDP;rport;branch=z9hG4bKKDN5acD6Zcp2g

   Max-Forwards: 69

   From: "George F Phelps" <sip:1404XXXXXXX at>;tag=gpmpmpp142SFH

   To: <sip:1770XXXXXXX at>

   Call-ID: 146d208a-1040-1233-1bbe-0a1aa9c1784d

   CSeq: 69937100 INVITE

   Contact: <sip:gw+switch2voip.us at;transport=udp;gw=switch2voip.us>

   User-Agent: FreeSWITCH-mod_sofia/1.5.15b+git~20141230T150632Z~1965b3b18d~64bit


   Supported: timer, path, replaces

   Allow-Events: talk, hold, conference, refer

   Privacy: none

   Content-Type: application/sdp

   Content-Disposition: session

   Content-Length: 251

   P-Asserted-ID: "George F Phelps", <sip:1404XXXXXXX at>, tel:+1404XXXXXXX

   X-FS-Support: update_display,send_info

   P-Asserted-Identity: "George F Phelps" <sip:1404XXXXXXX at>



   o=FreeSWITCH 1420520731 1420520732 IN IP4


   c=IN IP4

   t=0 0

   m=audio 25598 RTP/AVP 0 8 101 13

   a=rtpmap:0 PCMU/8000

   a=rtpmap:8 PCMA/8000

   a=rtpmap:101 telephone-event/8000

   a=fmtp:101 0-16




…that there is apparently both a “P-Asserted-Identity” and a “P-Asserted-ID” header.  What’s up with this?  Are there two different headers?  Is the Freeswitch SIP trace a formatted dump of the SIP packet, or is it a series of debug printf statements from where the data is added to the packet?






From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael Jerris
Sent: Monday, January 05, 2015 1:34 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Multiple P-Asserted-Identity Headers


put them together as a single header separated by a comma.  http://www.ietf.org/mail-archive/web/sip/current/msg17485.html has more info.



On Jan 5, 2015, at 6:56 AM, George F. Phelps <GeorgePhelps at gfphelps.com> wrote:


How do I create two (2) unique, P-Asserted-Identity headers?  As required by  <http://www.ietf.org/rfc/rfc3325.txt> RFC 3325:


A P-Asserted-Identity header field value MUST consist of exactly one name-addr or addr-spec.  There may be one or two P-Asserted-Identity values.  If there is one value, it MUST be a sip, sips, or tel URI.   If there are two values, one value MUST be a sip or sips URI and the  other MUST be a tel URI.


A valid, multiple P-Asserted-Identity headers example, taken from RFC 3325:


   INVITE  <sip:+14085551212 at proxy.pstn.net> sip:+14085551212 at proxy.pstn.net SIP/2.0

   Via: SIP/2.0/TCP  <http://useragent.cisco.com/> useragent.cisco.com;branch=z9hG4bK-124

   Via: SIP/2.0/TCP  <http://proxy.cisco.com/> proxy.cisco.com;branch=z9hG4bK-abc

   To: < <sip:+14085551212 at cisco.com> sip:+14085551212 at cisco.com>

   From: "Anonymous" < <sip:anonymous at anonymous.invalid> sip:anonymous at anonymous.invalid>;tag=9802748

   Call-ID: 245780247857024504

   CSeq: 2 INVITE

   Max-Forwards: 69

   P-Asserted-Identity: "Cullen Jennings" < <sip:fluffy at cisco.com> sip:fluffy at cisco.com>

   P-Asserted-Identity: tel:+14085264000

   Privacy: id


When I use the following two (2) statements in a Freeswitch dialplan, the second “set,” of course, overwrites the data stored by the first “set.”


    <action application="set" data="sip_h_P-Asserted-ID=tel:+1404XXXXXXX"/>

    <action application="set" data="sip_h_P-Asserted-ID=&quot;George F Phelps&quot; < <sip:1404XXXXXXX at YY.YY.YYY.YYY> sip:1404XXXXXXX at YY.YY.YYY.YYY>"/>






Professional FreeSWITCH Consulting Services: 
 <mailto:consulting at freeswitch.org> consulting at freeswitch.org
 <http://www.freeswitchsolutions.com/> http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
 <http://www.freeswitch.org/> http://www.freeswitch.org
 <http://confluence.freeswitch.org/> http://confluence.freeswitch.org
 <http://www.cluecon.com/> http://www.cluecon.com

FreeSWITCH-users mailing list
 <mailto:FreeSWITCH-users at lists.freeswitch.org> FreeSWITCH-users at lists.freeswitch.org
 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http:// <http://lists.freeswitch.org/mailman/options/freeswitch-users> lists.freeswitch.org/mailman/options/freeswitch-users
 <http://www.freeswitch.org/> http://www.freeswitch.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150106/f42521ed/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6528 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150106/f42521ed/attachment-0001.bin 

Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list