[Freeswitch-users] Multiple P-Asserted-Identity Headers
Michael Jerris
mike at jerris.com
Mon Jan 5 21:33:50 MSK 2015
put them together as a single header separated by a comma. http://www.ietf.org/mail-archive/web/sip/current/msg17485.html <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 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:+14085551212 at proxy.pstn.net> SIP/2.0
> Via: SIP/2.0/TCP useragent.cisco.com <http://useragent.cisco.com/>;branch=z9hG4bK-124
> Via: SIP/2.0/TCP proxy.cisco.com <http://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="George F Phelps" <sip:1404XXXXXXX at YY.YY.YYY.YYY <sip:1404XXXXXXX at YY.YY.YYY.YYY>>"/>
>
> Thanks,
>
> George
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto: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
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://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/20150105/1d40caca/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list