Try this:<div><br></div><div><meta charset="utf-8">originate {media_bug_answer_req=true}sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx &record(/tmp/myrecording.wav)</div><meta charset="utf-8"><div><br></div><div>Let us know if it works.</div>
<div>-MC</div><div><br><div class="gmail_quote">On Fri, Jun 10, 2011 at 1:05 PM, <span dir="ltr"><<a href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm extremely new to freeswitch, and anything like it, so please forgive me!<br>
<br>
I'd like to be able to use the API to originate a call and record it.<br>
So far, I have the following figured out:<br>
<br>
originate sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx<br>
&record(/tmp/myrecording.wav)<br>
And it dials out to an external number and successfully records the<br>
conversation.<br>
<br>
But, it also records the ringing. When I was trying this through a<br>
dialplan, I found an option:<br>
<action application="set" data="media_bug_answer_req=true"/><br>
which delayed the recording until the call was answered.<br>
<br>
Is there a way to do the same thing through the API?<br>
<br>
Thanks!<br>
Wes<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>
</blockquote></div><br></div>