<div dir="ltr"><div><div>at fs_cli do:<br>xml_curl debug_on<br><br></div>then make another call. the cli should show in red text what xml is coming back from the server and you can debug from there.<br><br></div>-MC<br></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 5:44 AM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Doesn&#39;t seem to even execute your code. Is it valid xml? it looks like you named the extension without quoting the name. Try fixing that.</p><span class="HOEnZb"><font color="#888888">
<p>-Avi</p></font></span><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Jun 21, 2013 2:58 PM, &quot;Ivan C Myrvold&quot; &lt;<a href="mailto:ivan@myrvold.org" target="_blank">ivan@myrvold.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I am using mod_xml_curl to control the dialplan of FreeSWITCH. When a user is dialing a number he is not allowed to call (111), I want FreeSWITCH to play back the phone_not_auth.wav sound file. I am returning the following XML.<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;&gt;<br>
    &lt;context name=&quot;default&quot;&gt;<br>
        &lt;extension name=no_name&gt;<br>
          &lt;condition&gt;<br>
            &lt;action application=&quot;playback&quot; data=&quot;/usr/local/freeswitch/sounds/en/us/callie/misc/8000/phone_not_auth.wav&quot;/&gt;<br>
          &lt;/condition&gt;<br>
        &lt;/extension&gt;<br>
    &lt;/context&gt;<br>
  &lt;/section&gt;<br>
&lt;/document&gt;<br>
<br>
Here is the log from FreeSWITCH. I don&#39;t hear the sound that is played back, just the busy signal after a couple seconds of silence. What is wrong here?<br>
<br>
Ivan<br>
<br>
2013-06-21 11:51:54.690026 [NOTICE] switch_channel.c:978 New Channel sofia/internal/<a href="mailto:160@178.79.177.164" target="_blank">160@178.79.177.164</a> [f803e92a-da68-11e2-993c-1d15db576d4a]<br>
2013-06-21 11:51:55.369954 [INFO] mod_dialplan_xml.c:558 Processing Linksys 160 &lt;160&gt;-&gt;111 in context default<br>
2013-06-21 11:51:56.129953 [INFO] switch_core_session.c:2578 Sending early media<br>
2013-06-21 11:51:56.129953 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/<a href="mailto:160@178.79.177.164" target="_blank">160@178.79.177.164</a>!<br>
2013-06-21 11:51:58.849958 [NOTICE] switch_core_state_machine.c:262 sofia/internal/<a href="mailto:160@178.79.177.164" target="_blank">160@178.79.177.164</a> has executed the last dialplan instruction, hanging up.<br>
2013-06-21 11:51:58.849958 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/<a href="mailto:160@178.79.177.164" target="_blank">160@178.79.177.164</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
2013-06-21 11:51:58.849958 [NOTICE] switch_core_session.c:1566 Session 207 (sofia/internal/<a href="mailto:160@178.79.177.164" target="_blank">160@178.79.177.164</a>) Ended<br>
2013-06-21 11:51:58.849958 [NOTICE] switch_core_session.c:1570 Close Channel sofia/internal/<a href="mailto:160@178.79.177.164" target="_blank">160@178.79.177.164</a> [CS_DESTROY]<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
</div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>