Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have an asterisk based phone system with multiple clients connected to it.
At the moment, all the extension numbers fall in the range 100 - 9999. But, now we have an issue where a particular customer wants to come onto our service and insists on keeping their existing extension list.

Is there a way of having extensions 700 for one customer, and also the same number range to another customer. But yet having them belong to a different group?

I see there is a concept of groups in asterisk but none of them seem to provide a solution to this.

share|improve this question

migrated from superuser.com Jun 17 '10 at 1:05

This question came from our site for computer enthusiasts and power users.

add comment

3 Answers

Have you looked at putting the different extension "groups" in different contexts in the extensions (and sip) config files?

Its been a while since I did it, but believe you would just need to give the default context to the SIP devices (in sip.conf) so that the devices for the "new" client would live in their own context and not cross contexts.

-Andy

share|improve this answer
add comment

Andy's correct. Extensions don't have global uniqueness, only local uniqueness within the same context, so you can create one context per customer (or "virtual dialplan" scope). If you're using static config files (extensions.conf, sip.conf, and so on), a context is the thing enclosed in brackets in extensions.conf.

Like Andy said, their SIP accounts then reference that context. You'll also need a shared context to answer DIDs for multiple customers and move the call to the right context-specific handler.

Hope this helps,

Troy, Cloudvox

share|improve this answer
add comment

You could build a separate Asterisk box and put the new group in that box. Link the two boxes via IAX.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.