[Freeswitch-users] Reading custom SIP headers

Ken Rice krice at freeswitch.org
Wed Apr 9 22:25:55 MSD 2014


If they are actually ³Price² and ³Gateway² you are doing it wrong, they
should be either X- or P- headers since they are private headers. Else you
will have to hack the code to get access to them

On 4/9/14 1:16 PM, "ik" <idokan at gmail.com> wrote:

> 
> 
> 
> On Wed, Apr 9, 2014 at 7:08 PM, Ken Rice <krice at freeswitch.org> wrote:
>> Use the info dialplan application on one of the calls coming in to see how
>> they actually show up as chan vars
> 
> Thanks for the reply, but as I wrote, I already tried to use info, and it did
> not gave me the variables.
> I can only see them on sofia's trace.
> 
>  
>> 
>> 
>> 
>> On 4/9/14 10:59 AM, "ik" <idokan at gmail.com <http://idokan@gmail.com> > wrote:
>> 
>>> Hello,
>>> 
>>> I have a SIP Provider that add custom headers to sip .
>>> I tried to see them using app info, but they do not appear, but with sofia
>>> trace I can see them.
>>> 
>>> For example the provider gives me a header named:
>>> Price: 0.25
>>> Gateway: foo
>>> 
>>> The upper case letter is part of the name, and both Price and Gateway are
>>> different headers.
>>> 
>>> I tried also to read them using ${variable_sip_Gateway} and ${sip_Gateway},
>>> but the variables are empty.
>>> 
>>> How can I read the extra sip headers ?
>>> 
>>> Thanks,
>>> Ido
>>> 
>>> 
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org <http://consulting@freeswitch.org>
>>> http://www.freeswitchsolutions.com
>>> 
>>> 
>>> 
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>> 
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> <http://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

-- 
Ken
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
irc.freenode.net #freeswitch
Twitter: @FreeSWITCH


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140409/cc5e0d4f/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list