[Freeswitch-users] Variable interpolation of bridge b leg

Michael Collins msc at freeswitch.org
Fri Apr 1 08:30:52 MSD 2011


Try this instead:
http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_app
and
http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_data

-MC

On Thu, Mar 31, 2011 at 1:32 AM, mayamatakeshi <mayamatakeshi at gmail.com>wrote:

> I am setting channel variable execute_on_answer in my call to application
> bridge. Like this:
>
> <action application='bridge' data='{execute_on_answer=record_session
> $${base_dir}/storage/recorded_sessions/${uuid}_${strftime(%Y%m%d-%H%M%S)}.wav}sofia/external/
> DestinationNumber at 192.168.2.2' />
>
> The above works, and the application record_session is executed on the leg
> b. However, the uuid it gets is from leg a, and the timestamp is from the
> time bridge was executed, which as I understand, is happening because the
> variable interpolation is performed at the moment the application bridge is
> executed.
> So, is there a way to delay variable interpolation to the instant the b leg
> app is executed?
>
> br,
> takeshi
>
> _______________________________________________
> 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/20110331/2325d506/attachment.html 


More information about the FreeSWITCH-users mailing list