<div dir="ltr">The logs show you are getting a &quot;<span class="Apple-style-span" style>NORMAL_TEMPORARY_FAILURE&quot; 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">&lt;<a href="mailto:gb10hkzo-freeswitch@yahoo.co.uk">gb10hkzo-freeswitch@yahoo.co.uk</a>&gt;</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&#39;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>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>
   &lt;document type=&quot;freeswitch/xml&quot;&gt;<br>
      &lt;section name=&quot;dialplan&quot; description=&quot;CURL Dialplan Result&quot;&gt;<br>
         &lt;context name=&quot;public&quot;&gt;<br>
            &lt;extension name=&quot;curl_dialplan&quot;&gt;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(87654321)$&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;domain_name=<a href="http://my.domain.name" target="_blank">my.domain.name</a>&quot;/&gt;<br>
&lt;!-- &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/mygate/12345678&quot;/&gt; --&gt;<br>
&lt;action application=&quot;transfer&quot; data=&quot;1000 XML default&quot;/&gt;            &lt;/condition&gt;<br>
         &lt;/extension&gt;<br>
      &lt;/context&gt;<br>
   &lt;/section&gt;<br>
&lt;/document&gt;<br>
<br>
<br>
<br>
When the action is &quot;transfer&quot;, everything works great.  However when &quot;transfer&quot; is the commented one and bridge is active nothing works.<br>
<br>
I have tried adding  &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt; when bridging, but that has no effect either.<br>
<br>
<br>
Here&#39;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 &lt;12345678&gt;-&gt;87654321 in context public<br>
Dialplan: sofia/internal/<a href="mailto:12345678@192.168.1.134">12345678@192.168.1.134</a> parsing [public-&gt;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 -&gt; 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 -&gt; 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 -&gt; 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 -&gt; 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 -&gt; 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 -&gt; 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>