I had a similiar case (no media heard), but in the IMS/MGW environment (PSTN-to-IP call). Adding a SIP header

P-Early-Media=sendonly

when sending 183 response solved the problem. Check RFC5009. Also, executing 'pre_answer' explicitly after setting the header would be nice.

 

Regards,

Mariusz

 

Dnia Piątek, 21 Czerwca 2013 19:19 Michael Collins <msc@freeswitch.org> napisał(a)

add another application in there, like an info app.
-MC


On Fri, Jun 21, 2013 at 9:22 AM, imyrvold <ivan@myrvold.org> wrote:

I didn't get anything in red, but got the XML back in a tmp log file:
(By the way, the "no_name" for the extension name I got from the new
FreeSWITCH 1.2 book)

freeswitch@xxxx.xxxx.xxxx.xxxx@default> xml_curl debug on
USAGE: [debug_on|debug_off]

freeswitch@xxxx.xxxx.xxxx.xxxx@default> xml_curl debug_on
OK

freeswitch@xxxx.xxxx.xxxx.xxxx@default> 2013-06-21 16:15:17.589965 [NOTICE]
switch_channel.c:978 New Channel sofia/internal/160@xxxx.xxxx.xxxx.xxxx
[c3477b50-da8d-11e2-9a85-1d15db576d4a]
2013-06-21 16:15:18.289960 [CONSOLE] mod_xml_curl.c:318 XML response is in
/tmp/c35700e8-da8d-11e2-9a87-1d15db576d4a.tmp.xml
2013-06-21 16:15:18.309955 [INFO] mod_dialplan_xml.c:558 Processing Linksys
160 <160>->111 in context default
2013-06-21 16:15:19.029914 [CONSOLE] mod_xml_curl.c:318 XML response is in
/tmp/c3b3c6d4-da8d-11e2-9a89-1d15db576d4a.tmp.xml
2013-06-21 16:15:19.029914 [INFO] switch_core_session.c:2578 Sending early
media
2013-06-21 16:15:19.029914 [NOTICE] sofia_media.c:92 Pre-Answer
sofia/internal/160@xxxx.xxxx.xxxx.xxxx!
2013-06-21 16:15:21.749953 [NOTICE] switch_core_state_machine.c:262
sofia/internal/160@xxxx.xxxx.xxxx.xxxx has executed the last dialplan
instruction, hanging up.
2013-06-21 16:15:21.749953 [NOTICE] switch_core_state_machine.c:264 Hangup
sofia/internal/160@xxxx.xxxx.xxxx.xxxx [CS_EXECUTE] [NORMAL_CLEARING]
2013-06-21 16:15:21.749953 [NOTICE] switch_core_session.c:1566 Session 228
(sofia/internal/160@xxxx.xxxx.xxxx.xxxx) Ended
2013-06-21 16:15:21.749953 [NOTICE] switch_core_session.c:1570 Close Channel
sofia/internal/160@xxxx.xxxx.xxxx.xxxx [CS_DESTROY]
xml_curl debug_off
OK

freeswitch@xxxx.xxxx.xxxx.xxxx@default>


imyrvold@li346-164:~$ sudo cat
/tmp/c3b3c6d4-da8d-11e2-9a89-1d15db576d4a.tmp.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>
imyrvold@li346-164:~$




--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Playback-sound-file-tp7592056p7592078.html
Sent from the freeswitch-users mailing list archive at Nabble.com.

_________________________________________________________________________
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