hello, we are try to configure a service, when we have a provider that inform to as if the number is ported, and send back the a number with a new prefix with 302 redirect caller 11134xxx----------invite---> FS ----invite-------->provider FS <-302---------- 22234xxxx provider FS -invite---22234xxx-> provider 2 caller <-----ring-------------- FS <------------ring---provider 2 we use xml_curl to routing, the question is how can routing the second-time based in redirect messaje. How can send the routing request to xml_curl based in redirect. Best Regards. Gustavo Espeche www.easyipcall.com
http://wiki.freeswitch.org/wiki/Dialplan_Handling_Incoming_Redirect The call will return to dialplan after the redirect. Set the variables before the 1st bridge to send redirects to their own context, where you can bridge the call to provider 2. You will need to set <param name="manual-redirect" value="true"/> on the SIP profile that receives the 302 reply. For example (using the default variable values): <context name="default"> <extension field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/provider1/$1" /> </extension> </context> <context name="redirected"> <extension field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/provider2/$1" /> </extension> </context> -Steve On 23 November 2010 12:18, Gustavo Espeche <gustavo.espeche@upper-soft.com> wrote:
hello, we are try to configure a service, when we have a provider that inform to as if the number is ported, and send back the a number with a new prefix with 302 redirect
caller 11134xxx----------invite---> FS ----invite-------->provider FS <-302---------- 22234xxxx provider FS -invite---22234xxx-> provider 2 caller <-----ring-------------- FS <------------ring---provider 2
we use xml_curl to routing, the question is how can routing the second-time based in redirect messaje. How can send the routing request to xml_curl based in redirect.
Best Regards.
Gustavo Espeche www.easyipcall.com
_______________________________________________ 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
To answer your question about xml_curl, I believe that it results in a new HTTP request after the redirect. The context is included in the request, so you'll be able to tell the difference between initial requests and redirect requests. -Steve On 23 November 2010 13:22, Steven Ayre <steveayre@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Dialplan_Handling_Incoming_Redirect
The call will return to dialplan after the redirect. Set the variables before the 1st bridge to send redirects to their own context, where you can bridge the call to provider 2.
You will need to set <param name="manual-redirect" value="true"/> on the SIP profile that receives the 302 reply.
For example (using the default variable values):
<context name="default"> <extension field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/provider1/$1" /> </extension> </context> <context name="redirected"> <extension field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/provider2/$1" /> </extension> </context>
-Steve
On 23 November 2010 12:18, Gustavo Espeche <gustavo.espeche@upper-soft.com> wrote:
hello, we are try to configure a service, when we have a provider that inform to as if the number is ported, and send back the a number with a new prefix with 302 redirect
caller 11134xxx----------invite---> FS ----invite-------->provider FS <-302---------- 22234xxxx provider FS -invite---22234xxx-> provider 2 caller <-----ring-------------- FS <------------ring---provider 2
we use xml_curl to routing, the question is how can routing the second-time based in redirect messaje. How can send the routing request to xml_curl based in redirect.
Best Regards.
Gustavo Espeche www.easyipcall.com
_______________________________________________ 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)
-
Gustavo Espeche
-
Steven Ayre