[asterisk-users] iax2 trunk becomes unreachable (asterisk 1.4.21)

Vieri rentorbuy at yahoo.com
Sat Jun 21 07:30:51 CDT 2008


Hi,

I'm having trouble connecting two Asterisk boxes via a IAX2 friend trunk.
"iax2 show peers" on both boxes seem to show that all's fine (Status OK on qualify=yes peer).
voip1 is an Asterisk 1.2.27 production server.
voip2 is an Asterisk 1.4.21 experimental server in the same gigabit LAN.
If I register a SIP extension on voip2 and call an external number via the iax2 friend trunk then the call works fine (call flows from voip2 to voip1 to PSTN).
However, after hanging up there's no way I can place another call through this trunk.
The trunk's name is "interbox" (see below) and its peer status on voip2 (192.168.250.112) becomes UNREACHABLE while voip1 (192.168.250.111) is still OK.
The only way I found to make the trunk "work" again is to restart Asterisk 1.4.21 on voip2 (actually had to kill the process).
The bug is easily reproducible on my machines.

So it seems that voip2's IAX service is having major problems. I'm aware that there have been quite a few changes lately in 1.4 regarding IAX. Is anyone else experiencing this?

I would also like to point out an issue regarding the CLI in 1.4.21 which I believe has already been reported on this mailing list but it doesn't seem to have been addressed.
Subsequent "iax2 show channels" and "iax2 show peers" (and probably other commands) do not output anything. Only the first instance does. One has to quit the cli and open another console.

Thanks in advance.

Some info (please ignore "priv" which is a iax trunk for DUNDi lookups):

voip1 iax.conf:

[interbox]
deny=all
allow=alaw
allow=ulaw
allow=gsm
allow=ilbc
allow=g729
type=friend
host=192.168.250.112
secret=mysecret
auth=plaintext
qualify=yes
context=outbound-thru-interbox

[priv]
type=friend ; or peer
dbsecret=dundi/secret
qualify=yes
context=dundi-incoming

(similar iax.conf config for voip2)

CLI sessions:

Connected to Asterisk 1.2.27 currently running on voip1 (pid = 11085)
    -- Remote UNIX connection
Verbosity is at least 3
voip1*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
priv             (Unspecified)   (S)  0.0.0.0          4569          UNKNOWN
interbox         192.168.250.112 (S)  255.255.255.255  4569          UNREACHABLE
2 iax2 peers [0 online, 2 offline, 0 unmonitored]
voip1*CLI> show channels
Channel              Location             State   Application(Data)
0 active channels
0 active calls
voip1*CLI> iax2 show netstats
                                -------- LOCAL ---------------------  -------- REMOTE --------------------
Channel                    RTT  Jit  Del  Lost   %  Drop  OOO  Kpkts  Jit  Del  Lost   %  Drop  OOO  Kpkts
0 active IAX channels
voip1*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format
(None)                192.168.250.112  (None)      00004/00000  00001/00000  00000ms  -0001ms  0000ms  unknow
1 active IAX channel

Connected to Asterisk 1.2.27 currently running on voip1 (pid = 11085)
voip1*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
priv             (Unspecified)   (S)  0.0.0.0          4569          UNKNOWN
interbox         192.168.250.112 (S)  255.255.255.255  4569          UNREACHABLE
2 iax2 peers [0 online, 2 offline, 0 unmonitored]
voip1*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format
0 active IAX channels

Connected to Asterisk 1.2.27 currently running on voip1 (pid = 11085)
    -- Remote UNIX connection
Verbosity is at least 3
voip1*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format
(None)                192.168.250.112  (None)      00001/00000  00001/00000  00000ms  -0001ms  0000ms  unknow
1 active IAX channel


Connected to Asterisk 1.4.21 currently running on voip2 (pid = 4593)
Verbosity is at least 3
voip2*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
priv             (Unspecified)   (S)  0.0.0.0          4569          UNKNOWN
interbox         192.168.250.111 (S)  255.255.255.255  4569          OK (3 ms)
2 iax2 peers [1 online, 1 offline, 0 unmonitored]
voip2*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format
(None)                192.168.250.111  interbox    00341/00000  00002/00000  00000ms  -0001ms  0000ms  unknow
(None)                192.168.250.111  interbox    03957/00000  00002/00000  00000ms  -0001ms  0000ms  unknow
voip2*CLI>

Connected to Asterisk 1.4.21 currently running on voip2 (pid = 4593)
Verbosity is at least 3
voip2*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
priv             (Unspecified)   (S)  0.0.0.0          4569          UNKNOWN
interbox         192.168.250.111 (S)  255.255.255.255  4569          OK (3 ms)
2 iax2 peers [1 online, 1 offline, 0 unmonitored]
voip2*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format
(None)                192.168.250.111  interbox    00341/00000  00002/00000  00000ms  -0001ms  0000ms  unknow
(None)                192.168.250.111  interbox    03957/00000  00002/00000  00000ms  -0001ms  0000ms  unknow
voip2*CLI> iax2 show channels
voip2*CLI> quit
Executing last minute cleanups

voip2 ~ # asterisk -vr
Connected to Asterisk 1.4.21 currently running on voip2 (pid = 4593)
Verbosity is at least 3
voip2*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format
(None)                192.168.250.111  interbox    00341/00000  00002/00000  00000ms  -0001ms  0000ms  unknow
(None)                192.168.250.111  interbox    03957/00000  00002/00000  00000ms  -0001ms  0000ms  unknow
voip2*CLI> iax2 show channels
voip2*CLI> iax2 show peers
voip2*CLI> quit



      



More information about the asterisk-users mailing list