This is how I did it..

 

I have to Servers, SRV1 and SRV2

 

In SRV1 iax.conf

 

[SRV1-SRV2]

type=peer

username=SRV1-SRV2

secret=Password1

host=<IP OF SRV2>

qualify=yes

 

[SRV2-SRV1]

type=user

username=SRV2-SRV1

secret=Password2

context=from-iax

host=<IP OF SRV2>

quailfy=yes

 

 

If I need to make calls on other box, I do Dial(IAX2/SRV1-SRV2/XXXXXX) where
XXXXX is in destination "from-iax" context

 

On SRV2 iax.conf

 

[SRV1-SRV2]

type=user

username= SRV1-SRV2

secret=Password1

host=<IP of SRV1>

context=from-iax

qualify=yes

 

[SRV2-SRV1]

type=peer

username= SRV2-SRV1

secret=Password2

host=<IP of SRV1>

qualify=yes

 

And calls from Here to There are Dial(IAX2/SRV2-SRV1/XXXXX) where XXXX is in
destination "from-iax" context

 

 

 

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of khalid touati
Sent: Tuesday, January 26, 2010 10:11 AM
To: [email protected]
Subject: [asterisk-users] [inter-pbx commnication] trying to make PBX1 talk
to PBX2

 

Hi All,
i want to make an extension from pbx1 able to tlak to another extension from
pbx2 or use pbx2's trunk to dial outside calls.
 
 
so i edited in both servers accordinally the iax.conf:
 
...

...

...

when i type "iax2 show peers" i notice that pbx's are registred. of course
still didn't attend my goal, do anybody have an idea how to make this
happend?!

-- 
Abdullah

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to