[asterisk-bugs] [JIRA] (ASTERISK-28288) Resources (udptl fd) leaking for T.38 calls
Paulo Vicentini (JIRA)
noreply at issues.asterisk.org
Wed Feb 13 07:31:47 CST 2019
Paulo Vicentini created ASTERISK-28288:
------------------------------------------
Summary: Resources (udptl fd) leaking for T.38 calls
Key: ASTERISK-28288
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28288
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/chan_pjsip
Affects Versions: 13.25.0
Environment: Asterisk 13
Reporter: Paulo Vicentini
Severity: Critical
Resources are leaking (udptl file descriptors) due to unbalanced references for datastore "t38_session_media"
A {code}ao2_ref(datastore, -1) {code} is missing within the create_datastore_session_media function (res/res_pjsip_t38.c)
With this patch udptl will no longer leak:
Before a T.38 call
asterisk 16999 root 10u IPv4 206981 0t0 UDP *:45182
asterisk 16999 root 11u IPv6 206982 0t0 UDP *:50922
asterisk 16999 root 12u IPv6 206087 0t0 UDP *:sip
asterisk 16999 root 13u IPv4 206987 0t0 UDP *:sip
During T.38 call
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 16999 root 10u IPv4 206981 0t0 UDP *:45182
asterisk 16999 root 11u IPv6 206982 0t0 UDP *:50922
asterisk 16999 root 12u IPv6 206087 0t0 UDP *:sip
asterisk 16999 root 13u IPv4 206987 0t0 UDP *:sip
asterisk 16999 root 22u IPv6 218819 0t0 UDP *:12622
asterisk 16999 root 23u IPv6 222708 0t0 UDP *:12623
asterisk 16999 root 28u IPv6 223401 0t0 UDP *:11508
asterisk 16999 root 29u IPv6 223406 0t0 UDP *:11509
asterisk 16999 root 32u IPv6 224527 0t0 UDP *:22791
asterisk 16999 root 33u IPv6 224528 0t0 UDP *:21611
T.38 call finished
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 16999 root 10u IPv4 206981 0t0 UDP *:45182
asterisk 16999 root 11u IPv6 206982 0t0 UDP *:50922
asterisk 16999 root 12u IPv6 206087 0t0 UDP *:sip
asterisk 16999 root 13u IPv4 206987 0t0 UDP *:sip
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list