[Freeswitch-users] how to get the content of sip header ?

Michael Collins msc at freeswitch.org
Mon Jul 2 18:43:08 MSD 2012


On Sun, Jul 1, 2012 at 12:03 AM, Peter Olsson <
peter.olsson at visionutveckling.se> wrote:

> Use session:getVariable("var") to read whatever channel variable you need.
> As Michael said, the SIP headers are stored like sip_header_name. For
> instance, to read the header Diversion:, use the variable sip_diversion.
>
> Michael also mentions the info app, which is a good way to dump all
> channel variables for a channel, so you know exactly what you have
> available. To use this, just execute the app info in the dialplan.
>

Apologies for my brief reply last week - time was short. The quickest way
to see what the info dump does is to dial x9192 in the default dialplan and
watch the console.

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120702/e3b2da13/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list