Hi, Its been quite a long time, since you started the thread [1]. I've got the same problem you've described. Did you solve this? [1] http://lists.freeswitch.org/pipermail/freeswitch-users/2009-November/049500....
Sorry, this was not intended for the list...
Hi,
Its been quite a long time, since you started the thread [1]. I've got the same problem you've described. Did you solve this?
[1] http://lists.freeswitch.org/pipermail/freeswitch-users/2009-November/049500....
Apologies for the trivial nature of this question, but can I "SET" a channel variable to the result of some boolean logic? Eg. something like <action application="set" data="voicemail_authorized=${sip_authorized) &&( ${sip_acl_authed_by} != domains)"/>
http://wiki.freeswitch.org/wiki/Mod_commands#cond / http://wiki.freeswitch.org/wiki/Function_cond I don't see any examples, so if you could edit the wiki... Something like: <action application="set" data="voicemail_authorized=${cond(${ sip_authorized} && ${cond(${sip_acl_authed_by} != 'domains')}}"/> Do note that this is completely untested though... A few lines lua script might be more maintainable. -Avi Marcus BestFone On Tue, Oct 2, 2012 at 11:05 AM, Alex <alex@thewinelake.com> wrote:
Apologies for the trivial nature of this question, but can I "SET" a channel variable to the result of some boolean logic?
Eg. something like
<action application="set" data="voicemail_authorized=${sip_authorized) &&( ${sip_acl_authed_by} != domains)"/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Alex
-
Avi Marcus
-
georg@riseup.net