[Freeswitch-users] Fetching SIP Header Variable

msp pmhshz at gmail.com
Thu Aug 21 08:56:04 EDT 2008


Hi all,

I have to fetch the variable from SIP header of incoming calls which comes
from SIP proxy,

The SIP proxy adds custom variable into sip header.

When call comes at freeswitch, it is routed to Javascript, I need to fetch
that sip variable in script.

I tried

mysipvar=session.getVariable("VariableName");
but it returns false.

I also tried this (as it is a sip header variable)
mysipvar=session.getVariable("sip_h_VariableName");
But it also doesn't work.



Thanks
Shehzad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080821/de7728b1/attachment.html 


More information about the Freeswitch-users mailing list