Jacob Hunter
2004-Jun-12 01:14 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
How do you prepend. I want to be able to dial 7 digits instead of of 11 for local calls. Can someone post there extensions.conf part that is relavent?
usedcanon
2004-Jun-12 02:45 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
Quite simple really, You could do the following assuming your area code is 0207 (london !) exten => 9NXXNXXX,1, Dial(SIP/0207${EXTEN}) Umar. -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Jacob Hunter Sent: 12 June 2004 09:15 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing How do you prepend. I want to be able to dial 7 digits instead of of 11 for local calls. Can someone post there extensions.conf part that is relavent? _______________________________________________ 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
Christopher Wilber
2004-Jun-12 02:54 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing {Scanned}
If I have understood correctly then this is what you want: exten => _55.,1,Dial(IAX2/userid:passwd@iax.voiptalk.org/441332${EXTEN}||r) The last line is what you are after I think. All local calls in my area begin with 5-7 so I pattern match this and then extend it with 44 (UK code) and 1332 (local trunk) before passing to my VOIP/PSTN gateway. Regards Chris Wilber On Saturday 12 June 2004 09:14, Jacob Hunter wrote:> How do you prepend. I want to be able to dial 7 digits instead of of > 11 for local calls. > > Can someone post there extensions.conf part that is relavent? > > _______________________________________________ > 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-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.
Chris Lee
2004-Jun-12 03:05 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
usedcanon wrote:> Quite simple really, > > You could do the following assuming your area code is 0207 (london !) > > exten => 9NXXNXXX,1, Dial(SIP/0207${EXTEN}) > > Umar. >The London code is 020 the 7 or the 8 is part of the local number now.
Jacob Hunter
2004-Jun-12 03:49 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
im in US On Jun 12, 2004, at 1:14 AM, Jacob Hunter wrote:> How do you prepend. I want to be able to dial 7 digits instead of of > 11 for local calls. > > Can someone post there extensions.conf part that is relavent? > > _______________________________________________ > 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 >
Reid A. Forrest
2004-Jun-12 04:25 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
I do something very similar with my home system. I'm using Voicepulse, and want to be able to dial 10 digits instead of 11 for local calls. My local area codes are 321 and 407. Everything else is considered LD. exten => _407NXXXXXX,1,Dial(IAX2/username@voicepulse/1${EXTEN}) exten => _321NXXXXXX,1,Dial(IAX2/username@voicepulse/1${EXTEN}) exten => _1NXXNXXXXXX,1,Dial(IAX2/username@voicepulse/${EXTEN}) Assuming I wanted to dial only 7 digits for calls within 407 I could do this: exten => _NXXXXXX,1,Dial(IAX2/username@voicepulse/1407${EXTEN}) Hope this helps! Reid -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Jacob Hunter Sent: Saturday, June 12, 2004 6:49 AM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing im in US On Jun 12, 2004, at 1:14 AM, Jacob Hunter wrote:> How do you prepend. I want to be able to dial 7 digits instead of of > 11 for local calls. > > Can someone post there extensions.conf part that is relavent? > > _______________________________________________ > 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 >_______________________________________________ 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
Jacob Hunter
2004-Jun-12 04:48 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
Does this look right exten => _9NXXXXXX,1,SetCallerID(831-XXX-XXXX) exten => _9NXXXXXX,2,Dial(IAX2/username@NuFone/1831${EXTEN}) exten => _9NXXXXXX,3,Congestion
Reid A. Forrest
2004-Jun-12 04:53 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
Not sure about the SetCallerID bit, but the rest does. Your SetCallerID may work (not sure). I use SetCallerID("Reid Forrest" <(407) 555-1212>) -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Jacob Hunter Sent: Saturday, June 12, 2004 7:48 AM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing Does this look right exten => _9NXXXXXX,1,SetCallerID(831-XXX-XXXX) exten => _9NXXXXXX,2,Dial(IAX2/username@NuFone/1831${EXTEN}) exten => _9NXXXXXX,3,Congestion _______________________________________________ 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
usedcanon
2004-Jun-12 04:57 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
I know :-), it was just an example. -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Chris Lee Sent: 12 June 2004 11:06 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing usedcanon wrote:> Quite simple really, > > You could do the following assuming your area code is 0207 (london !) > > exten => 9NXXNXXX,1, Dial(SIP/0207${EXTEN}) > > Umar. >The London code is 020 the 7 or the 8 is part of the local number now. _______________________________________________ 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
usedcanon
2004-Jun-12 04:59 UTC
[Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing
looks fine to me Umar -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Jacob Hunter Sent: 12 June 2004 12:48 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Prepending for 9NxxNxxx - adding the area code for 7 digit dialing Does this look right exten => _9NXXXXXX,1,SetCallerID(831-XXX-XXXX) exten => _9NXXXXXX,2,Dial(IAX2/username@NuFone/1831${EXTEN}) exten => _9NXXXXXX,3,Congestion _______________________________________________ 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