[asterisk-bugs] [Asterisk 0015996]: change the order for ACF registration for SMDI

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 30 21:54:37 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15996 
====================================================================== 
Reported By:                junky
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15996
Category:                   Resources/res_smdi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 220792 
Request Review:              
====================================================================== 
Date Submitted:             2009-09-30 21:54 CDT
Last Modified:              2009-09-30 21:54 CDT
====================================================================== 
Summary:                    change the order for ACF registration for SMDI
Description: 

Right now, we're doing the registration for the ACF, then check the
validity of the SDMI.
This results in confusion for users:

Like:
before the patch:
shooter*CLI> module load res_smdi.so
Unable to load module res_smdi.so
Command 'module load res_smdi.so' failed.
  == Registered custom function 'SMDI_MSG_RETRIEVE'
  == Registered custom function 'SMDI_MSG'
  == Parsing '/etc/asterisk/smdi.conf':   == Found
  == Unregistered custom function SMDI_MSG_RETRIEVE
  == Unregistered custom function SMDI_MSG
[Sep 30 15:44:56] NOTICE[27241]: res_smdi.c:1420 load_module: No SMDI
interfaces are available to listen on, not starting SMDI listener.

Users are wondering: why do we register these 2 functions, then we are
unregister them?

This patch solves that "confusion":
shooter*CLI> module load res_smdi.so
Unable to load module res_smdi.so
Command 'module load res_smdi.so' failed.
  == Parsing '/etc/asterisk/smdi.conf':   == Found
[Sep 30 15:50:56] NOTICE[29186]: res_smdi.c:1418 load_module: No SMDI
interfaces are available to listen on, not starting SMDI listener.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-30 21:54 junky          New Issue                                    
2009-09-30 21:54 junky          Asterisk Version          => SVN             
2009-09-30 21:54 junky          Regression                => No              
2009-09-30 21:54 junky          SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2009-09-30 21:54 junky          SVN Revision (number only!) => 220792          
======================================================================




More information about the asterisk-bugs mailing list