[*] Long Distance PIN

Chris Friesen cfriesen at telenium.ca
Thu Sep 2 10:48:14 CDT 2010


Did you try adding something like this to the dial command?

D([called][:calling]) 
Sends DTMF digits after the call is answered but before it is bridged. The called digits are transmitted to the called party, the calling digits to the calling party. One or both parameters may be set.


I've seen and example like this 
... ,1,D([1234])

And I wonder , if you didn't want them to hear the DTMF tones could you use m to play some music on hold while the call is connected or r to play ringing. w for wait
,1,rD(w[1234])


-----Original Message-----
From: asterisk-bounces at muug.mb.ca [mailto:asterisk-bounces at muug.mb.ca] On Behalf Of Bergen, Mark
Sent: September-02-10 10:00 AM
To: John Lange; asterisk at muug.mb.ca
Subject: Re: [*] Long Distance PIN

Thank you for the reply John, really appreciate it.
I know you probably tried everything (yes, I'm reinventing the wheel, please be patient) but shouldn't something like this work:
exten => _50201NXXNXXXXXXwwww1234,1,Dial(dialout-trunk,1,,(${EXTEN:4}))
Then dial 5020 1 204 982 0218 1234 (1234 being the PIN) MTS still operates in the same manner regarding answering the line for the pin while the call is still in progress. I saw a fix for it (patch) but it was for Asterisk 1.4, not sure if it would work for Trixbox 2.8 (Asterisk 1.6).
https://issues.asterisk.org/view.php?id=12123
Thanks again for your time, I really appreciate it.
Mark

Mark Bergen
Network Support Analyst
ONLINE BUSINESS SYSTEMS
Explore | Innovate | Lead

200-115 Bannatyne Ave., Winnipeg MB  R3B 0R3 mbergen at obsglobal.com |  Direct Line: 204.982-0218
Office: 204.982.0200  |  Fax: 204.982.0201 www.obsglobal.com


-----Original Message-----
From: John Lange [mailto:john at johnlange.ca]
Sent: September-01-10 9:24 PM
To: Bergen, Mark
Subject: Re: [*] Long Distance PIN

For a brief time we had an Allstream PRI with PINs and I never got this working with Asterisk.

The problem is, the PRI does not send the "answer" signal when prompting for the PIN leaving asterisk to think that the call is still making progress. In other words, Asterisk will not move to the next step in the dialplan so you can't do any sending of DTMF etc.

It was over 3 years ago that I tried it so things may be different now.

--
John Lange
http://www.johnlange.ca


On Wed, 2010-09-01 at 13:09 -0500, Bergen, Mark wrote:
> Hello all;
> 
> We are using Trixbox 2.8 in one of our offices connected to a PRI
> (Allstream) and there are two things we are struggling with:
> 
> 1.      We use PIN’s for all of our long distance calls, is there some
> way to have the PIN included when a user makes a long distance call by 
> using DTMF maybe? It is for the VMX locator, some of our consultants 
> work outside of Winnipeg and would like to give users the option of 
> contacting them at the office they are working in or by cell phone, 
> but when a user tries they hear MTS prompting them for the PIN. We 
> have managed to create custom outbound routes for individual users but 
> can’t get the DTMF part to work.
> 
> Here is some of what we have tried (5020 represents the users 
> extension, so each outbound route can be unique):
> 
> exten => _50201NXXNXXXXXX,1,Dial(dialout-trunk,1,,D(www1234
> ${EXTEN:4}))
> 
> and
> 
> [outrt-005-VmXtoLONGDISTANCEcalls-custom]
> 
> exten => _50201[12345678]XXNXXXXXX,1,Macro(user-callerid,SKIPTTL,)
> 
> exten => _50201[12345678]XXNXXXXXX,n,Set(_NODEST=)
> 
> exten => _50201[12345678]XXNXXXXXX,n,Macro(record-enable,
> ${AMPUSER},OUT,)
> 
> exten => _50201[12345678]XXNXXXXXX,n,Macro(dialout-trunk,1,
> ${EXTEN:4},,)
> 
> exten => _50201[12345678]XXNXXXXXX,n,Macro(senddtmf)
> 
> exten => _50201[12345678]XXNXXXXXX,n,Macro(outisbusy,)
> 
> [macro-senddtmf]
> 
> exten => s,1,SendDTMF (1234)
> 
> 2.      The second problem is when a someone calls in and wishes to be
> transferred to an office or user that is not local and does not have a 
> toll free number. Blind transfer will not work as the caller does not 
> know the PIN and trying a attended transfer did not work either, 
> Asterisk gives us a beep but we don’t receive one from the phone 
> company, how can we transfer a long distance call and enter the long 
> distance PIN before the transfer completes?
> 
> Other than that the little Trixbox appliance is working fine, the 
> Sangoma T1 card works great so far, and the FXO ports have not been a 
> problem, faxing and analog phone are working.
> 
> Any direction or help with the above would be greatly appreciated.
> 
> Mark
> 
>  
> 
> Mark Bergen
> 
> Network Support Analyst




More information about the Asterisk mailing list