Fetching SIP Header Variable
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
you can route your call to the info app to see what vars we have exposed. Mike On Aug 21, 2008, at 8:56 AM, msp wrote:
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 _______________________________________________ Freeswitch-users mailing list 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
participants (2)
-
Michael Jerris
-
msp