Re: [asterisk-users] take input and store in variable
On 10/4/10 12:27 PM, Tom Lohmuller wrote: I am using a context to change values in a DB. Currently in my context, I am passing it to exten = s,1,WaitExten(7) ; 7 seconds to input exten = s,n,Set(NEW_VAR=${EXTEN}) ;Here is my problem. This is the only way I know how to 'grab' user input, which was normally from ${EXTEN} but I realize this won't work for extension 's'.. The short google search I did didn't turn up anything concrete. try: exten = s,1,WaitExten(7) exten = _X!,1,Set(NEW_VAR=${EXTEN}) exten = _X!,n,do other things... . . exten = t,1,Hangup() ;hang up if no input for 7 sec. -- Edwin Lam edwin@officegeneral.com Systems Engineer, OfficeWyze, Inc. Ph: +1 415 439 4988 Fax: +1 415 283 3370 http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20 -- _ -- 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
Re: [asterisk-users] take input and store in variable
Carlos Chavez wrote: On Mon, 2010-10-04 at 14:27 -0500, Tom Lohmuller wrote: I am using a context to change values in a DB. Currently in my context, I am passing it to exten = s,1,WaitExten(7) ; 7 seconds to input exten = s,n,Set(NEW_VAR=${EXTEN}) ;Here is my problem. This is the only way I know how to 'grab' user input, which was normally from ${EXTEN} but I realize this won't work for extension 's'.. The short google search I did didn't turn up anything concrete. What kind of search did you do to avoid getting the read command? http://www.voip-info.org/wiki/view/Asterisk+cmd+Read -- Vardan Harutyunyan, Senior System Administrator Enterprise Incubator Foundation 123 Hovsep Emin Street, Yerevan 0051, Republic of Armenia Tel: + 374 10 219735 Fax: + 374 10 219777 E-mail: i...@eif.am www.eif-it.com -- _ -- 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
[asterisk-users] take input and store in variable
I am using a context to change values in a DB. Currently in my context, I am passing it to exten = s,1,WaitExten(7) ; 7 seconds to input exten = s,n,Set(NEW_VAR=${EXTEN}) ;Here is my problem. This is the only way I know how to 'grab' user input, which was normally from ${EXTEN} but I realize this won't work for extension 's'.. The short google search I did didn't turn up anything concrete. Thank you! -Tom -- _ -- 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
Re: [asterisk-users] take input and store in variable
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tom Lohmuller Sent: Monday, October 04, 2010 2:27 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] take input and store in variable I am using a context to change values in a DB. Currently in my context, I am passing it to exten = s,1,WaitExten(7) ; 7 seconds to input exten = s,n,Set(NEW_VAR=${EXTEN}) ;Here is my problem. This is the only way I know how to 'grab' user input, which was normally from ${EXTEN} but I realize this won't work for extension 's'.. The short google search I did didn't turn up anything concrete. Thank you! -Tom Exten = s,1,Read(NEW_VAR,,7,skip,1,5) This will load NEW_VAR with 7 or fewer digits in 5 seconds. -- _ -- 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
Re: [asterisk-users] take input and store in variable
On Mon, 2010-10-04 at 14:27 -0500, Tom Lohmuller wrote: I am using a context to change values in a DB. Currently in my context, I am passing it to exten = s,1,WaitExten(7) ; 7 seconds to input exten = s,n,Set(NEW_VAR=${EXTEN}) ;Here is my problem. This is the only way I know how to 'grab' user input, which was normally from ${EXTEN} but I realize this won't work for extension 's'.. The short google search I did didn't turn up anything concrete. What kind of search did you do to avoid getting the read command? -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez Prats Director de Tecnología +52-55-91169161 ext 2001 signature.asc Description: This is a digitally signed message part -- _ -- 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