hello johan, i use Authenticate and i get what i want thank you so much for your help :)
exten => 600,1,Ringing(2) exten => 600,n,Answer exten => 600,n,Authenticate(1234) exten => 600,n,Goto(home,s,1) 2013/12/5 Steve Edwards <asterisk....@sedwards.com> > On Thu, 5 Dec 2013, Salaheddine Elharit wrote: > > i have one question related to the IVR below >> >> exten => 600,1,Ringing() >> exten => 600,n,Wait(2) >> exten => 600,n,Goto(home,s,1) >> >> how can i ask the customer to enter a password before to go to (home,s,1) >> >> and where i must to store a password for example password 1234 >> >> if the customer enter 1234 he can Goto(home,s,1) and if the password is >> wrong i playback an error message >> > > That's 3 questions :) > > You need to provide more details. > > Is the password fixed or stored in a database? Is it the same as their > voicemail password? > > There are examples for all these scenarios. Goggle about, read ATFOT, > visit voip-info.org or use the Asterisk 'help' commands. > > > exten => s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/) >> exten => s,n,Background(${sounds_path}error >> > > Why are you fiddling with global variables? Isn't > '/var/lib/asterisk/sounds/' your 'default' sounds path? > > Please don't top post. > > Please trim irrelevent cruft from previous posts. > > Please don't burn all your karma points asking simple questions. > > -- > Thanks in advance, > ------------------------------------------------------------------------- > Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST > Newline Fax: +1-760-731-3000 > > > -- > _____________________________________________________________________ > -- 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 >
-- _____________________________________________________________________ -- 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