Jer
2005-Mar-11 10:50 UTC
[Asterisk-Users] diffrent area codes for diffrent phones in dialplan
I have 3 sets of SIP phones all in diff area codes that need to access the PSTN I need to it so that a 7 digit number is converted to a 10 digit with the correct ara code eg a call coming from sip-phone1 needs aera code AAA and a call coming fom sip-phone2 needs BBB how can this be setup in the dialplan is there someway to set a var on a per sip group basis? I thought of the accountcode...since i will not be using it for CDR thoughts Thanks
Doug Meredith
2005-Mar-11 10:59 UTC
[Asterisk-Users] Re: diffrent area codes for diffrent phones in dialplan
Jer <jeremy@jesnjer.net> wrote:>I have 3 sets of SIP phones all in diff area codes that need to access the PSTN > >I need to it so that a 7 digit number is converted to a 10 digit with the >correct ara code > >eg a call coming from sip-phone1 needs aera code AAA and a call coming fom >sip-phone2 needs BBB >how can this be setup in the dialplan >is there someway to set a var on a per sip group basis? >I thought of the accountcode...since i will not be using it for CDRHow about a different initial context for each area code? Doug -- Doug Meredith (doug.meredith@systemguard.com) SystemGuard - Oracle remote support 877-974-8273 (87-SYSGUARD) 506-854-7997 www.systemguard.com
C F
2005-Mar-11 12:14 UTC
[Asterisk-Users] diffrent area codes for diffrent phones in dialplan
Create a different context for each phone. When including the PSTN extensions in the contexts, for each phones context include a different local context. Example: Phone A, Area code 212, context = phonea Phone B, Area code 718, context = phoneb Phone C, Area code 347, context = phonec extensions.conf: [phonea] ;put and include whatever you want here. exten => NXXXXXX,1,Dial(Device here,1212${EXTEN},options here) [phoneb] ;put and include whatever you want here. exten => NXXXXXX,1,Dial(Deveice here,1718${EXTEN},optionshere) [phonec] ;put and include whatever you want here. exten => NXXXXXX,1,Dial(Device here, 1347${EXTEN},optionshere) Hope this helps On Fri, 11 Mar 2005 12:50:15 -0500, Jer <jeremy@jesnjer.net> wrote:> I have 3 sets of SIP phones all in diff area codes that need to access the PSTN > > I need to it so that a 7 digit number is converted to a 10 digit with the > correct ara code > > eg a call coming from sip-phone1 needs aera code AAA and a call coming fom > sip-phone2 needs BBB > how can this be setup in the dialplan > is there someway to set a var on a per sip group basis? > I thought of the accountcode...since i will not be using it for CDR > > thoughts > > Thanks > > _______________________________________________ > 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 >