[Asterisk-Users] Multi companies

Joseph tech at ekn.com
Sat Jul 24 18:42:50 MST 2004


Troy Settle wrote:
> Sure, you can assign different contexts to different zap channels, but how
> does this help?  Normally, the telco will send each call on the first
> available channel in a given trunk group, sometimes, they will come in on
> random channels.
> 
> When a call rings in on Zap/1-1, the only way to know what to do with it, is
> by the DNIS information.
> 
>  exten => 2200,1,NoOp,Company A - main line
>  exten => 2201,1,NoOp,Company A - Fax
>  exten => 2211,1,noOp,Company A - CEO Direct Line
>  exten => 3000,1,NoOp,Company B - main line
>  exten => 3001,1,NoOp,Company B - Fax
>  exten => 3022,1,NoOp,Company B - Sales
>  exten => 3023,1,NoOp,Company B - Customer Service
> 
> Any of these calls might come in on any of your lines, so how does setting a
> different context for different zap channels help?

Does each company have a separate dnis?

  exten => 2200,1,Goto(company1,s,1)
  exten => 2201,1,Goto(company2,s,1)

[company1]
;Do stuff
exten => s,1,Answer
exten => s,2,Background(Welcome-msg)
include => this-company-phones

[company2]
;Do stuff
exten => s,1,Answer
exten => s,2,Background(Welcome-msg)
include => this-company-phones

If you know what channel pertains to who, than you coould use the zap 
contexts to control them.

respectfully, Joseph
--------------------



More information about the asterisk-users mailing list