[Home]

Summary:ASTERISK-21108: If chan_motif fails to load, Asterisk still thinks it's loaded
Reporter:Rusty Newton (rnewton)Labels:
Date Opened:2013-02-14 18:51:21.000-0600Date Closed:2013-02-19 11:18:19.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_motif
Versions:SVN Frequency of
Occurrence
Constant
Related
Issues:
Environment:x86_64 , SVN-branch-11-r381467Attachments:( 0) asterisk-21108_add_status-v2.diff
Description:During Asterisk's load we see that chan_motif.so is not loaded... (due to leaving sample stuff in the config)

{noformat}
[Feb 14 18:26:30] DEBUG[17905] config.c: Parsing /etc/asterisk/motif.conf
[Feb 14 18:26:30] VERBOSE[17905] config.c:   == Parsing '/etc/asterisk/motif.conf': Found
[Feb 14 18:26:30] DEBUG[17905] config.c: extract int from [30] in [-2147483648, 2147483647] gives [30](0)
[Feb 14 18:26:30] DEBUG[17905] config.c: extract int from [30] in [-2147483648, 2147483647] gives [30](0)
[Feb 14 18:26:30] DEBUG[17905] config.c: extract int from [10] in [-2147483648, 2147483647] gives [10](0)
[Feb 14 18:26:30] DEBUG[17905] config.c: extract int from [10] in [-2147483648, 2147483647] gives [10](0)
[Feb 14 18:26:30] ERROR[17905] chan_motif.c: Connection 'local-jabber-account' configured on endpoint 'jingle-endpoint' could not be found
[Feb 14 18:26:30] ERROR[17905] config_options.c: Error parsing connection=local-jabber-account at line 81 of
[Feb 14 18:26:30] ERROR[17905] config_options.c: In motif.conf: Processing options for jingle-endpoint failed
[Feb 14 18:26:30] ERROR[17905] chan_motif.c: Unable to read config file motif.conf. Not loading module.
{noformat}

However after Asterisk is up and running:

{noformat}
ubuntu*CLI> module show like chan_motif.so
Module                         Description                              Use Count
chan_motif.so                  Motif Jingle Channel Driver              0        
1 modules loaded
{noformat}

I'm not sure what issues it could cause when Asterisk thinks a module is loaded that isn't loaded, however it at least caused me pain trying to figure out why chan_motif (which I thought was loaded) was ignoring inbound XMPP traffic. :D
Comments:By: Michael L. Young (elguero) 2013-02-14 20:25:26.065-0600

Rusty, I think that is actually correct.  The message is a bit mis-leading.  The module is loaded, it is just not in a running state.

This prompted to think that we should be displaying the status of the module.  So, I just wrote a patch to do this.  When testing the patch, I actually found something not running that I thought was running. :)

Let me know what you think of the patch.

By: Matt Jordan (mjordan) 2013-02-15 07:24:53.739-0600

I like it. :-)

By: Rusty Newton (rnewton) 2013-02-15 10:23:43.689-0600

Thanks Michael!

By: Michael L. Young (elguero) 2013-02-19 11:05:59.312-0600

Adding final patch.