I had found a link that showed a way seperate out the users on an asterisk box, so that for example my extensions will not end up making calls on my flatmates italk account and vice versa. That was on the laptop which is not turning on at the moment, and I cant find it again. I think it was refering to partitioning asterisk, but looking for that just gets me loads of installation issues that people are having with disk partitions. We will need totally seperate inward call processing on them and outgoings only going to the appropriate sip account.
We both want to create quite elaborate dialplans, and having to coordinate that we dont conflict with each others numbers would be a pain. Also am not keen on prefixing outgoing calls, and since we both have multiple providers it would be even harder.
I'm certain that there was something to allow identical extension numbering and handling them differently.
richms: I'm certain that there was something to allow identical extension numbering and handling them differently.
There sure is - just use completely separate sets of contexts inside the dial plan - i.e the file extensions.conf. It takes a bit to get your head around the use of contexts - but it's well worth the effort.
Start with the channel definition for your incoming trunk (be it sip or zap or iax) - define in it which context to send the incoming calls to. If possible, use separate contexts for the separate trunks. (Recently I had a situation where I needed to separate two iTalk trunks - the problem was regardless of the fact that I had two different iTalk numbers defined and registered - regardless of which number was dialled - they both ended up coming in to the asterisk box on the same context. I got around that by using goto statements within that context in extensions.conf, based on the dialled number - sending them off to appropriate different contexts for subsequent handling.)
You can also define different sets of phones (extensions) to exist within separate contexts, and those separate contexts can have different outgoing trunks defined, so that you don't need to explicitly dial a number to choose which trunk to call out over for each call.