On Wed, 2004-06-23 at 17:12, Sathya wrote: > Hi, > > Greatly appreciate if some one help me with the application read().
I have added a feature to reload asterisk from a phone... it uses 'read' to get a 3 digit password.... I was using '#' to end the sequence until I realised I could specify the number should be only three digits long... My voice prompts (posix-...) are described in the "text" comments... ; 307 = Restart Asterisk exten => 307,1,DigitTimeout(4) ; Set Digit Timeout 4 seconds exten => 307,2,ResponseTimeout(5) ; Set Response Timeout 5 sec exten => 307,3,Read(Secret,posix-pass-restart-ast,3) ; "to restart type the passwd" exten => 307,4,NoOp(${Secret}) exten => 307,5,Gotoif($[${Secret} = 123]?6:9) exten => 307,6,Playback(posix-restarting) ; "Restarting asterisk" exten => 307,7,Wait(1) exten => 307,8,System(/usr/sbin/asterisk -rx reload) exten => 307,9,Hangup -- . . ___. .__ Posix Systems - Sth Africa /| /| / /__ [EMAIL PROTECTED] - Mark J Elkins, Cisco CCIE / |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496 _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users