[Asterisk-Users] IAX2 Trunking help!

Tony Nichols tony at mail.applog.com
Tue Jun 22 08:20:40 MST 2004


On Tue, 2004-06-22 at 10:20, David Cook wrote:
> So you're saying that the following would be the same?
> 
> iax.conf
> [YOUR_REC_SERVER]
> secret=mysecret
> host=my.receiving.server.ca
> context=local
> 
> extensions.conf
> exten => _5XXX,1,Dial(IAX2/YOUR_REC_SERVER/${EXTEN})
> 
> If so, what about the type=peer/user/friend thing? I did read the docs
> but maybe I'm thick. Maybe the visual person in me needs to see a matrix.
> 
> Further, If I can get two boxes to talk together like this, what exactly
> is the "register" for ... what does it actually do?
> 
> dbc.
> 
> Quoting Kevin Walsh <kevin at cursor.biz>:
> 
> > David Cook [dbc_asterisk at advan.ca] wrote:
> > > [mycontext]
> > > exten =>
> > >
> >
> _5XXX,1,Dial(IAX2/REC_SERVER:mysecret at my.receiving.server.ca/${EXTEN}@local)
> > > exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup
> > > 
> > You really don't want your username and password to appear (in
> > plain
> > text) in your logs.
> > 
> > Put the sensitive details in iax.conf instead of extensions.conf.
> > As well as being more secure, it'll make your Dial() string
> > shorter,
> > and will mean that you only have to change the connection details
> > in
> > one place, should the need arise in the future.
> > 
> > -- 
> >    _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
> >   _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s
> > h
> >  _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
> > _/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
> > 
If I remove the trunk=yes and the context=local, then change to type
user it seems to work......
I will do some more testing to see if all the different extensions work.
I'm a little bewildered however .... seems like peer should have been
correct, and trunking=yes.
Guess as long as I can direct calls to/from each location (4 total)
that's all that counts!




More information about the asterisk-users mailing list