<div><br></div><div>I decided to go over all of the things I had tried, and discovered that the below gives me "early media", at least, it provides RTP but it is playing back silence, so it would appear, as Brian suggested above, somehow I'm not convincing FS _what_ it should be playing. I used a 'ringback', as I'm bridging, which I believe is the correct setting to use. I continue to simplify the config in hopes of just getting some kind of early media, which is why I'm using a cadence description for the ringback, instead of playing a WAV file, which is the final goal.</div>
<div><br></div><div><div> <extension name="wait"></div><div> <condition field="destination_number" expression="^wait$"></div><div> <action application="pre_answer"/></div>
<div> <action application="sleep" data="10000"/></div><div> <action application="answer"/></div><div> <action application="sleep" data="1000"/></div>
<div> <action application="playback" data="/usr/local/freeswitch/sounds/playback"/></div><div> <action application="hangup"/></div><div> </condition></div>
<div> </extension></div><div><br></div><div> <extension name="Inbound"></div><div> <condition field="destination_number" expression="^\+12132895773$"></div><div> <action application="set" data="ringback=%(2000, 4000, 440.0, 480.0)"/></div>
<div> <action application="set" data="instant_ringback=true"/></div><div> <action application="set" data="ignore_early_media=true"/></div><div> <action application="bridge" data="loopback/wait"/></div>
<div> </condition></div><div> </extension></div></div><div><br></div><div>With the above, I get apparently a normal "conversation" (INVITE, 100, 183, early media RTP, 200 OK, playback RTP), but the early media is "blank".</div>
<div><br></div><div>I'm getting closer, but still not quite there. Can anyone point out what I'm still missing?</div><div><br></div><div>My thanks;</div><div><br></div><div> - Jock</div><br><br><div class="gmail_quote">
On Tue, Aug 31, 2010 at 8:58 AM, Jock McKechnie <span dir="ltr"><<a href="mailto:jock.mckechnie@gmail.com">jock.mckechnie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div class="im">On Mon, Aug 30, 2010 at 5:48 PM, Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
did you try the ones I listed?<br>
<br>
I did not phrase them in xml because it's redundant but you should<br>
simply be able to make a simple extension<br>
that calls playback WITHOUT calling answer and the file will play in<br>
early media?<br>
<br>
Maybe it's too easy?<br>
<br>
This will play a file in early media, answer then play it again as<br>
in-call media.<br>
<br>
<extension name="109"><br>
<condition field="destination_number" expression="^109$"><br>
<action application="playback" data="ivr/ivr-welcome_to_freeswitch.wav"/><br>
<action application="answer"/><br>
<action application="playback" data="ivr/ivr-welcome_to_freeswitch.wav"/><br>
</condition><br>
</extension><br><br></blockquote><div><br></div></div><div>I did not, I misunderstood your initial eMail, clearly.</div><div><br></div><div>I have rigged up the above and something quite odd happens - definitely much closer, but still odd. The CLI shows FreeSWITCH accept the call, there is almost a full ten second pause, and then I hear a 'click' on the line, there is another pause, and then I get the latter Playback (I've used two different audio files to ensure I can tell the difference).</div>
<div><br></div><div>However, I've tcpdumped and according to Wireshark:</div><div>INVITE</div><div>100 Trying</div><div>(10.1 second pause)</div><div>Early Media RTP</div><div>200 OK</div><div>Latter Playback RTP</div>
<div>BYE</div><div><br></div><div>A review of the audio through WireShark verifies that FS is playing the first WAV file as, apparently, early media.</div><div><br></div><div>So I appear to have two problems: Firstly, there's a ten second pause. I did not reinstate my sleep statement, so I don't understand why it's waiting so long after getting the call. And although FreeSWITCH is now definitely pumping out the early media, Verizon is, apparently, not handing it back. Is there any possibility something slightly non-standard is happening here, so VZ's equipment (cough, Sonus, cough) is unaware it should be passing RTP on to the calling party? I'm afraid my telephony knowledge is primarily VoIP related to Asterisk (wail, moan, etc, etc) and OpenSIPS. I was under the impression that a 183 Ringing was required in the flow to alert the far-end (calling party) that early media is coming, but I could, of course, be very wrong.</div>
<div><br></div><div>Thank you very much Anthony;</div><div><br></div><div> - Jock</div></div><br>
</blockquote></div><br>