Scott Henderson
2004-Oct-05 10:35 UTC
[Asterisk-Users] Long distance provider with access number and auth code
I need to be able to dial a long distance provider that uses an access number and an auth code. I would like to be able to program this so that the user can dial 8 and then the long distance number, asterisk will hopefully do everything in the middle. The sequence to accessing the provider is on my traditional phone speed dial as: * Dial local access number * Wait 5 seconds * Dial the auth code * Dial the number I am not quite sure how to accomplish this with the exten. I would prefer to avoid using a speed dial on the individual phones if possible. This particular service is dial quite often by a number of different people with different phones so simplicity is what I am after. Not to mention saving me explaining the same thing a dozen times with a variation per phone used ;-) . To head off the comments about other ways to get LD access, I have a specific application/need that has to be addressed. -- Scott Henderson =========================================Finite Technologies Incorporated 3763 Image Drive, Anchorage, Alaska 99504 Phone: 907.337.2860, Fax: 907.333.4482 http://www.finite-tech.com http://www.chillywall.com http://www.virtuale.cc http://www.mphage.com ==========================================
Jason Kawakami
2004-Oct-05 12:27 UTC
[Asterisk-Users] Re: Long distance provider with access number and auth code
----- Original Message -----> I need to be able to dial a long distance provider that uses an access > number and an auth code. I would like to be able to program this so > that the user can dial 8 and then the long distance number, asterisk > will hopefully do everything in the middle. > > The sequence to accessing the provider is on my traditional phone speed > dial as: > > * Dial local access number > * Wait 5 seconds > * Dial the auth code > * Dial the numberso you would build some context called [dialout-ld-auth] with exten => _81NXXXXXXXXX,1,StripMSD,1 exten => _1NXXXXXXXXX,2,Dial,Zap/g1/BYEXTENSION exten => _1NXXXXXXXXX,3,Wait(5) exten => _1NXXXXXXXXX,4,SendDTMF(12345) ;where 12345 is the auth code and in your normal telephone context do an include =>dialout-ld-auth and an ignorepat =>8 this assumes that the auth code for all users is 12345 and is static. if this is not the case then the above will not work but would still be possible.> I am not quite sure how to accomplish this with the exten. > > I would prefer to avoid using a speed dial on the individual phones if > possible. This particular service is dial quite often by a number of > different people with different phones so simplicity is what I am > after. Not to mention saving me explaining the same thing a dozen times > with a variation per phone used ;-) . > > To head off the comments about other ways to get LD access, I have a > specific application/need that has to be addressed.Hope that helps. Jason Kawakami www.optellabs.com
Scott Henderson
2004-Oct-05 12:44 UTC
[Asterisk-Users] Re: Long distance provider with access number and auth code
So would the last step of the process noted below then be: exten => _1NXXXXXXXXX,5,SendDTMF(${EXTEN:0}) Or assuming I chose the correct variable EXTEN is it possible to append this to priority noted below. Scott Jason Kawakami wrote:>----- Original Message ----- > > >>I need to be able to dial a long distance provider that uses an access >>number and an auth code. I would like to be able to program this so >>that the user can dial 8 and then the long distance number, asterisk >>will hopefully do everything in the middle. >> >>The sequence to accessing the provider is on my traditional phone speed >>dial as: >> >>* Dial local access number >>* Wait 5 seconds >>* Dial the auth code >>* Dial the number >> >> > >so you would build some context called [dialout-ld-auth] > >with >exten => _81NXXXXXXXXX,1,StripMSD,1 >exten => _1NXXXXXXXXX,2,Dial,Zap/g1/BYEXTENSION >exten => _1NXXXXXXXXX,3,Wait(5) >exten => _1NXXXXXXXXX,4,SendDTMF(12345) ;where 12345 is the auth >code > >and in your normal telephone context do an include =>dialout-ld-auth and an >ignorepat =>8 > >this assumes that the auth code for all users is 12345 and is static. if >this is not the case then the above will not work but would still be >possible. > > > >>I am not quite sure how to accomplish this with the exten. >> >>I would prefer to avoid using a speed dial on the individual phones if >>possible. This particular service is dial quite often by a number of >>different people with different phones so simplicity is what I am >>after. Not to mention saving me explaining the same thing a dozen times >>with a variation per phone used ;-) . >> >>To head off the comments about other ways to get LD access, I have a >>specific application/need that has to be addressed. >> >> > >Hope that helps. > >Jason Kawakami >www.optellabs.com > > > > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@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 > >-- Scott Henderson =========================================Finite Technologies Incorporated 3763 Image Drive, Anchorage, Alaska 99504 Phone: 907.337.2860, Fax: 907.333.4482 http://www.finite-tech.com http://www.chillywall.com http://www.virtuale.cc http://www.mphage.com ========================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041005/1012e66a/attachment.htm
Jason Kawakami
2004-Oct-05 13:41 UTC
[Asterisk-Users] Re: Re: Re: Long distance provider with access number and auth code
----- Original Message ----- <snip>>So would the last step of the process noted below then be: > > exten => _1NXXXXXXXXX,5,SendDTMF(${EXTEN:0}) > > Or assuming I chose the correct variable EXTEN is it possible to append > this to priority noted below.<snip>> >exten => _81NXXXXXXXXX,1,StripMSD,1 > >exten => _1NXXXXXXXXX,2,Dial,Zap/g1/BYEXTENSION > >exten => _1NXXXXXXXXX,3,Wait(5) > >exten => _1NXXXXXXXXX,4,SendDTMF(12345) ;where 12345 is theauth> >code<snip> you are actually sending the TN in priority 2 to the ZAP channel (I made an assumption here). so you need to send the auth code first then the TN? if so, then it would read exten => _81NXXXXXXXXX,1,StripMSD,1 exten => _1NXXXXXXXXX,2,Dial,Zap/g1/12345 ;where 12345 is the auth code exten => _1NXXXXXXXXX,3,Wait(5) exten => _1NXXXXXXXXX,4,SendDTMF(${EXTEN}) haven't seen it this way from a carrier before, I have always sent the number on the trunk first and then authenticate once I get a tone prompt. should work I think though. Jason
Jason Kawakami
2004-Oct-06 11:29 UTC
[Asterisk-Users] Re:Re: Re: Re: Re: Long distance provider with access number and auth code
----- Original Message ----- <snip> You could probably build an AGI that would handle the dialing and deal with sending the digits to the ZAP channel and once the call has been authenticated, have the AGI transfer the call back to the originating extension. Looks like the SendDTMF and Wait commands don't actually complete until after the call is hung up. Watching the CLI might show that once you hang up, 10 s later you will send the (auth-code) and then 10 s later you send the ${EXTEN}, but maybe not. As of right now, you will probably need to build an extension that calls an AGI to do this. Sorry for getting your hopes up. Jason Kawakami www.optellabs.com