redirect context not working
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@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@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
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@185.35.228.51 <mailto:sofia/external/sipp@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@185.35.228.51 <mailto:sofia/external/sipp@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you, hd been looking at that for over an hour and couldn’t work it out. Knew it would be something stupid I had done like that! Regards
On 6 Jul 2017, at 23:50, Antonio Silva <asilva@wirelessmundi.com> wrote:
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@185.35.228.51 <mailto:sofia/external/sipp@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@185.35.228.51 <mailto:sofia/external/sipp@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@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
Professional FreeSWITCH Consulting Services: consulting@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@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)
-
Antonio Silva
-
Joseph Waite