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/UsernameHost 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
ChannelRTT Jit Del Lost % Drop OOO Kpkts Jit Del
Lost % Drop OOO Kpkts
0 active IAX channels
voip1*CLI iax2 show channels
Channel Peer UsernameID (Lo/Rem) Seq (Tx/Rx)
Lag Jitter JitBuf Format
(None)192.168.250.112 (None) 4/0 1/0
0ms -0001ms ms unknow
1 active IAX channel
Connected to Asterisk 1.2.27 currently running on voip1 (pid = 11085)
voip1*CLI iax2 show peers
Name/UsernameHost 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 UsernameID (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 UsernameID (Lo/Rem) Seq (Tx/Rx)
Lag Jitter JitBuf Format
(None)192.168.250.112 (None) 1/0 1/0
0ms -0001ms ms 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/UsernameHost 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 UsernameID (Lo/Rem) Seq (Tx/Rx)
Lag Jitter JitBuf Format
(None)192.168.250.111 interbox00341/0 2/0
0ms -0001ms ms unknow
(None)192.168.250.111 interbox03957/0 2/0
0ms -0001ms ms 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/UsernameHost 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