<!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">
based on the documentation here, it looks like I might be able to
execute a script, instead of directly doing the record command.
Then the script could maybe set the parameters I need?<br>
<br>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org/wiki/Mod_commands#originate">http://wiki.freeswitch.org/wiki/Mod_commands#originate</a><br>
<br>
<br>
<br>
On 6/14/2011 10:06 AM, <a class="moz-txt-link-abbreviated" href="mailto:wes-fs@499x.com">wes-fs@499x.com</a> wrote:
<blockquote cite="mid:4DF778DD.7060805@499x.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
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 moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:media_bug_answer_req=true%7Dsofia/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 moz-do-not-send="true"
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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<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>