VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
david.villasmil.work a... Guest
|
Posted: Fri Dec 11, 2020 11:23 am Post subject: [Freeswitch-users] Can't test for empty variable |
|
|
Hello all,
I'm trying to test the play_and_get_digits variable from here:
<action application="play_and_get_digits" data="1 1 1 3000 # '' silence_stream://250 dtmf_get \d 3000"/>
Like this:
<condition field="${dtmf_get}" expression="^$">
But it's always false...
How can I test for an empty (null?) variable?
Regards,
David Villasmilemail: david.villasmil.work@gmail.com (david.villasmil.work@gmail.com)
phone: +34669448337 |
|
Back to top |
|
|
kaduww at gmail.com Guest
|
|
Back to top |
|
|
borik.internet at gmai... Guest
|
Posted: Fri Dec 11, 2020 4:18 pm Post subject: [Freeswitch-users] Can't test for empty variable |
|
|
As I remember, the empty value of a variable is equivalent of unset variable. So, I think you can't test variable if it is empty at all
пт, 11 дек. 2020 г. в 23:46, Carlos Eduardo <kaduww@gmail.com (kaduww@gmail.com)>:
--
With best regards
Dmitry Borisov |
|
Back to top |
|
|
per at wgtwo.com Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|