[asterisk-bugs] [JIRA] (ASTERISK-26561) chan_unistim on 11, 13, 14, UDP (rtp) ports left unclosed indefinitely
Jason (JIRA)
noreply at issues.asterisk.org
Fri Nov 11 07:24:09 CST 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233617#comment-233617 ]
Jason commented on ASTERISK-26561:
----------------------------------
I'm sorry I missed that 11 and 13 have been dumped, so for future looking purposes, this patch does correct the ports left laying around. Restarting the channel (unistim restart) from the console though, leaves the udp ports, as they don't get a ast_rtp_instance_stop(sub->rtp);, but this may be expected. Just a mention.
I'll close this? It is pretty clear it fixed the issue as mentioned.
> chan_unistim on 11, 13, 14, UDP (rtp) ports left unclosed indefinitely
> ----------------------------------------------------------------------
>
> Key: ASTERISK-26561
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26561
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_unistim
> Affects Versions: 11.24.1, 13.12.1, 14.1.1
> Environment: Linux ARM (raspberry, banana, orange pi), Linux Intel X86.
> Debian Linux, gcc/g++ as from standard Debian repos. Standard configure options (minus xml-doc). No customisation, standard configure, make install, test. No compile error work-arounds.
> Reporter: Jason
> Assignee: Igor Goncharovsky
> Attachments: ASTERISK-26561-v1.diff
>
>
> A Nortel UNISTIM protocol sets, when finished with any audio related operation, will leave its UDP (rtp) ports hung on the server. A subsequent call/use of an inbuilt Asterisk function requiring rtp ports be opened creates two more ports for the rtp streams. Ending the call by any means leaves another two UDP ports, one always with a measurable number of bytes in the Recv Queue. All versions exhibit the exact same issue. This quickly results in udp port exhaustion, and the entire Asterisk system is without udp autio paths. This is on all of the above platforms mentioned. I'm amazed nobody has come across this. Being we use a low (100) number of udp ports to work with other systems, as opening 65534 is not an option, and avoiding the issue, this is noticed easily. The issue can be repeated easily, with a unistim set, and asterisk, and a single prompt even, or a call to any channel. From the shell, issuing "netstat -l" shows listening ports as defined in rtp.conf sitting there, stacking up (on unistim calls, not any other protocol) and never released until an asterisk kill.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list