VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ron at silverbackasp.com Guest
|
Posted: Mon Feb 11, 2008 3:22 am Post subject: [asterisk-users] Single * multiple offices |
|
|
Hi,
Is what i'm thinking possible, i will setup an asterisk server, i will
let 2 or more offices use it, e.g.
Office 1 will have extension 100 - 110
Office 2 will have extension 100 - 105
Office 3 will also have 100 - 105
my questions are:
1. will it have conflict on the asterisk having the same extension
number for each office?
2. can i define trunk/s that will be dedicated only for each office?
3. can i define IVR for each office?
or to summarize it, is it possible to provide all the asterisk features
on all 3 offices without the offices conflicting with each other.
thank you in advanced
regards,
ron |
|
Back to top |
|
|
digium at sanguinarius... Guest
|
Posted: Mon Feb 11, 2008 4:20 am Post subject: [asterisk-users] Single * multiple offices |
|
|
Nhadie wrote:
Quote: | Hi,
Is what i'm thinking possible, i will setup an asterisk server, i will
let 2 or more offices use it, e.g.
Office 1 will have extension 100 - 110
Office 2 will have extension 100 - 105
Office 3 will also have 100 - 105
my questions are:
1. will it have conflict on the asterisk having the same extension
number for each office?
| No, you can simple segregate their dialplans using different contexts.
Quote: | 2. can i define trunk/s that will be dedicated only for each office?
| Yes, you merely only set up rules for those offices.
Quote: | 3. can i define IVR for each office?
| Yes.
Quote: | or to summarize it, is it possible to provide all the asterisk features
on all 3 offices without the offices conflicting with each other.
thank you in advanced
| I'm assuming you don't want each office to be able to talk to each other
directly. It may be a good idea to have separate config files for each
office and include them in the main config file. (using #include
<filename> ).
Don't forget that you will not be able to have 2 contexts across the
system with the same name.
|
|
Back to top |
|
|
ron at silverbackasp.com Guest
|
Posted: Mon Feb 11, 2008 4:55 am Post subject: [asterisk-users] Single * multiple offices |
|
|
Hi Thomas,
Thank you for reply, please correct me if i did not understand it correctly.
i need create sip_customerA.conf sip_customerB.conf sip_customerB.conf
under sip_customerA.conf
i will have [company-A-100] up to [company-A-110] with
context=company-A-context
under sip_customerB.conf
i will have [company-B-100] up to [company-B-105] with
context=company-B-context
under sip_customerC.conf
i will have [company-C-100] up to [company-C-110] with
context=company-C-context
and then i also need to create extensions_customerA.conf,
extensions_customerB.conf and extensions_customerC.conf
which will then contain dial plans for each offices and all the contexts
company-A-context, company-B-context and company-C-context.
what do i need to do in the dial plan so that when an extension in
customer A dial 101, it will only ring on extension 101 under customer A
and not 101 in B and C.
thanks again in advanced
regards,
Ron
Thomas Kenyon wrote:
Quote: | Nhadie wrote:
Quote: | Hi,
Is what i'm thinking possible, i will setup an asterisk server, i will
let 2 or more offices use it, e.g.
Office 1 will have extension 100 - 110
Office 2 will have extension 100 - 105
Office 3 will also have 100 - 105
my questions are:
1. will it have conflict on the asterisk having the same extension
number for each office?
| No, you can simple segregate their dialplans using different contexts.
Quote: | 2. can i define trunk/s that will be dedicated only for each office?
| Yes, you merely only set up rules for those offices.
Quote: | 3. can i define IVR for each office?
| Yes.
Quote: | or to summarize it, is it possible to provide all the asterisk features
on all 3 offices without the offices conflicting with each other.
thank you in advanced
| I'm assuming you don't want each office to be able to talk to each other
directly. It may be a good idea to have separate config files for each
office and include them in the main config file. (using #include
<filename> ).
Don't forget that you will not be able to have 2 contexts across the
system with the same name.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
digium at sanguinarius... Guest
|
Posted: Mon Feb 11, 2008 7:26 am Post subject: [asterisk-users] Single * multiple offices |
|
|
Nhadie wrote:
Quote: | Hi Thomas,
Thank you for reply, please correct me if i did not understand it correctly.
i need create sip_customerA.conf sip_customerB.conf sip_customerB.conf
under sip_customerA.conf
| You only need one sip.conf file and one extensions.conf, you just may
find it simpler to have 2.
Quote: | i will have [company-A-100] up to [company-A-110] with
context=company-A-context
| Yeah, if the handsets are sip handsets, then you just need a
context=line in each to segregate them in the dialplan.
You may be able to have the sip clients with the same name and have
asterisk match by host, but I don't know if this still works. (Haven't
tried it for a very long time).
Quote: | under sip_customerB.conf
i will have [company-B-100] up to [company-B-105] with
context=company-B-context
under sip_customerC.conf
i will have [company-C-100] up to [company-C-110] with
context=company-C-context
and then i also need to create extensions_customerA.conf,
extensions_customerB.conf and extensions_customerC.conf
| They can all be in the same file, as I said before, using multiple
though may make administration a bit simpler.
In your example you'd need an extensions.conf with containing nothing
more than.
#include /etc/asterisk/extensions_customerA.conf
#include /etc/asterisk/extensions_customerB.conf
#include /etc/asterisk/extensions_customerC.conf
Quote: | which will then contain dial plans for each offices and all the contexts
company-A-context, company-B-context and company-C-context.
what do i need to do in the dial plan so that when an extension in
customer A dial 101, it will only ring on extension 101 under customer A
and not 101 in B and C.
| Set the context in sip.conf for the handset in company A to point to a
context that can dial the phones in company A.
Eg:
sip.conf:
[general]
bindport = 5060
bindaddr = 0.0.0.0
[CustomerA-100]
type=friend
secret=password
context=outgoingcompanya
accountcode=companya ;useful for billing using cdr
.. (then codec stuff and voicemail settings)
[CustomerA-101]
type=friend
secret=password
context=outgoingcompanya
accountcode=companya ;useful for billing using cdr
.. (then codec stuff and voicemail settings)
[CustomerB-100]
type=friend
secret=password
context=outgoingcompanyb
accountcode=companya ;useful for billing using cdr
.. (then codec stuff and voicemail settings)
[CustomerB-101]
type=friend
secret=password
context=outgoingcompanyb
accountcode=companya ;useful for billing using cdr
.. (then codec stuff and voicemail settings)
etc ...
extensions.conf:
[outgoingcompanya]
exten => _10.,1,Dial(SIP/CustomerA-${EXTEN})
[outgoingcompanyb]
exten => _10.,1,Dial(SIP/CustomerB-${EXTEN})
Quote: | thanks again in advanced
| Obviously this is all oversimplified, but you get the gist.
Try reading about sip.conf and extensions.conf won www.voip-info.org and
reading the sample configuration files that come with asterisk.
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|