[Freeswitch-users] Sip Headers advice (Not parsing properly)

Anthony Minessale anthony.minessale at gmail.com
Tue Aug 2 02:12:19 MSD 2011


maybe you should tell Cisco that they are supposed to start
nonstandard headers with X-


On Mon, Aug 1, 2011 at 9:17 AM, Dissident <jcgpoza at gmail.com> wrote:
> Problem solved!!! It seems that this doc is misleading ->
> http://wiki.freeswitch.org/wiki/Channel_Variables#Channel_Variable_Manipulation
> not all sip headers are gonna be parsed only the ones which start with X- or
> P- the rest are not parsed because they are not supposed to exist, however
> in my case they do and the only solution I've found to parse my CISCO
> headers is modifying the mod_sofia, file sofia.c line 6515, I added the last
> OR condition. } else if (!strncasecmp(un->un_name, "X-", 2) ||
> !strncasecmp(un->un_name, "P-", 2) || !strncasecmp(un->un_name, "Cisco", 5))
> { and now I can retrieve this header from the dialplan just like this:
> Thanks to Swk.
> ________________________________
> View this message in context: Re: Sip Headers advice (Not parsing properly)
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-users mailing list