[Freeswitch-users] NOT in dialplan expression

Rupa Schomaker rupa at rupa.com
Wed Oct 21 08:07:46 PDT 2009


You can also look at using anti-action rather than action after the condition.

condition == if
action == then
anti-action == else

On Wed, Oct 21, 2009 at 6:34 AM, Mark Campbell-Smith
<mcampbellsmith at gmail.com> wrote:
> Hi!
>
> How do I do a NOT equal to in a dialplan expression
>
> Normaly in regex I would use the ! character.  This doesn't seem to work in FS..
>
> ie
>      <condition field="${variable}" expression="!^1">
>
> Shouldn't that match when the variable is not starting with one?
>
> _______________________________________________
> 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
>



-- 
-Rupa




More information about the FreeSWITCH-users mailing list