[asterisk-bugs] [JIRA] (ASTERISK-25299) RTP port leaks with incoming OOH323 calls

Alexander Anikin (JIRA) noreply at issues.asterisk.org
Fri Aug 14 13:28:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227250#comment-227250 ] 

Alexander Anikin commented on ASTERISK-25299:
---------------------------------------------

from res/res_rtp_asterisk.c:

static int ast_rtp_destroy(struct ast_rtp_instance *instance)
{
...
        /* Close our own socket so we no longer get packets */
        if (rtp->s > -1) {
                close(rtp->s);
        }


same for rtcp socket.

Thus socket must be freed from instance destructor. 
But ast_rtp_instance_destroy just act as decrement ref links to rtp instance and it's possible that there is not last reference to the rtp object.
And odd reference can be caused by OOH323 channel driver. I will research about references to rtp instance from chan_ooh323.



> RTP port leaks with incoming OOH323 calls
> -----------------------------------------
>
>                 Key: ASTERISK-25299
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25299
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/chan_ooh323
>    Affects Versions: 11.19.0
>         Environment: Debian 8.1  x86_64  
>            Reporter: Alexandr Dranchuk
>            Assignee: Alexander Anikin
>         Attachments: full.log, h323_log.txt
>
>
> When we get incoming call thru OOH323 channel with "early media" enabled (MediaWaitForConnect=no;  faststart=yes; tunneling=yes)
> and during ringing call is canceled by caller, the RTP ports are not closed causing RTP port leaking. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list