<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello Steve,<br><br>thanks for the advice :) <br><br>though one prob! if i add the authenticate line itll require all callers to enter 1234 to access *ANY* sip account..<br>even though this would come in handy at some point but at the moment i just want to deny the extension 300 from being able to call "01" unless the caller entered a password..<br>find below wht i did so far..<br><br><br><br><br><br>[sipura-line]<br>exten => 301,1,Answer() ; Answer inbound calls<br>exten => 301,2,Playback(silence/1)<br>exten => 301,3,Background(simzy1) ; input an extension<br><span style="color: rgb(255, 0, 0);">exten => 301,4,authenticate(1234)</span><br>exten => 301,5,WaitExten(8)<br>exten => 301,6,Dial(SIP/100,15) ; goes to operator<br>exten => 301,3,Wait(8)<br>include => spa<br>exten => _XXX,6,VoiceMail(100@default)<br>exten => 301,n,Hangup()<br><br><br><br><br>[spa]<br>exten =>_301,1,GoTo(sipura-line,${EXTEN},1)<br>exten => _1XX,1,Dial(SIP/${EXTEN},20) ;each ring equals to 5 seconds so it will ring 3 times<br>exten => _1XX,2,VoiceMail(${EXTEN}@default) ; direct 2 voicemail box if line is busy or unavailable<br>exten => _1XX,3,HangUp()<br>exten => _2XX,1,Dial(SIP/${EXTEN},20) ;each ring equals to 5 seconds so it will ring 3 times<br>exten => _2XX,2,VoiceMail(${EXTEN}@default) ; directs to voicemail box if line is busy or unavailable<br>exten => _2XX,3,HangUp()<br>exten => _3XX,1,Dial(SIP/${EXTEN},20) ; each ring equals to 5 seconds so it will ring 3 times<br>exten => _3XX,2,VoiceMail(${EXTEN}@default) ; directs 2 voicemail box if line is busy or unavailable<br>exten => _3XX,3,HangUp()<br>exten =>_01,1,Dial(SIP/$(EXTEN)@300) ; old ogero line<br>;exten =>_01,2,Set(TIMEOUT(absolute)=5)<br>exten =>_02,1,Dial(SIP/$(EXTEN)@304) ; new ogero line<br>exten =>_03,1,Dial(SIP/$(EXTEN)@305) ; samer<br>exten => 303,1,VoicemailMain ; voicemail box to be redirected to<br><br><br><br>> Date: Sun, 24 Aug 2008 12:05:02 -0400<br>> From: stotaro@totarotechnologies.com<br>> To: asterisk-users@lists.digium.com<br>> Subject: Re: [asterisk-users] entering a password to have access to a sip        account?!<br>> <br>> You want to use Authenticate() between answer and dial.<br>> <br>> http://www.google.com/search?q=asterisk+authenticate&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a<br>> <br>> Thanks,<br>> Steve Totaro<br>> <br>> On Sun, Aug 24, 2008 at 11:26 AM, RoLaNd RoLaNd <r_o_l_a_n_d@hotmail.com> wrote:<br>> ><br>> ><br>> > Hi all,<br>> ><br>> > i;m obviously a newbie, its been 2 days that im trying to figure out a way<br>> > to deny a specific extension (300) from calling another specific extensions<br>> > (03) except if the caller punch a specified password.. sorry if im not<br>> > explaining myself well.. heres an example:<br>> ><br>> > i called my pstn line(with 300 as its sip account), an attendant answers and<br>> > asks me to punch in an extension number right now if i dial "03" it rings at<br>> > the other end! though i dont want that to happen! i want to set asterisk up<br>> > in a way tht if i dial "03" from "300" to ask me for a password... or it<br>> > wont let the line go through!<br>> ><br>> ><br>> > can anyone guide me through this issue! im really going crazy to get this<br>> > done! any help would truly and utterly be appreciated:)<br>> ><br>> ><br>> ><br>> > ps: find below my extensions.conf<br>> ><br>> ><br>> > [sipura-line]<br>> > exten => 301,1,Answer() ; Answer inbound calls<br>> > exten => 301,2,Playback(silence/1)<br>> > exten => 301,3,Background(simzy1) ; input an extension<br>> > exten => 301,4,WaitExten(8)<br>> > exten => 301,5,Dial(SIP/100,15) ; goes to operator<br>> > exten => 301,4,Wait(8)<br>> > include => spa<br>> > exten => _XXX,6,VoiceMail(100@default)<br>> > exten => 301,n,Hangup()<br>> ><br>> ><br>> ><br>> ><br>> > [spa]<br>> > exten =>_301,1,GoTo(sipura-line,${EXTEN},1)<br>> > exten => _1XX,1,Dial(SIP/${EXTEN},20) ;each ring equals to 5 seconds so it<br>> > will ring 3 times<br>> > exten => _1XX,2,VoiceMail(${EXTEN}@default) ; direct 2 voicemail box if line<br>> > is busy or unavailable<br>> > exten => _1XX,3,HangUp()<br>> > exten => _2XX,1,Dial(SIP/${EXTEN},20) ;each ring equals to 5 seconds so it<br>> > will ring 3 times<br>> > exten => _2XX,2,VoiceMail(${EXTEN}@default) ; directs to voicemail box if<br>> > line is busy or unavailable<br>> > exten => _2XX,3,HangUp()<br>> > exten => _3XX,1,Dial(SIP/${EXTEN},20) ; each ring equals to 5 seconds so it<br>> > will ring 3 times<br>> > exten => _3XX,2,VoiceMail(${EXTEN}@default) ; directs 2 voicemail box if<br>> > line is busy or unavailable<br>> > exten => _3XX,3,HangUp()<br>> > exten =>_01,1,Dial(SIP/$(EXTEN)@300) ; old ogero line<br>> > ;exten =>_01,2,Set(TIMEOUT(absolute)=5)<br>> > exten =>_02,1,Dial(SIP/$(EXTEN)@304) ; new ogero line<br>> > exten =>_03,1,Dial(SIP/$(EXTEN)@305) ; samer<br>> > exten =>_04,1,Dial(SIP/$(EXTEN)@306) ; gilberte<br>> > exten =>_05,1,Dial(SIP/$(EXTEN)@307) ; conference<br>> > exten =>_06,1,Dial(SIP/$(EXTEN)@308) ; line 4<br>> > exten => 303,1,VoicemailMain ; voicemail box to be redirected to<br>> ><br>> ><br>> > ________________________________<br>> > Get news, entertainment and everything you care about at Live.com. Check it<br>> > out!<br>> > _______________________________________________<br>> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> ><br>> > AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>> > Register Now: http://www.astricon.net<br>> ><br>> > asterisk-users mailing list<br>> > To UNSUBSCRIBE or update options visit:<br>> > http://lists.digium.com/mailman/listinfo/asterisk-users<br>> ><br>> <br>> _______________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> <br>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>> Register Now: http://www.astricon.net<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br><br /><hr />Connect to the next generation of MSN Messenger <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>