[Home]

Summary:ASTERISK-25792: chan_sip: qualifygap bounds checking
Reporter:Paul Sandys (paf)Labels:
Date Opened:2016-02-14 15:02:10.000-0600Date Closed:2019-03-27 06:01:49
Priority:TrivialRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:13.7.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In sip.conf:

qualifygap=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

causes ssprinf to convert to negative value, which in turn causes scheduler errors:

[Feb 14 15:48:23] WARNING[101151]: sched.c:465 sched_settime: Bug likely: Negative time interval -900 (interpreted as 4294966396 ms) requested!
[Feb 14 15:48:23] WARNING[101151]: sched.c:465 sched_settime: Bug likely: Negative time interval -900 (interpreted as 4294966396 ms) requested!
[Feb 14 15:48:23] WARNING[101151]: sched.c:465 sched_settime: Bug likely: Negative time interval -901 (interpreted as 4294966395 ms) requested!

Comments:By: Asterisk Team (asteriskteam) 2016-02-14 15:02:12.872-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Tommaso Vitale (tommaso.vitale) 2016-02-26 04:05:43.598-0600

Hi have same problem,

Release: Asterisk 11.21.0


[Feb 26 06:37:53] WARNING[2714] sched.c: Bug likely: Negative time interval -1493172224 (interpreted as 2801795072 ms) requested!
[Feb 26 06:38:36] WARNING[2714] sched.c: Bug likely: Negative time interval -1493172224 (interpreted as 2801795072 ms) requested!
[Feb 26 06:39:39] WARNING[2714] sched.c: Bug likely: Negative time interval -1493172224 (interpreted as 2801795072 ms) requested!
[Feb 26 06:40:42] WARNING[2714] sched.c: Bug likely: Negative time interval -1493172224 (interpreted as 2801795072 ms) requested!
[Feb 26 06:41:45] WARNING[2714] sched.c: Bug likely: Negative time interval -1493172224 (interpreted as 2801795072 ms) requested!


unique solution seems to be to restart asterisk

Please, Let me know if you need log data for helping troubleshoot.



By: Sean Bright (seanbright) 2019-03-25 14:31:58.727-0500

Here's a solution - stop putting...

{code}
qualifygap=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
{code}

... in {{sip.conf}}

By: Friendly Automation (friendly-automation) 2019-03-27 06:01:50.646-0500

Change 11172 merged by Joshua Colp:
chan_sip: Ensure 'qualifygap' isn't negative

[https://gerrit.asterisk.org/c/asterisk/+/11172|https://gerrit.asterisk.org/c/asterisk/+/11172]

By: Friendly Automation (friendly-automation) 2019-03-27 06:01:55.902-0500

Change 11174 merged by Friendly Automation:
chan_sip: Ensure 'qualifygap' isn't negative

[https://gerrit.asterisk.org/c/asterisk/+/11174|https://gerrit.asterisk.org/c/asterisk/+/11174]

By: Friendly Automation (friendly-automation) 2019-03-27 06:03:57.614-0500

Change 11173 merged by Friendly Automation:
chan_sip: Ensure 'qualifygap' isn't negative

[https://gerrit.asterisk.org/c/asterisk/+/11173|https://gerrit.asterisk.org/c/asterisk/+/11173]