<div dir="ltr">The logs show you are getting a "<span class="Apple-style-span" style>NORMAL_TEMPORARY_FAILURE" from the endpoint. Have you tried a real number..?</span><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br clear="all">
</font><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Sat, Jan 14, 2012 at 8:51 PM, Bob Smith <span dir="ltr"><<a href="mailto:gb10hkzo-freeswitch@yahoo.co.uk">gb10hkzo-freeswitch@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm trying to get a basic CURL XML going that will dynamically manage DDI numbers as part of a database-driven follow me function.<br>
<br>
<br>
My database generates the following output :<br>
<br>
<br>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
<document type="freeswitch/xml"><br>
<section name="dialplan" description="CURL Dialplan Result"><br>
<context name="public"><br>
<extension name="curl_dialplan"><condition field="destination_number" expression="^(87654321)$"><br>
<action application="set" data="domain_name=<a href="http://my.domain.name" target="_blank">my.domain.name</a>"/><br>
<!-- <action application="bridge" data="sofia/gateway/mygate/12345678"/> --><br>
<action application="transfer" data="1000 XML default"/> </condition><br>
</extension><br>
</context><br>
</section><br>
</document><br>
<br>
<br>
<br>
When the action is "transfer", everything works great. However when "transfer" is the commented one and bridge is active nothing works.<br>
<br>
I have tried adding <action application="set" data="hangup_after_bridge=true"/> when bridging, but that has no effect either.<br>
<br>
<br>
Here's what it looks like when trying to bridge :<br>
<br>
<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.136494 [INFO] mod_dialplan_xml.c:481 Processing 12345678 <12345678>->87654321 in context public<br>
Dialplan: sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> parsing [public->curl_dialplan] continue=false<br>
Dialplan: sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> Regex (PASS) [curl_dialplan] destination_number(87654321) =~ /^(87654321)$/ break=on-false<br>
Dialplan: sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> Action set(domain_name=<a href="http://my.domain.name" target="_blank">my.domain.name</a>) <br>
Dialplan: sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> Action bridge(sofia/gateway/mygate/12345678) <br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:154 (sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a>) State Change CS_ROUTING -> CS_EXECUTE<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> [BREAK]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:410 (sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a>) State ROUTING going to sleep<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:362 (sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a>) Running State Change CS_EXECUTE<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:417 (sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a>) State EXECUTE<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] mod_sofia.c:241 sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> SOFIA EXECUTE<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:192 sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> Standard EXECUTE<br>
EXECUTE sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> set(domain_name=<a href="http://my.domain.name" target="_blank">my.domain.name</a>)<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] mod_dptools.c:1281 sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> SET [domain_name]=[<a href="http://my.domain.name" target="_blank">my.domain.name</a>]<br>
EXECUTE sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> bridge(sofia/gateway/mygate/12345678)<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_ivr_originate.c:1884 Parsing global variables<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [NOTICE] switch_channel.c:930 New Channel sofia/external/12345678 [2408b0f2-3ec3-11e1-afaf-89a010d7e66c]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] mod_sofia.c:4674 (sofia/external/12345678) State Change CS_NEW -> CS_INIT<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/12345678 [BREAK]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:362 (sofia/external/12345678) Running State Change CS_INIT<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:401 (sofia/external/12345678) State INIT<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] mod_sofia.c:85 sofia/external/12345678 SOFIA INIT<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] mod_sofia.c:125 (sofia/external/12345678) State Change CS_INIT -> CS_ROUTING<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/12345678 [BREAK]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:401 (sofia/external/12345678) State INIT going to sleep<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:362 (sofia/external/12345678) Running State Change CS_ROUTING<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_channel.c:1890 (sofia/external/12345678) Callstate Change DOWN -> RINGING<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:410 (sofia/external/12345678) State ROUTING<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] mod_sofia.c:148 sofia/external/12345678 SOFIA ROUTING<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_ivr_originate.c:66 (sofia/external/12345678) State Change CS_ROUTING -> CS_CONSUME_MEDIA<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/12345678 [BREAK]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:410 (sofia/external/12345678) State ROUTING going to sleep<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:362 (sofia/external/12345678) Running State Change CS_CONSUME_MEDIA<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:429 (sofia/external/12345678) State CONSUME_MEDIA<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_state_machine.c:429 (sofia/external/12345678) State CONSUME_MEDIA going to sleep<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] switch_core_session.c:875 Send signal sofia/external/12345678 [BREAK]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.176505 [DEBUG] sofia.c:5494 Channel sofia/external/12345678 entering state [calling][0]<br>
<a href="tel:2012-01-14%2015" value="+12012011415">2012-01-14 15</a>:19:24.316487 [DEBUG] switch_core_session.c:875 Send signal sofia/external/12345678 [BREAK]<br>
2012-01-14 15:19:24.316487 [DEBUG] switch_core_session.c:875 Send signal sofia/external/12345678 [BREAK]<br>
2012-01-14 15:19:24.316487 [DEBUG] switch_core_session.c:875 Send signal sofia/external/12345678 [BREAK]<br>
2012-01-14 15:19:24.316487 [DEBUG] sofia.c:5494 Channel sofia/external/12345678 entering state [terminated][503]<br>
2012-01-14 15:19:24.316487 [DEBUG] switch_channel.c:2852 (sofia/external/12345678) Callstate Change RINGING -> HANGUP<br>
2012-01-14 15:19:24.316487 [NOTICE] sofia.c:6258 Hangup sofia/external/12345678 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div>