[Asterisk-Users] More switch => stuff

Steven Critchfield critch at basesys.com
Wed Jul 2 09:15:01 MST 2003


Sorry, that last sentence I had put in there was a thought interupted by
my normal job. I meant for you to do the little research into adding the
context to the end of your switch statement, and if I was wrong then go
about the adding of users.
 

On Wed, 2003-07-02 at 11:02, Eric Wieling wrote:
> If you have to set up different users for the different contexts what'
> the usefulness of having a /context on the switch => statement?
> 
> On Wed, 2003-07-02 at 10:47, Steven Critchfield wrote:
> > On Wed, 2003-07-02 at 10:36, Eric Wieling wrote:
> > > I have a two remote PBXs.  I use the switch => statement on each PBX to
> > > point to the other PBX.
> > > 
> > > Now I want extensions on PBX-1 to dial extensions and PSTN numbers that
> > > are local to PBX-2.
> > > 
> > > However, I ALSO want people to be able to dial into a Zap channel on
> > > PBX-1 and be able to dial extensions on PBX-2, but NOT the PSTN numbers
> > > that are local to PBX-2.
> > > 
> > > What would be the best way to do this?  Do I have to set up separate
> > > users in iax.conf, one for using with a switch statement in the context
> > > calls to the Zap channel lands in and one user for calls from extensions
> > > land in?
> > 
> > I believe you can specify contexts with the switch command. If so you
> > can include a switch to an extensions context on the remote pbx in your
> > inbound context while using a more full featured context for calls
> > originating from inside. Look into that, if I am, then yes, you will
> > need to create the second IAX user in each direction. 
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list