Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Michael Jerris
In trunk there is a sofia profile setting to allow dialplan processing of 302 responses. This won't get you back into your same javascript, but you can probably do something clever from there. Mike On Nov 24, 2009, at 5:04 PM, John Platts wrote: I have considered writing JavaScript code

Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Stephen Crosby
Surprisingly, I've found no way to access the HTTP response status code using mod_spidermonkey_curl. I'd love to see this feature added or discussed if it already exists and I'm missing it. --Stephen On Wed, Nov 25, 2009 at 9:45 AM, Michael Jerris m...@jerris.com wrote: In trunk there is a

Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Tihomir Culjaga
this is how i do it from the dialplan: extension name=ServiceLookup condition field=destination_number expression=^(300030)(.*)|^\+(300030)(.*) action application=set data=bPfx=$1$3/ action application=set data=bNum=$2$4/ action inline=true application=set

Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Rupa Schomaker
Stephen, I think you've jumped into the middle of a thread about sip 302, not about http. Anyway, you might want to look at using mod_curl instead of mod_spidermonkey_curl. mod_curl can give you a json response which you can then parse easily in javascript or any other language. The json

Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Stephen Crosby
My apologies, and thanks for the info. --Stephen On Wed, Nov 25, 2009 at 11:06 AM, Rupa Schomaker r...@rupa.com wrote: Stephen, I think you've jumped into the middle of a thread about sip 302, not about http. Anyway, you might want to look at using mod_curl instead of

Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread John Platts
: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript In trunk there is a sofia profile setting to allow dialplan processing of 302 responses. This won't get you back into your same javascript, but you can probably do something clever from there. Mike On Nov 24, 2009, at 5

Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Michael Jerris
Subject: Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript In trunk there is a sofia profile setting to allow dialplan processing of 302 responses. This won't get you back into your same javascript, but you can probably do something clever from there. Mike

[Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-24 Thread John Platts
I have considered writing JavaScript code to bridge two calls together. However, I would like to perform custom handling of the 302 Moved Temporarily response. How do I handle the 302 Moved Temporarily response if I use JavaScript?