[Freeswitch-users] Can't test for empty variable

Dmitriy Borisov borik.internet at gmail.com
Fri Dec 11 20:52:04 UTC 2020


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 at gmail.com>:

> Hey David,
>
> Test with with this
>
> expression="^.?$"
>
> Regards...
>
>
>
> Em sex., 11 de dez. de 2020 às 12:44, David Villasmil <
> david.villasmil.work at gmail.com> escreveu:
>
>> 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 Villasmil
>> email: david.villasmil.work at gmail.com
>> phone: +34669448337
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>> services.
>> Build your next product on our scalable cloud platform.
>>
>> Join our online community to chat in real time
>> https://signalwire.community
>>
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> 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
>> https://freeswitch.com
>
>
>
> --
> *Carlos E. Wagner*
> *Tecnólogo em Telecomunicações, Opensips Certified Professional*
>
> *Fone: +55 48 99981-0894*
> *E-mail:* kaduww at gmail.com
> *LinkedIn:* https://www.linkedin.com/in/carlos-eduardo-wagner-96bbb433/
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> 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
> https://freeswitch.com



-- 
With best regards
   Dmitry Borisov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20201211/620ed878/attachment.html>


More information about the FreeSWITCH-users mailing list