[asterisk-users] Read Command

Lee, John (Sydney) John.Lee at compuware.com
Mon Aug 25 01:19:57 CDT 2008


> 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...   

I hope I understand your question.
You can use Read(<var-name>,<msg>,<length of input>);
You can then use switch to control the input.

Alternatively, you can use WaitExten() instead of Read().

Also, try to code your dialplan using AEL2 instead of AEL.




More information about the asterisk-users mailing list