Benjamin Jacob
2007-Aug-01 11:02 UTC
[asterisk-users] multiple pbxes, multiple domains, same user ids?
Hello good ppl, A couple of questions for multiple pbxes 1. Is it possible to support multiple pbxes in one Asterisk box(using contexts, etc.)? 2. Can we use the "domain" field in sip.conf to specify the different domains for sip users, having one domain for each pbx? I just tried registering two xlites, with different domain names (with the same specified in sip.conf). But, Asterisk maintains the registration of the latest registree!! thats really sad for me . Any work around for this one(multiple pbx)? I would be zapped and amazed if multiple pbx isn't possible in Asterisk. Help anyone? cheers - Ben. EMAIL DISCLAIMER : This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. If you receive this transmission in error, please notify the sender by reply email and then destroy the message. Opinions, conclusions and other information in this message that do not relate to official business of Mascon shall be understood to be neither given nor endorsed by Mascon. Any information contained in this email, when addressed to Mascon clients is subject to the terms and conditions in governing client contract. Whilst Mascon takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Mascon grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.
C F
2007-Aug-01 12:56 UTC
[asterisk-users] multiple pbxes, multiple domains, same user ids?
Can you please get rid of your awfull long nonsense disclaimer? On 8/1/07, Benjamin Jacob <benjamin.jacob at mgl.com> wrote:> Hello good ppl, > A couple of questions for multiple pbxes > 1. Is it possible to support multiple pbxes in one Asterisk box(using > contexts, etc.)? > 2. Can we use the "domain" field in sip.conf to specify the different > domains for sip users, having one domain for each pbx? > > I just tried registering two xlites, with different domain names (with > the same specified in sip.conf). But, Asterisk maintains the > registration of the latest registree!! thats really sad for me . > > Any work around for this one(multiple pbx)? > I would be zapped and amazed if multiple pbx isn't possible in Asterisk. > > Help anyone? > > cheers > - Ben. > > > > EMAIL DISCLAIMER : This email and any files transmitted with it are > confidential and intended solely for the use of the individual or entity to > whom they are addressed. Any unauthorised distribution or copying is > strictly prohibited. If you receive this transmission in error, please > notify the sender by reply email and then destroy the message. Opinions, > conclusions and other information in this message that do not relate to > official business of Mascon shall be understood to be neither given nor > endorsed by Mascon. Any information contained in this email, when addressed > to Mascon clients is subject to the terms and conditions in governing client > contract. > > Whilst Mascon takes steps to prevent the transmission of viruses via e-mail, > we can not guarantee that any email or attachment is free from computer > viruses and you are strongly advised to undertake your own anti-virus > precautions. Mascon grants no warranties regarding performance, use or > quality of any e-mail or attachment and undertakes no liability for loss or > damage, howsoever caused. > > > > _______________________________________________ > --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 >
Anselm Martin Hoffmeister
2007-Aug-03 08:02 UTC
[asterisk-users] multiple pbxes, multiple domains, same user ids?
Am Mittwoch, den 01.08.2007, 16:32 +0530 schrieb Benjamin Jacob:> Hello good ppl, > A couple of questions for multiple pbxes > 1. Is it possible to support multiple pbxes in one Asterisk box(using > contexts, etc.)? > 2. Can we use the "domain" field in sip.conf to specify the different > domains for sip users, having one domain for each pbx? > > I just tried registering two xlites, with different domain names (with > the same specified in sip.conf). But, Asterisk maintains the > registration of the latest registree!! thats really sad for me . > > Any work around for this one(multiple pbx)? > I would be zapped and amazed if multiple pbx isn't possible in Asterisk. > > Help anyone?If "multiple domains" means you want to register SIP phones with the usernames "sip501" at domain1 and "sip501" at domain2, that in my experience will not work out this way, because for registered users only the peer name is relevant (corrections welcome, but it seems like that to me). What you could do of course is name the peers reasonably: customera-501, customerb-501 On the first thought, this is not as elegant, but on the other hand, if the phone displays the username, it is better than displaying "sip-501". You would need to have some magic to distinguish between your "domains" in the dialplan. There is a "static" way of doing it (by setting the context=blah in the sip peers) or a dynamic way, by giving them all into the same context, and then do some Asterisk DB magic to make out which internal partner to reach if "581" is dialled, or which trunk line to use, or whom to bill calls to. This is absolutely possible, without the customers noticing. If you want to support incoming SIP as in sip:secretary at example.com, for different domains, you can specify that in sip.conf. In my experience (again, I am ready to learn there are better ways) the best working thing is having a separate domain name for registrations (to get things easily separated), like "register.yourcompany.domain", with a line domain=register.yourcompany.domain and for all further domains have separate contexts, like "domain-examplecom" and "domain-exampleorg", looking like domain=example.com,domain-examplecom domain=example.org,domain-exampleorg and in extensions.conf, you could go like [domain-examplecom] exten => secretary,1,Dial(SIP/customera-505) exten => bigboss,1,Dial(SIP/customera-500) [domain-exampleorg] exten => secretary,1,Dial(SIP/customerb-555) exten => sales,1,Dial(SIP/customerb-514&SIP/customerb-519) HTH Anselm