[Asterisk-Users] Incoming/Outgoing call question

Chris Bagnall asterisk at minotaur.cc
Thu Feb 23 18:23:22 MST 2006


For handling outbound calls, your easiest approach is to have each business'
phones default to different contexts, so you might have the dialplan
arranged as follows:

[in-pstn]
exten => number,1,dosomething
exten => number,1,dosomething
exten => number,1,dosomething
etc.

[business1]
; internal calls within business1
exten => _2XX,1,Dial(SIP/business2-${EXTEN})
<handle outbound calls from business 1>

[business2]
; internal calls within business2
exten => _2XX,1,Dial(SIP/business2-${EXTEN})
<handle outbound calls from business 2>

[business3]
; internal calls within business2
exten => _2XX,1,Dial(SIP/business3-${EXTEN})
<handle outbound calls from business 3>

Then of course in the appropriate sip/zap/iax.conf files where you've got
the various business' phones defined, set context=business1/2/3 as required.

To handle incoming calls from PSTN numbers I'd define 3 queues containing
the users from each business, then set each of the incoming numbers in
[in-pstn] to go to the appropriate queue. You'd probably also want to
include in-pstn in each business' context for outbound calls so that calls
made between them to each other don't go all the way out onto the PSTN and
back again.

Regards,

Chris
-- 
C.M. Bagnall, Director, Minotaur I.T. Limited
This email is made from 100% recycled electrons





More information about the asterisk-users mailing list