Good arvo, all;<div><br></div><div>I'm battling with a problem in making Early Media play and getting nowhere. I've searched the wiki, forums and the web in general without anything that seems to help. This suggests to me that I'm either doing something stupendously stupid, or there's a very, very odd thing going on here.</div>
<div><br></div><div>I've been tasked with something that should be fairly simple:</div><div>Accept an inbound call</div><div>Play a specific audio file as early media</div><div>Pickup the call after a certain time interval</div>
<div>Play another audio file into the off-hook channel</div><div>Disconnect the call.</div><div><br></div><div>Sounds simple. My extension looks like so:</div><div><div> <extension name="Inbound"></div><div>
<condition field="destination_number" expression="^\+12125551212$"></div><div> <action application="pre_answer"/></div><div> <action application="set" data="ringback=/usr/local/freeswitch/sounds/early-media.wav"/></div>
<div><!-- <action application="set" data="ringback=%(2000, 4000, 440.0, 480.0)"/> --></div><div> <action application="sleep" data="10000"/></div>
<div> <action application="answer"/></div><div> <action application="playback" data="/usr/local/freeswitch/sounds/playback"/></div><div> <action application="hangup" data="16"/></div>
<div> </condition></div><div> </extension></div></div><div>(Replace the 212 number with a real inbound DID which is being routed from Verizon (via SIP) to this FreeSWITCH machine)</div><div><br></div><div>
The call is received, a 183 is sent by FreeSWITCH (pre_answer), it waits the 10 seconds, picks up the call and plays the playback.PCMU file... but there's no early media. I've tcpdumped on the FS machine and verified it definitely is /not/ sending out RTP until the call 200 OKs and the Playback begins.</div>
<div><br></div><div>As you can see, I've also attempted to replace the ringback= to a cadence instead of a WAV file, just to ensure it isn't unhappy with the WAV format, with the same results.</div><div><br></div>
<div>Boy, I'd sure love it if someone could point out what potentially brain damaged thing I'm doing (assuming it's nothing arcane).</div><div><br></div><div>My thanks to all;</div><div> - Jock</div>