[Freeswitch-users] Playback sound file

Ivan C Myrvold ivan at myrvold.org
Fri Jun 21 15:54:54 MSD 2013


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]




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