RE: [Asterisk-Users] want to set a var in sip.conf

2004-05-19 Thread Florian Overkamp
Hi, -Original Message- i have extensions in locations across a number of telco area codes. when someone in seattle picks up and dials 91234567, it would be nice to transform it to 92061234567. i would prefer not to have an extension context per area code. it would be cool to be

Re: [Asterisk-Users] want to set a var in sip.conf

2004-05-19 Thread John Todd
At 12:10 AM -0600 on 5/19/04, brian k. west wrote: Just as a better example of how to use accountcode for this ... maybe we could add areacode= to sip.conf and pull that into a var instead of wasting the accountcode for this hrm... [1234567] username=whatever secret=whatever context=phones

[Asterisk-Users] want to set a var in sip.conf

2004-05-18 Thread Randy Bush
i have extensions in locations across a number of telco area codes. when someone in seattle picks up and dials 91234567, it would be nice to transform it to 92061234567. i would prefer not to have an extension context per area code. it would be cool to be able to set a variable in the sip.conf

Re: [Asterisk-Users] want to set a var in sip.conf

2004-05-18 Thread brian k. west
You could be kinky and use accountcode= for that purpose then dial(blah/${ACCOUNTCODE}${EXTEN}) bkw - Original Message - From: Randy Bush [EMAIL PROTECTED] To: splatters [EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:26 PM Subject: [Asterisk-Users] want to set a var in sip.conf i

Re: [Asterisk-Users] want to set a var in sip.conf

2004-05-18 Thread Duane
Randy Bush wrote: i have extensions in locations across a number of telco area codes. when someone in seattle picks up and dials 91234567, it would be nice to transform it to 92061234567. i would prefer not to have an extension context per area code. it would be cool to be able to set a variable

Re: [Asterisk-Users] want to set a var in sip.conf

2004-05-18 Thread Eric Wieling
On Tue, 2004-05-18 at 23:26, Randy Bush wrote: i have extensions in locations across a number of telco area codes. when someone in seattle picks up and dials 91234567, it would be nice to transform it to 92061234567. i would prefer not to have an extension context per area code. it would be

Re: [Asterisk-Users] want to set a var in sip.conf

2004-05-18 Thread Eric Wieling
On Tue, 2004-05-18 at 23:46, Eric Wieling wrote: On Tue, 2004-05-18 at 23:26, Randy Bush wrote: i have extensions in locations across a number of telco area codes. when someone in seattle picks up and dials 91234567, it would be nice to transform it to 92061234567. i would prefer not to

Re: [Asterisk-Users] want to set a var in sip.conf

2004-05-18 Thread brian k. west
Just as a better example of how to use accountcode for this ... maybe we could add areacode= to sip.conf and pull that into a var instead of wasting the accountcode for this hrm... [1234567] username=whatever secret=whatever context=phones accountcode=920 then in extensions.conf [outbound]