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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 23 11:16:10 CDT 2010


The following issue has been UPDATED. 
====================================================================== 
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:                     ready for review
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
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:              2010-03-23 11:16 CDT
====================================================================== 
Summary:                    [patch] 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               
====================================================================== 
2010-03-23 11:16 russell        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list