[Freeswitch-users] using $${var} and ${var} in javascript
Anthony Minessale
anthony.minessale at gmail.com
Thu May 26 22:01:06 MSD 2011
no $$ are available at runtime its special for xml pre-processor
but globals can be accessed at runtime with ${var}
using execute_extension as your example should expand vars.
On Thu, May 26, 2011 at 10:51 AM, 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
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
More information about the FreeSWITCH-users
mailing list