[Home]

Summary:ASTERISK-20643: SIP ICE support - remove hardcoded limitation on SDP size, make ICE support disabled by default in SIP, maybe provide a better warning message
Reporter:Roy (coopvr)Labels:
Date Opened:2012-11-01 20:34:18Date Closed:2012-11-11 11:16:17.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:11.0.0 Frequency of
Occurrence
Frequent
Related
Issues:
is related toASTERISK-20088 Duplicate ICE candidates and SDP payload truncation
Environment:Red Hat Linux 5Attachments:
Description:I'm using google xmpp and motif and when I turn on icesupport=yes in rtp.conf I get these "failed to extend" errors evertime a SIP call connects followed by a SIP SDP may be truncated due to undersized buffer!!

If I turn off icesupport and not use google.  Errors go away.
It doesn't seem to effect the call but I'm afraid there might be a memory leak or something.

failed to extend from 1024 to 1298
failed to extend from 1024 to 1342
failed to extend from 1024 to 1311
failed to extend from 1024 to 1306
failed to extend from 1024 to 1298
failed to extend from 1024 to 1344
failed to extend from 1024 to 1313
failed to extend from 1024 to 1308
failed to extend from 1024 to 1301
failed to extend from 1024 to 1298
failed to extend from 1024 to 1344
failed to extend from 1024 to 1313
failed to extend from 1024 to 1308
failed to extend from 1024 to 1301
failed to extend from 1024 to 1298
failed to extend from 1024 to 1344
failed to extend from 1024 to 1313
failed to extend from 1024 to 1308
failed to extend from 1024 to 1301
failed to extend from 1024 to 1298
[2012-11-01 18:28:01] WARNING[20396][C-00000012]: chan_sip.c:12883 add_sdp: SIP SDP may be truncated due to undersized buffer!!
Comments:By: Joshua C. Colp (jcolp) 2012-11-02 06:16:24.391-0500

There's no memory leak here but what is happening is that there are enough possible ICE candidates to create a very large SDP, that can't even be sent using UDP. Since you aren't using ICE for SIP you can disable it in your sip.conf in the general section using "icesupport=no". This will disable ICE support just for SIP but allow it to continue to work for Motif.

Rusty: I'm leaving this issue open on purpose so we can remove this hardcoded limitation on SDP size, make ICE support disabled by default in *SIP*, and also maybe provide a better warning message.

By: Roy (coopvr) 2012-11-02 12:28:11.049-0500

I just added icesupport=no in sip.conf and the error went away as you said!  Thanks for the quick reply!

By: Joshua C. Colp (jcolp) 2012-11-11 11:16:17.584-0600

Put into 11 as of revision 376130 and trunk as of revision 376131.

By: Friendly Automation (friendly-automation) 2017-12-04 11:42:14.497-0600

Change 7434 merged by Jenkins2:
res_rtp_asterisk: Correct default in sample configuration file.

[https://gerrit.asterisk.org/7434|https://gerrit.asterisk.org/7434]

By: Friendly Automation (friendly-automation) 2017-12-04 11:43:25.382-0600

Change 7433 merged by Joshua Colp:
res_rtp_asterisk: Correct default in sample configuration file.

[https://gerrit.asterisk.org/7433|https://gerrit.asterisk.org/7433]

By: Friendly Automation (friendly-automation) 2017-12-04 11:48:12.078-0600

Change 7432 merged by Jenkins2:
res_rtp_asterisk: Correct default in sample configuration file.

[https://gerrit.asterisk.org/7432|https://gerrit.asterisk.org/7432]