[Asterisk-Users] Simple authentication

Bartosz Wegrzyn - asterisk junk at lexon.ws
Thu Mar 31 01:11:46 MST 2005


Hi,

I would like to create extension, so user will have to enter password, and
later he will be prompt for a number to call.
My config looks like this (ONLY THE PART OF):

exten => 888,1,Ringing(),
exten => 888,2,wait(2)
exten => 888,3,Background,welcome
exten => 888,4,Authenticate(1234|a)
exten => 888,5,goto(plan,s,1)

[plan]
exten => s,1,Playback,pls-entr-num-uwish2-call
exten => s,2,wait(10)
exten => s,3,Dial(SIP/${EXTEN-1 at Nikotel,60,Ttr)
exten => s,4,Hangup

The thing is that this is not working the
exten => s,3,Dial(SIP/${EXTEN-1 at Nikotel,60,Ttr)
calls null number.

How do I pass the number to s,3.
Can I do a check if caller entered any numbers?

Thanks

Bart,





More information about the asterisk-users mailing list