The calls with all come in to one context, in this example from-ITSP. From there you send it to one context per company. As the example shows. I might do:
; All calls from ITSP come to here and you route each number somewhere else [from-ITSP] exten => 2125551112,1,Goto(companya,menu,1) exten => 2125551111,1,Goto(companyb,menu,1) ; then separate contexts for each company: [companya] extern => menu,1,..... extern => menu,n,..... [companyb] extern => menu,1,..... extern => menu,n,..... -- Jim Dickenson mailto:[email protected] CfMC http://www.cfmc.com/ > From: Myles Wakeham <[email protected]> > Organization: Tech Solutions USA, Inc. > Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion > <[email protected]> > Date: Sat, 01 Aug 2009 08:51:39 -0700 > To: <[email protected]>, <[email protected]> > Subject: Re: [asterisk-users] Dialplan strategy suggestions needed > > Tim wrote: > >> Sure, have a top level context that inbound calls from the ITSP go >into: >> [from-ITSP] >> exten => 2125551112,1,Goto(companya,${EXTEN},1) >> exten => 2125551111,1,Goto(companyb,${EXTEN},1) >> ; then separate contexts for each company: >> [companya] >> extern => 2125551111,1,..... >> extern => 2125551111,2,..... >> [companyb] >> extern => 2125551112,1,..... >> extern => 2125551112,2,..... > > Thanks. Yes, that is what I would have thought. But the problem is > that my ITSP has one entry in sip.conf and this goes to one context. > Should I repeat that entry for each DID that could come in from the ITSP > in sip.conf to allow this to work? > > Myles > > -- > ======================= > Myles Wakeham > Director of Engineering > Tech Solutions USA, Inc. > Scottsdale, Arizona USA > http://www.techsolusa.com > Phone +1-480-451-7440 > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
