Well said, Math. BTW, this info is available on the wiki:<br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ring_ready</a><br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pre_answer</a><br>
<br>-MC<br><br><div class="gmail_quote">On Sat, Aug 29, 2009 at 8:54 PM, Mathieu Rene <span dir="ltr"><<a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
In SIP, ring_ready will send a 180 ringing, pre answer will send a 183<br>
with a session description, so that some audio can be exchanged while<br>
the call isnt answered yet (used a lot for inband error messages etc).<br>
<br>
Regards,<br>
<font color="#888888"><br>
Mathieu Rene<br>
Avant-Garde Solutions Inc<br>
Office: + 1 (514) 664-1044 x100<br>
Cell: +1 (514) 664-1044 x200<br>
<a href="mailto:mrene@avgs.ca">mrene@avgs.ca</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 29-Aug-09, at 9:50 PM, Jason White wrote:<br>
<br>
> Max Bridgewater <<a href="mailto:max.bridgewater@gmail.com">max.bridgewater@gmail.com</a>> wrote:<br>
>> Hi,<br>
>> Assuming an inbound call, I have trouble understanding what the<br>
>> supposed<br>
>> difference between the following two set of instructions is:<br>
>><br>
>> session.execute("ring_ready");<br>
>> session.set("set", "ringback=/home/ring.wav");<br>
><br>
> Ring_ready sends a SIP "ringing" message and will use your device's<br>
> default<br>
> ringback sound - at least, that has been my experience. I should<br>
> remember the<br>
> message number in the SIP protocol, but I don't (the SIP experts<br>
> here will<br>
> undoubtedly have the details at the ready).<br>
>><br>
>> and<br>
>><br>
>> session.preAnswer();<br>
>> session.streamFile("/home/ring.wav")<br>
><br>
> I think that will play the file as early media.<br>
><br>
><br>
> _______________________________________________<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>
<br>
<br>
_______________________________________________<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>
</div></div></blockquote></div><br>