Thank you, Brian.<div><br></div><div>I have actually omitted an awful lot of "grasping at straws" steps, however I have tried this (and I did it again, just now, both with the .wav ringback and the cadence ringback, just to be certain I hadn't imagined it) and there is still no RTP coming out after the 183.</div>
<div><br></div><div>The ringback after pre_answer was tried because of this: <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready</a></div>
<div>(I also tried ring_ready instead of a pre_answer without any particular progress - although I don't understand, for the same reason as above, why ringback being set after ring_ready actually works... Not that it does for me, anyway ;)</div>
<div><br></div><div>So, apparently, not quite _that_ easy. Perhaps something else I've missed?</div><div><br></div><div> - JP<br><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 1:57 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I already emailed you the solution but i'll reply so everyone will know.<br>
<br>
Set ringback before you pre_answer.<br>
<br>
/b<br>
<div><div></div><div class="h5"><br>
On Aug 30, 2010, at 1:49 PM, Jock McKechnie wrote:<br>
<br>
> Good arvo, all;<br>
><br>
> 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.<br>
><br>
> I've been tasked with something that should be fairly simple:<br>
> Accept an inbound call<br>
> Play a specific audio file as early media<br>
> Pickup the call after a certain time interval<br>
> Play another audio file into the off-hook channel<br>
> Disconnect the call.<br>
><br>
> Sounds simple. My extension looks like so:<br>
> <extension name="Inbound"><br>
> <condition field="destination_number" expression="^\+12125551212$"><br>
> <action application="pre_answer"/><br>
> <action application="set" data="ringback=/usr/local/freeswitch/sounds/early-media.wav"/><br>
> <!-- <action application="set" data="ringback=%(2000, 4000, 440.0, 480.0)"/> --><br>
> <action application="sleep" data="10000"/><br>
> <action application="answer"/><br>
> <action application="playback" data="/usr/local/freeswitch/sounds/playback"/><br>
> <action application="hangup" data="16"/><br>
> </condition><br>
> </extension><br>
> (Replace the 212 number with a real inbound DID which is being routed from Verizon (via SIP) to this FreeSWITCH machine)<br>
><br>
> 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.<br>
><br>
> 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.<br>
><br>
> Boy, I'd sure love it if someone could point out what potentially brain damaged thing I'm doing (assuming it's nothing arcane).<br>
><br>
> My thanks to all;<br>
> - Jock<br>
<br>
<br>
</div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>