[Freeswitch-users] Fetching SIP Header Variable

Michael Jerris mike at jerris.com
Thu Aug 21 11:36:46 EDT 2008


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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




More information about the Freeswitch-users mailing list