[asterisk-users] Gotoif($[${LEN(${CALLERID(number)})} != 4]?true) doesn't work...

Positively Optimistic positivelyoptimistic at gmail.com
Wed Jul 2 11:19:11 CDT 2014


Thanks Doug!!  I appreciate  your response..  it sent me looking in the
right direction.  The following yielded the results I was looking for.

Gotoif($["${LEN(${CALLERID(number)})}" != "4"]?true)

I very much appreciate your response.

-Joe
Dothan, AL


On Wed, Jul 2, 2014 at 11:07 AM, Doug Lytle <support at drdos.info> wrote:

> Positively Optimistic wrote:
>
>> Anyone have any idea why the following would not work?  I'm trying to
>> test for a callerid value that is 4 digits in length..
>>
>
> Differences between yours and mine:
>
> Yours:
>
> Gotoif($[${LEN(${CALLERID(number)})} != 4]?true)
>
> Mine:
> Gotoif($["${LEN(${get-admin-password})}" < "1"]?2:4)
>
> Doug
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140702/4a92cd88/attachment.html>


More information about the asterisk-users mailing list