[Freeswitch-users] Read SIP Response Headers from Dialplan or Lua

Eric Beard eric at loopfx.com
Tue May 24 00:58:30 MSD 2011


Hello,

I'm wondering if it's possible to read SIP response headers from the dial plan, or from Lua.

One of my gateways returns a generic 500 for all kinds of different error conditions, and expects me to read variables in the sip response.

e.g.

SIP/2.0 500 Service Unavailable
Via:..
From:...
Etc:
X-Custom-Var:val

The value in the custom variable might be "busy", "bad number", etc.

If I add something to the INVITE, I know that I can read it with channel variables "sip_h_X-Name", but I don't get the same thing for the response.

Thanks,

-----------------------
Eric Z. Beard, CTO
Loop LLC
w (877) 850-2010 x9249
m (727) 776-2768
eric at loopfx.com<mailto:eric at loopfx.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110523/69f5e26d/attachment.html 


More information about the FreeSWITCH-users mailing list