<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This did not work, I still heard the ringing.<br>
<br>
On 6/10/2011 5:30 PM, Michael Collins wrote:
<blockquote
cite="mid:BANLkTik6Wh7vccJrCx7rUoKSJyYcAzzr3g@mail.gmail.com"
type="cite">Try this:
<div><br>
</div>
<div>
<meta charset="utf-8">
originate
{<a class="moz-txt-link-abbreviated" href="mailto:media_bug_answer_req=true}sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx">media_bug_answer_req=true}sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx</a> &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 moz-do-not-send="true"
href="mailto:wes-fs@499x.com">wes-fs@499x.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
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 <a class="moz-txt-link-abbreviated" href="mailto:sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx">sofia/sipinterface_1/912625551212@141.xxx.xxx.xxx</a><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 moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>