[Freeswitch-users] using fs api to originate a call and record it
Michael Collins
msc at freeswitch.org
Sat Jun 11 02:30:19 MSD 2011
Try this:
originate
{media_bug_answer_req=true}sofia/sipinterface_1/912625551212 at 141.xxx.xxx.xxx
&record(/tmp/myrecording.wav)
Let us know if it works.
-MC
On Fri, Jun 10, 2011 at 1:05 PM, <wes-fs at 499x.com> wrote:
> I'm extremely new to freeswitch, and anything like it, so please forgive
> me!
>
> I'd like to be able to use the API to originate a call and record it.
> So far, I have the following figured out:
>
> originate sofia/sipinterface_1/912625551212 at 141.xxx.xxx.xxx
> &record(/tmp/myrecording.wav)
> And it dials out to an external number and successfully records the
> conversation.
>
> But, it also records the ringing. When I was trying this through a
> dialplan, I found an option:
> <action application="set" data="media_bug_answer_req=true"/>
> which delayed the recording until the call was answered.
>
> Is there a way to do the same thing through the API?
>
> Thanks!
> Wes
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110610/e411ac33/attachment.html
More information about the FreeSWITCH-users
mailing list