Negative Lag?

Hi,

I have searched the forum for negative lags, but I found nothing.

Perhaps I have detected a bug? I have a Siptronic ST-150 with IAX2 firmware connected to my asterisk:
Asterisk 1.2.10 built by mark @ dell.purcell.id.au on a i686 running Linux on 2006-07-27 07:20:53 UTC

My asterisk is an actualk debian version. For this phone I get negative lags when I use qualify on the link:

Sep 25 10:11:02 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-11 ms)! Sep 25 10:11:12 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 17 Sep 25 10:14:13 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-1 ms)! Sep 25 10:14:23 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 5 Sep 25 10:40:23 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-1 ms)! Sep 25 10:40:33 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 8 Sep 25 10:44:33 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-1 ms)! Sep 25 10:44:43 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 8

Is this a abug in asterisk or in the firmware of the phone? Both use NTP from the same NTP server…

Does anyone know why this happens?

Regards, Holger

Hi

What have you set the qualify time to.

This is telling you that the link is toooo slow for some reason.

Ian

[quote=“ianplain”]Hi

What have you set the qualify time to.

This is telling you that the link is toooo slow for some reason.

Ian[/quote]

In the definition of the phone I have only

For SIP Phones this works fine. I have replaced this with

for testing purposes.

No, setting qualify to a value (and not “yes”) make the same problems:

Sep 25 14:39:13 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-6 ms)! Sep 25 14:39:23 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 22 Sep 25 14:43:23 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-7 ms)! Sep 25 14:43:33 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 22 Sep 25 14:47:33 NOTICE[5774]: chan_iax2.c:7213 socket_read: Peer 'iax' is now TOO LAGGED (-7 ms)! Sep 25 14:47:43 NOTICE[5774]: chan_iax2.c:7207 socket_read: Peer 'iax' is now REACHABLE! Time: 22

The phone works, so I think the asterisk qualify code should be fixed so that all negative RTTs are 0. Asterisk and the phone are on a GigE backbone so it may be that the IAX qualify code is broken or cannot handle fast RTTs.

Regards, Holger