<p>You need to use 'ignore_early_media=true' in the originate command. Like this </p>
<p>originate {ignore_early_media=true} sofia ....<br>
</p>
<div class="gmail_quote">On Feb 23, 2012 3:59 PM, "Erjian Li" <<a href="mailto:eli@netspectrum.com">eli@netspectrum.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br><br>I have a problem about he API command <originate>, so I'm here for some help. Thanks in advance.<br><br> In FreeSWITCH, I want to originate a call to a remote user, when the user answers the call, FreeSWITCH will say some digits to the user. My command is as following:<br>
=======================================<br> freeswitch@internal>originate sofia/internal/8613302033450@xx.xx.xx.xx:5060 '&say(en number iterated 12345678912345)'<br>========================================<br>
<br>After I execute this command, the destination cellphone rings, but when I answer the call, the digit string "12345678912345" has almost finished saying, so I can't hear the complete digit string. In other words, the 'say' application has been executed before the call is answered. This is not what I expect. Could any one give me some advice on what I should do ? Or some other commands to meet my requirement? Any advice would be appreciated.<br>
<br>BTW, if I originate a call to local user (e.g. 1005, which is the preconfigured user account of FreeSWITCH), and say some digits, the behavior is what I expect. For example, if I execute the below command:<br>=======================================<br>
freeswitch@internal>originate sofia/internal/1005%10.20.1.158 '&say(en number iterated 12345678912345)'<br>=======================================<br><br> The digits "12345678912345" begin to be said right after I answer the call (I use X-Lite as the soft phone). This is what I expect. But why the behavior when with a remote user is different?<br>
<br clear="all"><br>-- <br>Best Regards<br><br><font color="#888888">Erjian<br></font><div style="display:inline"></div><div style="display:inline"></div><br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>