[Freeswitch-users] using $${var} and ${var} in javascript
Steven Ayre
steveayre at gmail.com
Thu May 26 20:01:14 MSD 2011
Not sure about ${{var}}, but you can get ${var} channel variables with
session:getVariable
-Steve
On 26 May 2011 16:51, Yungwei Chen <yungwei at resolvity.com> wrote:
> Hi,
>
> I am wondering if there's a way to use $${base_dir},
> ${strftime(%Y-%m-%d-%H-%M-%S), and ${destination_number} in a javascript
> program.
> For example, new_session.execute("record_session",
> "$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav");
> Thanks.
>
> _______________________________________________
> 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/20110526/c0b27b51/attachment.html
More information about the FreeSWITCH-users
mailing list