[Asterisk-Users] Re: Asterisk-Users digest, Vol 1 #4460 - 14 msgs

Jason Kawakami jkkawakami at optellabs.com
Thu Jul 8 17:32:46 MST 2004


> Message: 13
> Date: Fri, 9 Jul 2004 11:42:01 +1200 (NZST)
> From: =?iso-8859-1?q?Eugen=20Cristea?= <tecristea at yahoo.co.nz>
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] asterisk to asterisk config
> Reply-To: asterisk-users at lists.digium.com
>
> Hi,
>
> I would like to set two separate asterisks to talk to
> each other.
> Any suggestions?
> I'm a "baby" asterisk fan, only started to play two
> weeks ago, first managed to use kphone with asterisk
> and a  X100P card that is up and running as well.
>
> Thanks,
> Eugen
>
you need to build a trunk between them.  iax trunks work great for this.
Add something like this to your iax.conf

[box1]                            ;this goes into the config of box2
type=friend
host=192.168.x.x            ;address of box1
secret=blah
context= (default)
trunk=yes

[box2]                            ;this goes into the config of box1
type=friend
host=192.168.x.x            ;address of box2
secret=blah
context= (default)
trunk=yes

then you need to register with each other

in box1 iax.conf

register=box1:blah at 192.168.x.x.:5036

and in box2 iax.conf

register=box2:blah at 192.168.x.x.:5036

that will get you trunked together.  then you need to build something to
dial out that trunk in the extensions.conf like

exten=_2xx,1,Dial,(IAX2/box1:blah at 192.168.x.x/${EXTEN}
;assuming that box2 has 2xx extensions, this is for box1's extensions file

exten=_1xx,1,Dial(IAX2/box2:blah at 192.168.x.x./${EXTEN}
;assuming that box1 has 1xx extensions, this is for box1's extensions file

that should give you an idea.  the syntax might not be perfect but it should
get you going down the path.

when in doubt, check the wiki  www.voip-info.org or google for something
like IAX trunking.   you are not the first person to do this.

good luck


Jason Kawakami




More information about the asterisk-users mailing list