[Freeswitch-users] redirect context not working

Joseph Waite joelists at tm.net.uk
Thu Jul 6 22:35:55 UTC 2017


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: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: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170706/b3a9974b/attachment.html>


More information about the FreeSWITCH-users mailing list