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">&lt;<a href="mailto:mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;</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>
&gt; Max Bridgewater &lt;<a href="mailto:max.bridgewater@gmail.com">max.bridgewater@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt; Assuming an inbound call, I have trouble understanding what the<br>
&gt;&gt; supposed<br>
&gt;&gt; difference between the following two set of instructions is:<br>
&gt;&gt;<br>
&gt;&gt; session.execute(&quot;ring_ready&quot;);<br>
&gt;&gt; session.set(&quot;set&quot;, &quot;ringback=/home/ring.wav&quot;);<br>
&gt;<br>
&gt; Ring_ready sends a SIP &quot;ringing&quot; message and will use your device&#39;s<br>
&gt; default<br>
&gt; ringback sound - at least, that has been my experience. I should<br>
&gt; remember the<br>
&gt; message number in the SIP protocol, but I don&#39;t (the SIP experts<br>
&gt; here will<br>
&gt; undoubtedly have the details at the ready).<br>
&gt;&gt;<br>
&gt;&gt; and<br>
&gt;&gt;<br>
&gt;&gt; session.preAnswer();<br>
&gt;&gt; session.streamFile(&quot;/home/ring.wav&quot;)<br>
&gt;<br>
&gt; I think that will play the file as early media.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <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>