[Asterisk-Dev] One T1 - two companies?

Eric Wieling eric at fnords.org
Fri May 28 21:43:47 MST 2004


On Fri, 2004-05-28 at 23:14, Paul Mahler wrote:
> I know that the DID will match to the number in the context listed in
> zapata.conf. The problem is that all the DIDs from the PRI go to the same
> context. What I was hoping for was a way to direct different DIDs to
> different contexts. Otherwise, there is no way to have separate IVR menus
> for the two companies sharing a T1.
> 
> If I break the t1 into two sets of channels, how do I assign a DID to one or
> the other channel? 

[zap-incoming]
; DIDs for Microsoft
exten => _2126661XXX,1,GoTo(microsoft,${EXTEN},1)
exten => 5046662000,1,GoTo(microsoft,${EXTEN},1)
exten => 5046662500,1,GoTo(microsoft,${EXTEN},1)
;
; DIDs for Sun Microsystems
exten => _6165551XXX,1,GoTo(sun,${EXTEN},1)
exten => 2285552000,1,GoTo(sun,${EXTEN},1)
exten => 2285552500,1,GoTo(sun,${EXTEN},1)

[microsoft]
exten => 2126661000,1,Dial(SIP/1000)
exten => 2126661001,1,Dial(SIP/1002)
exten => 2126661002,1,Dial(SIP/1002)
exten => 5046662000,1,Dial(SIP/2000)
exten => 5046662500,1,Dial(SIP/2500)

[sun]

blah blah blah



-- 
          Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."




More information about the asterisk-dev mailing list