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@gfphelps.com> wrote:

How do I create two (2) unique, P-Asserted-Identity headers?  As required by 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@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
   From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=9802748
   Call-ID: 245780247857024504
   CSeq: 2 INVITE
   Max-Forwards: 69
   P-Asserted-Identity: "Cullen Jennings" <sip:fluffy@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@YY.YY.YYY.YYY>"/>
 
Thanks,
 
George
 
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting@freeswitch.org
http://www.freeswitchsolutions.com

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

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org