Re: [Freeswitch-users] Sip Headers advice (Not parsing properly)
Problem solved!!! It seems that this doc is misleading -> http://wiki.freeswitch.org/wiki/Channel_Variables#Channel_Variable_Manipulat... 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: ${sip_h_Cisco-Guid}"/> Thanks to Swk. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Sip-Headers-advice-Not-parsing... Sent from the freeswitch-users mailing list archive at Nabble.com.
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@gmail.com> wrote:
Problem solved!!! It seems that this doc is misleading -> http://wiki.freeswitch.org/wiki/Channel_Variables#Channel_Variable_Manipulat... 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@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Woof! On Aug 1, 2011, at 18:12 , Anthony Minessale wrote:
maybe you should tell Cisco that they are supposed to start nonstandard headers with X-
That's always been the convention, but there has been some noise about deprecating the use of the X- prefex in general (see http://tools.ietf.org/html//draft-saintandre-xdash-03). For SIP, I believe the convention was never codified into any standard, and it just came along for the ride with the other RFCS that it "inherited" from (such as HTTP). So much as I like to rag on Cisco for non-standard SIP implementations, this is not one of them. --Woof!
X- is not covered in any RFCs for SIP, however P- is covered... X- is as you said kinda along for the ride On 8/1/11 8:07 PM, "Andy Spitzer" <woof@iwoof.org> wrote:
Woof!
On Aug 1, 2011, at 18:12 , Anthony Minessale wrote:
maybe you should tell Cisco that they are supposed to start nonstandard headers with X-
That's always been the convention, but there has been some noise about deprecating the use of the X- prefex in general (see http://tools.ietf.org/html//draft-saintandre-xdash-03).
For SIP, I believe the convention was never codified into any standard, and it just came along for the ride with the other RFCS that it "inherited" from (such as HTTP). So much as I like to rag on Cisco for non-standard SIP implementations, this is not one of them.
--Woof!
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
I think the standard for X- is inherited from it's daddy: HTTP and in turn from it's daddy: SMTP On Mon, Aug 1, 2011 at 8:55 PM, Ken Rice <krice@freeswitch.org> wrote:
X- is not covered in any RFCs for SIP, however P- is covered...
X- is as you said kinda along for the ride
On 8/1/11 8:07 PM, "Andy Spitzer" <woof@iwoof.org> wrote:
Woof!
On Aug 1, 2011, at 18:12 , Anthony Minessale wrote:
maybe you should tell Cisco that they are supposed to start nonstandard headers with X-
That's always been the convention, but there has been some noise about deprecating the use of the X- prefex in general (see http://tools.ietf.org/html//draft-saintandre-xdash-03).
For SIP, I believe the convention was never codified into any standard, and it just came along for the ride with the other RFCS that it "inherited" from (such as HTTP). So much as I like to rag on Cisco for non-standard SIP implementations, this is not one of them.
--Woof!
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Which in turn goes back to rfc822 - ARPA Internet Text Messages http://www.w3.org/Protocols/rfc822/#z35 section 4.7.4 :-) On Aug 2, 2011, at 8:10 AM, Anthony Minessale wrote:
I think the standard for X- is inherited from it's daddy: HTTP and in turn from it's daddy: SMTP
On Mon, Aug 1, 2011 at 8:55 PM, Ken Rice <krice@freeswitch.org> wrote:
X- is not covered in any RFCs for SIP, however P- is covered...
X- is as you said kinda along for the ride
On 8/1/11 8:07 PM, "Andy Spitzer" <woof@iwoof.org> wrote:
Woof!
On Aug 1, 2011, at 18:12 , Anthony Minessale wrote:
maybe you should tell Cisco that they are supposed to start nonstandard headers with X-
That's always been the convention, but there has been some noise about deprecating the use of the X- prefex in general (see http://tools.ietf.org/html//draft-saintandre-xdash-03).
For SIP, I believe the convention was never codified into any standard, and it just came along for the ride with the other RFCS that it "inherited" from (such as HTTP). So much as I like to rag on Cisco for non-standard SIP implementations, this is not one of them.
--Woof!
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
participants (5)
-
Andy Spitzer
-
Anthony Minessale
-
Dissident
-
Ken Rice
-
Leon de Rooij