[asterisk-bugs] [JIRA] (ASTERISK-18923) res_fax_spandsp usage counter is wrong

Johann Steinwendtner (JIRA) noreply at issues.asterisk.org
Tue Aug 20 07:33:04 CDT 2013


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

Johann Steinwendtner commented on ASTERISK-18923:
-------------------------------------------------

I 've the same problem on Asterisk 11.5.0. To me it seems that the module counter gets incremented when a new fax session is reserved and also when it is requested. (so IMHO twice)
see function: fax_session_new and fax_session_reserve. 
My current workaround is in fax_session_new:
if (!reserved)
	ast_module_ref(faxmod->tech->module);
But that should be approved.

                
> res_fax_spandsp usage counter is wrong
> --------------------------------------
>
>                 Key: ASTERISK-18923
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-18923
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_fax_spandsp
>    Affects Versions: 1.8.7.1
>            Reporter: Grigoriy Puzankin
>            Severity: Minor
>         Attachments: Screen Shot 2012-12-17 at 2.17.33 PM copy.png
>
>
> When I send fax using SendFAX (from res_fax_spandsp) it increases module usage counter by 2. When fax completes it decreases module usage by 1. So after each iteration counter grows by 1.
> {noformat}
> Module                         Description                              Use Count
> res_fax.so                     Generic FAX Applications                 1         
> res_fax_spandsp.so             Spandsp G.711 and T.38 FAX Technologies  11        
> 2 modules loaded
> Current FAX Sessions:
> Channel              Tech       FAXID      Type  Operation  State           File(s)                       
> 0 FAX sessions
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list