[asterisk-users] Read Command

Paul Hales pdhales at optusnet.com.au
Mon Aug 25 01:49:52 CDT 2008


Joe Carroll wrote:
>
> I’ve search the world over…. but I haven’t figured out a way to have 
> valid/invalid options for entry when using the Read command…
>
> I need to set a variable, but only want to allow certain values to be 
> valid options for that variable…
>
> Any ideas?
>
> Thanks in advance..
>

If you use a goto based on the variable afterwards, it should jump to 
the 'i' (invalid) if the option entered does not exist.

Does that make enough sense? If not, feel free to ask more questions....

paulH




More information about the asterisk-users mailing list