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

George F. Phelps GeorgePhelps at gfphelps.com
Mon Jan 5 14:56:05 MSK 2015


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

 

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/2.0

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

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

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

   From: "Anonymous" <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>

   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>"/>

 

Thanks,

 

George

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150105/18ffc3ea/attachment.html 


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