[asterisk-dev] Max retries exceeded to host x.x.x.x on IAX2

Robert Verspuy robert at exa-omicron.nl
Mon Jul 18 03:11:07 CDT 2011


Hi All,

I have a problem with the latest Asterisk 1.8.4.4.

I have two asterisk servers with a IAX2 trunk.
Between the two asterisk server we have a link with 600ms RTT and around 
2% packetloss, bandwidth is limited to 5 mbps

When I make one call, everything goes fine,
but during benchmarking, Ive used sipp to connect to asterisk-a server, 
that asterisk is connecting to the second asterisk-b server into an 
extension with MusicOnHold.

When I setup sipp to create multiple channels in a few seconds, when 
hanging up, the second asterisk still thinks there are a few IAX 
channels active.
In the log files I see the Max retries exceeded message for the (at the 
moment 12) hanging channels.
I've already tried to increase the max_retries in chan_iax2.c from 4 to 10.
But I still get the "Max retries exceeded messages".

I can imagine that the packetloss is taking away some IAX2 packets,
but 12 channels can not be closed properly, when creating 120 channels 
with a max_retry of 10?

My main concern is, that these channels are *never* closed.
I've just waited 3 whole days, but all 12 channels are still up 
(according to the second asterisk server).
I don't see them on the first asterisk server.

If I look into the chan_iax2.c source, I see that when the max_retries 
is reached, it tries to hangup the call or just destroys the call, based 
on wether the owner is still known or not.
But, in this case the owner is still known, but I assume a hangup is not 
sent at all, because I don't see any network traphic.
So do these calls really hang just forever? Or am I missing a 
configuration option (like the rtptimeout in sip.conf)

Does anybody have more information about this issue, or know where I 
should start debugging?

Thnx,
Robert Cerspuy

[Jul 18 09:48:43] WARNING[13771]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-10963 (type = 
6, subclass = 11, ts=318547115, seqno=216)
[Jul 18 09:48:43] WARNING[13772]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-3320 (type = 6, 
subclass = 11, ts=318547154, seqno=216)
[Jul 18 09:48:43] WARNING[13770]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-130 (type = 6, 
subclass = 11, ts=318547085, seqno=216)
[Jul 18 09:48:43] WARNING[13769]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-5098 (type = 6, 
subclass = 11, ts=318546989, seqno=216)
[Jul 18 09:48:44] WARNING[13764]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-401 (type = 6, 
subclass = 2, ts=318542897, seqno=215)
[Jul 18 09:48:44] WARNING[13767]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-6879 (type = 6, 
subclass = 11, ts=318546898, seqno=216)
[Jul 18 09:48:46] WARNING[13765]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-199 (type = 6, 
subclass = 11, ts=318547098, seqno=216)
[Jul 18 09:48:46] WARNING[13772]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-7422 (type = 6, 
subclass = 2, ts=318542908, seqno=215)
[Jul 18 09:48:47] WARNING[13768]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-907 (type = 6, 
subclass = 11, ts=318547309, seqno=216)
[Jul 18 09:48:47] WARNING[13772]: chan_iax2.c:3487 __attempt_transmit: 
Max retries exceeded to host 10.1.1.1 on IAX2/asterisk-a-134 (type = 6, 
subclass = 11, ts=318547299, seqno=216)

[root at asterisk-b asterisk]# rasterisk -nx "core show channels"
Channel              Location             State   Application(Data)
IAX2/asterisk-a-74 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-11 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-68 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-90 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-10 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-40 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-19 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-50 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-50 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-33 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-13 699 at from-c:5       Up      MusicOnHold()
IAX2/asterisk-a-13 699 at from-c:5       Up      MusicOnHold()
12 active channels
12 active calls
122 calls processed


-- 
*Exa-Omicron*
Patroonsweg 10
3892 DB Zeewolde
Tel.: 088-OMICRON (66 427 66)
http://www.exa-omicron.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110718/932e5d5b/attachment.htm>


More information about the asterisk-dev mailing list