[*] Asterisk Digest, Vol 69, Issue 2

Martin Glazer sourceforge at glazer.ca
Thu Sep 2 13:49:26 CDT 2010


Sorry about the digest reply...

Mark, why don't you look at this another way - why don't you have 
Trixbox handle the long distance PIN dialing and remove the "feature" 
from Allstream?

That way you will have more control over when a PIN is required, on 
which trunks and using which extensions? No need to worry about sending 
additional digits, etc.

A client of ours here in Calgary had something similar and we moved them 
to PINs with FreePBX - much easier now.

Just a thought....

Martin


On 09/02/2010 11:00 AM, asterisk-request at muug.mb.ca wrote:
> Send Asterisk mailing list submissions to
> 	asterisk at muug.mb.ca
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.muug.mb.ca/mailman/listinfo/asterisk
> or, via email, send a message with subject or body 'help' to
> 	asterisk-request at muug.mb.ca
>
> You can reach the person managing the list at
> 	asterisk-owner at muug.mb.ca
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Asterisk digest..."
>
>
> Today's Topics:
>
>     1. Long Distance PIN (Bergen, Mark)
>     2. Re: Long Distance PIN (Bergen, Mark)
>     3. Re: Long Distance PIN (Chris Friesen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 1 Sep 2010 13:09:52 -0500
> From: "Bergen, Mark"<mbergen at obsglobal.com>
> Subject: [*] Long Distance PIN
> To: "asterisk at muug.mb.ca"<asterisk at muug.mb.ca>
> Cc: "Bergen, Mark"<mbergen at obsglobal.com>
> Message-ID:
> 	<EE06E52B1CA505468DF39619AFCF989F2D1CDD2E6D at WPGMX02.obsglobal.com>
> Content-Type: text/plain; charset="us-ascii"
>
> 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<mailto:mbergen at obsglobal.com>  |  Direct Line: 204.982-0218
> Office: 204.982.0200  |  Fax: 204.982.0201
> www.obsglobal.com<http://www.obsglobal.com/>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://www.muug.mb.ca/pipermail/asterisk/attachments/20100901/bc043e62/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 2 Sep 2010 10:00:23 -0500
> From: "Bergen, Mark"<mbergen at obsglobal.com>
> Subject: Re: [*] Long Distance PIN
> To: John Lange<john at johnlange.ca>, "asterisk at muug.mb.ca"
> 	<asterisk at muug.mb.ca>
> Message-ID:
> 	<EE06E52B1CA505468DF39619AFCF989F2D1CE50D5A at WPGMX02.obsglobal.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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
>>      
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 2 Sep 2010 10:48:14 -0500
> From: "Chris Friesen"<cfriesen at telenium.ca>
> Subject: Re: [*] Long Distance PIN
> To: "'Bergen, Mark'"<mbergen at obsglobal.com>,<asterisk at muug.mb.ca>
> Message-ID:<001901cb4ab6$41172410$c3456c30$@telenium.ca>
> Content-Type: text/plain;	charset="utf-8"
>
> 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
>>      
>
>
>
> ------------------------------
>
> _______________________________________________
> Asterisk mailing list
> Asterisk at muug.mb.ca
> http://www.muug.mb.ca/mailman/listinfo/asterisk
>
>
> End of Asterisk Digest, Vol 69, Issue 2
> ***************************************
>    


More information about the Asterisk mailing list