[Freeswitch-users] redirect context not working

Antonio Silva asilva at wirelessmundi.com
Thu Jul 6 22:50:04 UTC 2017


it looks you are including a context inside a context..


<include>
<context name="redirect">
<X-PRE-PROCESS cmd="include" data="redirect/*.xml"/>
</context>
</include>


the correct one:

<include>
   <extension name="Redirect Calls">
       <condition>
          <action application="log" data="INFO  Were in the Redirect 
Context!!"/>
           <action application="bridge" 
data="{sip_invite_from_uri=sip:${sip_from_user}@${sip_network_ip}}sofia/external/${sip_redirect_dialstring}" 
/>
           <action application="hangup" data="${bridge_hangup_cause}"/>
       </condition>
   </extension>
</include>



On 07/07/2017 12:35 AM, Joseph Waite wrote:
> Hi Guys
>
> I have setup a context called redirect to catch calls sent back from a 
> redirect server with a 300 multiple choices message.
>
> However I get the following error when a call goes through.
>
> 2017-07-06 23:14:27.403150 [DEBUG] switch_core_state_machine.c:236 
> sofia/external/sipp at 185.35.228.51 
> <mailto:sofia/external/sipp at 185.35.228.51>:5060 Standard ROUTING
> 2017-07-06 23:14:27.403150 [INFO] mod_dialplan_xml.c:637 Processing 
> sipp <sipp>->441554555666 in context redirect
> 2017-07-06 23:14:27.403150 [INFO] switch_core_state_machine.c:311 No 
> Route, Aborting
> 2017-07-06 23:14:27.403150 [NOTICE] switch_core_state_machine.c:312 
> Hangup sofia/external/sipp at 185.35.228.51 
> <mailto:sofia/external/sipp at 185.35.228.51>:5060 [CS_ROUTING] 
> [NO_ROUTE_DESTINATION]
>
>
> I have a redirect.xml file as follows in my conf/dialplan
>
> <include>
> <context name="redirect">
>
> <X-PRE-PROCESS cmd="include" data="redirect/*.xml"/>
> </context>
> </include>
>
>
> and then a 00_redirect.xml in conf/dialplan/redirect
>
> <include>
>   <context name="redirect">
>     <extension name="Redirect Calls">
>         <condition>
>   <action application="log" data="INFO  Were in the Redirect Context!!"/>
>
>             <action application="bridge" 
> data="{sip_invite_from_uri=sip:${sip_from_user}@${sip_network_ip}}sofia/external/${sip_redirect_dialstring}" 
> />
>             <action application="hangup" data="${bridge_hangup_cause}"/>
>
>
>         </condition>
>     </extension>
>   </context>
> </include>
>
> Can anyone give me an idea why the call is not being picked up in the 
> Redirect Calls extension?
>
> Regards
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170707/909e42b4/attachment-0001.html>


More information about the FreeSWITCH-users mailing list