[asterisk-bugs] [JIRA] (ASTERISK-27981) asterisk memory leak

pasandev (JIRA) noreply at issues.asterisk.org
Mon Jul 23 00:31:54 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

pasandev updated ASTERISK-27981:
--------------------------------

    Description: 
possible memory leak on res_fax_spandsp.c according to "memory show summary" command, mem allocated to res_fax_spandsp.c keeps growing.

I have a simple gateway setup to terminate calls from/to supplier using PJSIP Channel driver.

Customer <> Asterisk <> Supplier


/etc/asterisk/pjsip.conf

[Customer_End_Trunk]
type=endpoint
transport=transport-udp
context=outbound
tone_zone=au
dtmf_mode=auto
disallow=all
allow=alaw
allow=ulaw
allow=g729
t38_udptl=yes
t38_udptl_ec=fec
t38_udptl_maxdatagram=400
set_var=FAXOPT(gateway)=yes,20
send_rpid=no
trust_id_inbound=yes
rtp_timeout=60
rtp_timeout_hold=120
timers=no
aors=Customer_End_Trunk
force_rport=yes    ;It's a good idea to read the configuration help for each
direct_media=no    ;of these options.
identify_by=ip

[Customer_End_Trunk]
type=aor
contact=sip:x.x.x.x:5060
qualify_frequency=5

[Customer_End_Trunk]
type=identify
endpoint=sip1
match=x.x.x.x

[Supplier_End_Trunk]
type=endpoint
transport=transport-udp
context=inbound
tone_zone=au
disallow=all
allow=alaw
allow=ulaw
allow=g729
aors=Supplier_End_Trunk
send_pai=yes
dtmf_mode=auto
force_rport=yes    ;It's a good idea to read the configuration help for each
direct_media=no    ;of these options.
rtp_timeout=60
rtp_timeout_hold=120
timers=no
identify_by=ip
trust_id_outbound=yes ; This will set Privacy and PAI header appropriately

[Supplier_End_Trunk]
type=aor
contact=sip:y.y.y.y:5060
qualify_frequency=5


[Supplier_End_Trunk]
type=identify
endpoint=aapt
match=y.y.y.y




  was:
possible memory leak on res_fax_spandsp.c according to "memory show summary" command, mem allocated to res_fax_spandsp.c keeps growing.

I have a simple gateway setup to terminate calls from/to supplier.

Customer <> Asterisk <> Supplier



> asterisk memory leak
> --------------------
>
>                 Key: ASTERISK-27981
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27981
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_fax_spandsp
>    Affects Versions: 13.21.1
>         Environment: OS: Debian Stretch 9.4
> CPU Details:
> Architecture:          x86_64
> CPU op-mode(s):        32-bit, 64-bit
> Byte Order:            Little Endian
> CPU(s):                6
> On-line CPU(s) list:   0-5
> Thread(s) per core:    1
> Core(s) per socket:    6
> Socket(s):             1
> NUMA node(s):          1
> Vendor ID:             GenuineIntel
> CPU family:            6
> Model:                 44
> Model name:            Westmere E56xx/L56xx/X56xx (Nehalem-C)
> Stepping:              1
> CPU MHz:               2933.612
> BogoMIPS:              5867.22
> Hypervisor vendor:     KVM
> Virtualization type:   full
> L1d cache:             32K
> L1i cache:             32K
> L2 cache:              4096K
> L3 cache:              16384K
> NUMA node0 CPU(s):     0-5
> Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm kaiser tsc_adjust arat
>            Reporter: pasandev
>              Labels: fax, pjsip
>         Attachments: mem_alloc, mem_sum
>
>
> possible memory leak on res_fax_spandsp.c according to "memory show summary" command, mem allocated to res_fax_spandsp.c keeps growing.
> I have a simple gateway setup to terminate calls from/to supplier using PJSIP Channel driver.
> Customer <> Asterisk <> Supplier
> /etc/asterisk/pjsip.conf
> [Customer_End_Trunk]
> type=endpoint
> transport=transport-udp
> context=outbound
> tone_zone=au
> dtmf_mode=auto
> disallow=all
> allow=alaw
> allow=ulaw
> allow=g729
> t38_udptl=yes
> t38_udptl_ec=fec
> t38_udptl_maxdatagram=400
> set_var=FAXOPT(gateway)=yes,20
> send_rpid=no
> trust_id_inbound=yes
> rtp_timeout=60
> rtp_timeout_hold=120
> timers=no
> aors=Customer_End_Trunk
> force_rport=yes    ;It's a good idea to read the configuration help for each
> direct_media=no    ;of these options.
> identify_by=ip
> [Customer_End_Trunk]
> type=aor
> contact=sip:x.x.x.x:5060
> qualify_frequency=5
> [Customer_End_Trunk]
> type=identify
> endpoint=sip1
> match=x.x.x.x
> [Supplier_End_Trunk]
> type=endpoint
> transport=transport-udp
> context=inbound
> tone_zone=au
> disallow=all
> allow=alaw
> allow=ulaw
> allow=g729
> aors=Supplier_End_Trunk
> send_pai=yes
> dtmf_mode=auto
> force_rport=yes    ;It's a good idea to read the configuration help for each
> direct_media=no    ;of these options.
> rtp_timeout=60
> rtp_timeout_hold=120
> timers=no
> identify_by=ip
> trust_id_outbound=yes ; This will set Privacy and PAI header appropriately
> [Supplier_End_Trunk]
> type=aor
> contact=sip:y.y.y.y:5060
> qualify_frequency=5
> [Supplier_End_Trunk]
> type=identify
> endpoint=aapt
> match=y.y.y.y



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



More information about the asterisk-bugs mailing list