[*] Long Distance PIN

Bergen, Mark mbergen at obsglobal.com
Thu Sep 2 14:30:58 CDT 2010


Hi John;
Thanks to you and Chris for your replies.
Is it possible to use a :progress command when calling out? Something like D([called[:calling[:progress]]])?
This is really bugging me now, seems like such a simple thing to do :-). I'd rather not have to drop our MTS PINS but its starting to look like we'll have to.
Take care;
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-02-10 11:22 AM
To: Bergen, Mark
Subject: Re: [*] Long Distance PIN

> exten => 
> _50201NXXNXXXXXXwwww1234,1,Dial(dialout-trunk,1,,(${EXTEN:4}))

I'm pretty sure this won't work. The 'w' in the 'exten' just literally matches the character 'w'. It's not a "wait" signal like I assume you are thinking it is.

What your after is something like:

exten => _50201NXXNXXXXXX,1,Dial(DAHDI/g1/${EXTEN}||D(1234))

    D([called][:calling]) - Send the specified DTMF strings *after* the called
           party has answered, but before the call gets bridged. The 'called'
           DTMF string is sent to the called party, and the 'calling' DTMF
           string is sent to the calling party. Both parameters can be used
           alone.

However, as I said it doesn't work because asteirsk does not interpret the Allstream PIN prompt as an answered call so it never sends the DTMF.

All this is based on my 1.4.X knowledge since I've never run 1.6 so you might want to see if things have changed in 1.6 that can allow this.

Regards,

John Lange

On Thu, Sep 2, 2010 at 10:00 AM, Bergen, Mark <mbergen at obsglobal.com> wrote:
> 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
>>
>> 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
>>
>>
>>
>>
>> _______________________________________________
>> Asterisk mailing list
>> Asterisk at muug.mb.ca
>> http://www.muug.mb.ca/mailman/listinfo/asterisk
>
>



--
John Lange
www.johnlange.ca



More information about the Asterisk mailing list