[Freeswitch-users] Playback sound file

Michael Collins msc at freeswitch.org
Fri Jun 21 19:30:39 MSD 2013


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 at 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 at 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 at 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 at 178.79.177.164!
>> 2013-06-21 11:51:58.849958 [NOTICE] switch_core_state_machine.c:262
>> sofia/internal/160 at 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 at 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 at 178.79.177.164) Ended
>> 2013-06-21 11:51:58.849958 [NOTICE] switch_core_session.c:1570 Close
>> Channel sofia/internal/160 at 178.79.177.164 [CS_DESTROY]
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130621/dac215a9/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list