I'm in need of a pointer.. If I want to have based on a caller id, allow incoming calls to be prompted for a "pin" then allow the caller to call back out another available line to the number dialed after the "pin" was entered, how would I accomplish that in *? Basically I can't call long distance from work and want to call home, enter a pin and then call wherever I want. I currently have a PSTN interface and a BV connection as well as IConnectHere. Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041011/9c69b3a3/attachment.htm
On Mon, 2004-10-11 at 13:57 -0400, Jeff Owen wrote:> I?m in need of a pointer?. > > If I want to have based on a caller id, allow incoming calls to be > prompted for a ?pin? then allow the caller to call back out another > available line to the number dialed after the ?pin? was entered, how > would I accomplish that in *? > > Basically I can?t call long distance from work and want to call home, > enter a pin and then call wherever I want.gogle or wiki on DISA. Also while you are on it, look up the ex-girlfriend logic. Combine and you are done. -- Steven Critchfield <critch@basesys.com>
On Mon, 2004-10-11 at 13:57, Jeff Owen wrote:> I?m in need of a pointer?. > > > > If I want to have based on a caller id, allow incoming calls to be > prompted for a ?pin? then allow the caller to call back out another > available line to the number dialed after the ?pin? was entered, how > would I accomplish that in *? > > > > Basically I can?t call long distance from work and want to call home, > enter a pin and then call wherever I want. > > > > I currently have a PSTN interface and a BV connection as well as > IConnectHere.You can use a combination of the anti ex-girlfriend feature and DISA like so... exten => s/XXXXXXXXXX,1,Answer exten => s/XXXXXXXXXX,2,DigitTimeout,5 exten => s/XXXXXXXXXX,3,ResponseTimeout,10 exten => s/XXXXXXXXXX,4,Authenticate(XXXXX) exten => s/XXXXXXXXXX,5,DISA,no-password|mycontext Replace the XXXXX's with the appropriate CID number and PIN and DISA will give you a dial tone from within the context that you pass to it. Just make sure you secure it enough that you feel comfortable against unwanted access. -Seth -- Seth Remington SaberLogic, LLC 661-B Weber Drive Wadsworth, Ohio 44281 Phone: (330)335-6442 Fax: (330)336-8559
On Mon, 11 Oct 2004 13:57:10 -0400, Jeff Owen <owenj@surfree.net> wrote:> If I want to have based on a caller id,Shouldn't filter on callerID since you can spoof it :)> allow incoming calls to be prompted > for a "pin" then allow the caller to call back out another available line to > the number dialed after the "pin" was entered, how would I accomplish that > in *?You could use the ${CALLERID} variable to filter on. Perhaps with a GotoIf statement. Have it send to another context and then use the Authorize application to authenticate the call.> Basically I can't call long distance from work and want to call home, enter > a pin and then call wherever I want.I just set that up as well the other day. Here is what has worked for me so far. I'm sure there are far more elegant solutions, but it works. I'll tweak it as I go :) [gateway] ; allow dialing out to the PSTN if the person authenticates exten => s,1,Authenticate(123456789) exten => s,2,Playback(pin-number-accepted) exten => s,3,ResponseTimeout(60) exten => s,4,Playback(this-call-may-be) ; This call may be recorded because we're paranoid exten => s,5,Playback(recorded) exten => s,6,Playback(because-paranoid) exten => s,7,Wait(1) exten => s,8,Background(enter-phone-number10) ; Please enter your ten-digit telephone ; number, area code first. exten => _NXXNXXXXXX,1,Playback(pls-hold-while-try) exten => _NXXNXXXXXX,2,NoOp("${DATETIME}: Placing call to ${EXTEN} via GATEWAY") ; CLI log message exten => _NXXNXXXXXX,3,Dial(${LDTRUNK}/1${EXTEN},45) exten => _NXXNXXXXXX,4,Hangup exten => t,1,Playback(goodbye) exten => t,2,Hangup exten => i,1,Playback(invalid) exten => i,2,Goto(gateway,s,8) Thanks, Leif Madsen. http://www.asteriskdocs.org