Hi Anthony, I agree with you, but unfortunately the format of the header is out of my control, our partner sends the INVITE with custom headers. And I need to be able to make condition case in dialplan according to that header. So there's no way, not even with lua/perl? Maybe there's access to whole SIP message and I can parse it by myself? I can put for example OpenSIPS before FS and manipulate the header there, but it's kind of strange actually that in SIP softswitch there's no way access to arbitrary SIP header. Another idea is to make a dirty hack in mod_sofia and otherwrite some existing SIP channel variable, which I don't use :)
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch- users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: יום ב 29 אוגוסט 2011 23:49 To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Condition based on custom sip header
if its custom anyway and all you need to do is add X- then what's the problem? Using X- is *nearly* a requirement in email/http/sip That's the whole point of them having a prefix....
On Mon, Aug 29, 2011 at 10:36 AM, Alex Massover <alex@jajah.com> wrote:
Hi,
I’m trying to implement dialplan condition based on custom SIP header (“Header1: value1”). As far as I understood there’s no way to read custom SIP header which isn’t X- header with sip_h_. Is that correct?
What are the other options, please? Is lua’s getHeader() suitable for this?
--
Best Regards,
Alex Massover
This mail was sent via Mail-SeCure System.
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
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
This mail was received via Mail-SeCure System.
This mail was sent via Mail-SeCure System.