[Freeswitch-users] empty var expression

Madovsky infos at madovsky.org
Tue Jan 18 05:46:42 MSK 2011


ok I understoo what's happened.
weirdly with db app apparently if the result of a select is empty
so it will be in fact never empty but a space will be.
so

<condition field="${redir_conf}" expression="^ $" break="never"> 

with a space between ^ and $ works
  ----- Original Message ----- 
  From: Michael Collins 
  To: FreeSWITCH Users Help 
  Sent: Monday, January 17, 2011 7:21 PM
  Subject: Re: [Freeswitch-users] empty var expression


  Where is this variable getting or losing the "undef" value? Also, add this line to info and see what gets printed:


  <action application="log" data="WARNING $var contains '${var}'"/>


  That will print it out in purple letters to make it easier to see. FWIW, I tried this with various permutations of 'undefined' channel vars and expression="^$" always worked for me.


  -MC


  On Mon, Jan 17, 2011 at 3:55 PM, Madovsky <infos at madovsky.org> wrote:

    yes, I can see UNDEF
      ----- Original Message ----- 
      From: Michael Collins 
      To: FreeSWITCH Users Help 
      Sent: Monday, January 17, 2011 2:34 PM
      Subject: Re: [Freeswitch-users] empty var expression


      Is the var showing up as "UNDEF" when you send the call to the info app? 
      -MC


      On Fri, Jan 14, 2011 at 12:22 PM, Madovsky <infos at madovsky.org> wrote:

        I tried this for an var marked as "UNDEF" in log

        <condition field="${var}" expression="^UNDEF$" break="never">
        <condition field="${var}" expression="UNDEF" break="never">
        <condition field="${var}" expression="undef" break="never">
        <condition field="${var}" expression="^undef$" break="never">
        <condition field="${var}" expression="" break="never">
        <condition field="${var}" expression="^$" break="never">
        <condition field="${var}" expression="[UNDEF]" break="never">
        <condition field="${var}" expression="[]" break="never">

        without success.
        which is the right expression for empty var please ?

        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






--------------------------------------------------------------------------


      _______________________________________________
      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



    _______________________________________________
    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






------------------------------------------------------------------------------


  _______________________________________________
  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/20110117/514a59d8/attachment-0001.html 


More information about the FreeSWITCH-users mailing list