2 Jul
2012
2 Jul
'12
2:43 p.m.
On Sun, Jul 1, 2012 at 12:03 AM, Peter Olsson < peter.olsson@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