[Freeswitch-users] how to extract arbitrary sip header value

Michael Jerris mike at jerris.com
Mon Apr 18 18:39:16 MSD 2016


if you uuid_dump the channel
you can see everything that it has. quickest way to get your answer

On Monday, April 18, 2016, Miroslav Levanic <Miroslav.Levanic at enghouse.com>
wrote:

> I’m using switch_channel_get_variable to extract sip headers with already
> predefined channel variables (
> https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables).
>
> I’ve found that some undefined sip headers can be extracted using only
> ‘sip_’ prefix (for instance ‘sip_P-Preferred-Identity’) and some using
> ‘sip_h_’ prefix (like is ‘sip_h_Diversion’).
>
> Is there some rule or detailed explanation when to use just ‘sip_’ or
> ‘sip_h_’ in the name of the required channel variable?
>
>
>
> Thanks,
>
> Miro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160418/b4090571/attachment.html 


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