[Freeswitch-users] How to record the call upon successful bridge
Jingwei Yang
jingwei.yang at gmail.com
Wed Feb 10 00:39:41 PST 2010
Hi Ray,
Thanks a lot for the replies. Allow me to elaborate a little bit about my
situation.
1. client A calls in and parks at Fifo myq.
2. FS connets Agent B to an extension (via originate
skypiax/ANY/jingwei.yang 33333)
3. uuid_bridge client A and agent B
I believe the spice I can add is in the extension 33333. Here's how I define
it.
<extension name="agent_hold">
<condition field="destination_number" expression="^33333$">
<action application="set" data="*execute_on_answer*=record_session
/tmp/33333.wav"/>
<action application="answer"/>
<action application="sleep" data="2000"/>
<action application="info"/>
<action application="playback"
data="ivr/ivr-hold_connect_call.wav"/>
</condition>
</extension>
But the wav file didn't get generated at all. Please advise whether the
above is in correct usage.
I've also tried bridge_pre_execute_bleg_app and bridge_pre_execute_bleg_data
<action application="set"
data="bridge_pre_execute_bleg_app=record_session"/>
<action application="set"
data="bridge_pre_execute_bleg_data=/tmp/33333.wav"/>
The audio file didn't appear either.
The only successful method is by using record_session directly like this:
<action application="record_session" data="/tmp/33333.wav"/>
However, in this form, the wav file includes the waiting music, which is not
ideal.
Thanks and best regards,
-Jingwei
On Wed, Feb 10, 2010 at 12:01 PM, Raymond Chandler <
intralanman at freeswitch.org> wrote:
> errr... .execute_on_answer might be better ;-)
> -Ray
>
> On Feb 9, 2010, at 9:19 PM, Jingwei Yang wrote:
>
> > Hi,
> >
> > I'm using uuid_bridge to bridge two calls. May I know how to start
> recording only when the bridge succeeds?
> >
> > Thanks,
> > -Jingwei
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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/20100210/1493da48/attachment-0002.html
More information about the FreeSWITCH-users
mailing list