at fs_cli do: xml_curl debug_on 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. -MC On Fri, Jun 21, 2013 at 5:44 AM, Avi Marcus <avi@avimarcus.net> wrote:
Doesn'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.
-Avi On Jun 21, 2013 2:58 PM, "Ivan C Myrvold" <ivan@myrvold.org> wrote:
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.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="dialplan"> <context name="default"> <extension name=no_name> <condition> <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/phone_not_auth.wav"/> </condition> </extension> </context> </section> </document>
Here is the log from FreeSWITCH. I don't hear the sound that is played back, just the busy signal after a couple seconds of silence. What is wrong here?
Ivan
2013-06-21 11:51:54.690026 [NOTICE] switch_channel.c:978 New Channel sofia/internal/160@178.79.177.164 [f803e92a-da68-11e2-993c-1d15db576d4a] 2013-06-21 11:51:55.369954 [INFO] mod_dialplan_xml.c:558 Processing Linksys 160 <160>->111 in context default 2013-06-21 11:51:56.129953 [INFO] switch_core_session.c:2578 Sending early media 2013-06-21 11:51:56.129953 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/160@178.79.177.164! 2013-06-21 11:51:58.849958 [NOTICE] switch_core_state_machine.c:262 sofia/internal/160@178.79.177.164 has executed the last dialplan instruction, hanging up. 2013-06-21 11:51:58.849958 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/internal/160@178.79.177.164 [CS_EXECUTE] [NORMAL_CLEARING] 2013-06-21 11:51:58.849958 [NOTICE] switch_core_session.c:1566 Session 207 (sofia/internal/160@178.79.177.164) Ended 2013-06-21 11:51:58.849958 [NOTICE] switch_core_session.c:1570 Close Channel sofia/internal/160@178.79.177.164 [CS_DESTROY]
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org