trunk IAX

mettichi
Joined: Wed 23 of Jul, 2008

trunk IAX

Posted:Wed 30 of Jul, 2008 (12:46 UTC)
Hello friends I need your help please
i would like to interconnect two servers asterisk i need the configuration in iax.conf and extensions.conf

First server:
IP addr: 192.168.1.203
extensions: 100, 101, ....

Second server:
IP addr: 192.168.1.67
extensions: 200, 201, ...

please help me i have 30 days but i couldn't do this


this is my configuration:

Server 1:
iax.conf

[general]
bindport = 4569	
bindaddr = 0.0.0.0
disallow = all
allow = ulaw
allow = alaw
allow = gsm
mailboxdetail = yes



[VOIP1]
type=friend
host=192.168.1.203
auth=rsa
inkey=voip2
outkey=voip1
context=FROM_VOIP1
qualify=yes
trunk=yes

extensions.conf

[FROM_VOIP1]
include => VOIP2

[VOIP2]
exten => _2XX,1,Dial(${EXTEN})   
exten => _1XX,1,Dial(IAX2/VOIP1/${EXTEN})


Server 2:
iax.conf

[general]
bindport = 4569	
bindaddr = 0.0.0.0
disallow = all
allow = ulaw
allow = alaw
allow = gsm
mailboxdetail = yes




[VOIP2]
type=friend
host=192.168.1.67
auth=rsa
inkey=voip1
outkey=voip2
context=FROM_VOIP2
qualify=yes
trunk=yes


extensions.conf

 Hello friends I need your help please
i would like to interconnect two servers asterisk i need the configuration in iax.conf and extensions.conf

First server:
IP addr: 192.168.1.203
extensions: 100, 101, ....

Second server:
IP addr: 192.168.1.67
extensions: 200, 201, ...

please help me i have 30 days but i couldn't do this


this is my configuration:

Server 1:
iax.conf

[general]
bindport = 4569	
bindaddr = 0.0.0.0
disallow = all
allow = ulaw
allow = alaw
allow = gsm
mailboxdetail = yes



[VOIP1]
type=friend
host=192.168.1.203
auth=rsa
inkey=voip2
outkey=voip1
context=FROM_VOIP1
qualify=yes
trunk=yes

extensions.conf

[FROM_VOIP2]
include => VOIP1

[VOIP1]
exten => _1XX,1,Dial(${EXTEN})   
exten => _2XX,1,Dial(IAX2/VOIP2/${EXTEN})



when i try to call with xlite this is the error message:


 Accepting AUTHENTICATED call from 192.168.1.251:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (ulaw|alaw|gsm),
       > priority = mine
    -- Executing [150@default:1] Dial("IAX2/utech_iax1-2568", "IAX2/VOIP1/150") in new stack
    -- Called VOIP1/150
    -- Call accepted by 192.168.1.203 (format gsm)
    -- Format for call is gsm
    -- Hungup 'IAX2/VOIP1-16384'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Auto fallthrough, channel 'IAX2/utech_iax1-2568' status is 'CHANUNAVAIL'
    -- Hungup 'IAX2/utech_iax1-2568'
    -- Executing [102@default:1] Dial("SIP/utech1-b77014c0", "IAX2/VOIP1/102") in new stack
    -- Called VOIP1/102
    -- Call accepted by 192.168.1.203 (format gsm)
    -- Format for call is gsm
    -- Registered IAX2 'utech_iax1' (AUTHENTICATED) at 192.168.1.252:4569
    -- IAX2/VOIP1-16385 is circuit-busy
    -- Hungup 'IAX2/VOIP1-16385'
  == Everyone is busy/congested at this time (1:0/1/0)