[Asterisk-Users] Enter numeric value to use as a parameter
jj
jjones at quiddesign.com
Thu Jul 21 06:28:07 MST 2005
Here is a snippet from my remote voicemail application where a user
needs to enter a code which is then matched against the db
;
exten => s,1,Wait(1)
exten => s,2,Answer()
exten => s,3,NoOp(${CALLERID}) ;just so I can see who
called, may wish to save sometime
;exten => s,4,noop()
exten => s,4,DigitTimeout(1) ;1 second between digits
exten => s,5,SetVar(officecode=)
exten => s,6,Background(after-the-tone)
exten => s,7,Background(please-enter-your)
exten => s,8,Background(office-code)
exten => s,9,Background(vm-then-pound)
exten => s,10,Background(beep)
exten => s,11,ResponseTimeout(10) ;10 seconds to start dialing
exten => s,12,WaitExten
;
;Collect digits here
exten => _x,1,SetVar(officecode=${officecode}${EXTEN})
exten => _x,2,GoTo(s,11)
;
;Done collecting, check response
exten => #,1,DBget(cust=rvm/${officecode})
exten => #,2,Playback(auth-thankyou)
exten => #,3,GoTo(${cust},1112,1) ;Correct entry, goto
customer
exten => #,102,Playback(wrong-try-again-smarty)
;exten => #102,Playback(you-dialed-wrong-number)
exten => #,103,GoTo(s,5) ;Incorrect entry,
start over
;
On Jul 20, 2005, at 3:39 PM, Poul Møller Hansen wrote:
> Can anyone please tell me how I can enter a 6 digits value to use
> as a parameter in a url called by curl ?
> The problem is not the curl setup, but how do I make the setup in
> extensions.conf, so I can retrieve the number the users enters ?
>
> Thanks
>
> Poul
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list