conect two pbx with iax2

bitericasterisk's picture

hello i am trying to conect two pbx usin iax2 i this is what i configure on iax additional conf
server 1 configurtion

[166-peer]
host=192.168.15.166
username=253-user
secret=1234
type=peer
qualify=yes
trunk=yes

[166-user]
secret=1234
type=user
context=from-trunk

server 2 configurtion

[253-peer]
host=192.168.15.253
username=166-user
secret=1234
type=peer
qualify=yes
trunk=yes

[253-user]
secret=1234
type=user
context=from-trunk

i made a iax2 reload, system asterisk restart.
oniax2 reload on
server 1 i got

elastix*CLI> iax2 reload
== Parsing '/etc/asterisk/iax.conf': Found
== Parsing '/etc/asterisk/users.conf': Found
== Loaded firmware 'iaxy.bin'
== Parsing '/etc/asterisk/iaxprov.conf': Found
-- Loaded provisioning template 'default'
server 2 igot

elastix*CLI> iax2 reload
== Parsing '/etc/asterisk/iax.conf': Found
== Parsing '/etc/asterisk/iax_general_additional.conf': Found
== Parsing '/etc/asterisk/iax_general_custom.conf': Found
== Parsing '/etc/asterisk/iax_registrations_custom.conf': Found
== Parsing '/etc/asterisk/iax_registrations.conf': Found
== Parsing '/etc/asterisk/iax_custom.conf': Found
== Parsing '/etc/asterisk/i
ALO I MADE A IAX2 SHOW PEERS THAT WHAT I GOT
SERVER1

elastix*CLI> iax2 show peers
Name/Username Host Mask Port Status
0 iax2 peers [0 online, 0 offline, 0 unmonitored]
elastix*CLI>

SERVER2
elastix*CLI> iax2 show peers
Name/Username Host Mask Port Status
253-peer/166-us 192.168.15.253 (S) 255.255.255.255 4569 (T) OK (14 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
elastix*CLI>

PLEASE HELP ME BECAUSE I DID EVERYTHING I COULD DO


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Quote: PLEASE HELP ME

SkykingOH's picture
Quote:
PLEASE HELP ME BECAUSE I DID EVERYTHING I COULD DO

Did you see the warning at the top of the file that indicated it is overwritten by FreePBX?

Why did you not build the trunks in FreePBX?

If you are intent on hand coding them the change must be place in iax_custom.conf