[Home]

Summary:ASTERISK-01977: unload chan_iax2.so press tab... segfault. & res_config doesnt work with chan_iax2
Reporter:Brian West (bkw918)Labels:
Date Opened:2004-07-08 23:42:54Date Closed:2004-09-25 02:37:50
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:seems some cli options are registering with names close to

iax2 show provisioning
iax2 provision

this causes some sort of conflict.

****** ADDITIONAL INFORMATION ******

res_config doesn't work with chan_iax2... everything via

#include odbc:something

is ignored...
Comments:By: twisted (twisted) 2004-07-08 23:47:07

Yep.  I can confirm this... It was noticed when I attempted to load iax.conf via res_config, loaded the peers/users okay, but was rejecting any connection attempts from defined users, with the same parameters previously defined in the flatfile (just a direct import).  bkw confirmed this, and on our search for the problem, the others made themselves apparent.  Not sure what's going on here, but it definately needs to be corrected.

edited on: 07-08-04 23:38

By: Brian West (bkw918) 2004-07-09 00:02:56

asterisk*CLI> load chan_iax2.so
Loaded /usr/lib/asterisk/modules/chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
 == Manager registered action IAXpeers
 == Parsing '/etc/asterisk/iax.conf':   == Parsing '/etc/asterisk/iax.conf': Found
Jul  8 23:47:29 NOTICE[245774]: config.c:543 cfg_process: External Include 'iax' via 'odbc' config engine
 == Parsing '/etc/asterisk/res_config_odbc.conf':   == Parsing '/etc/asterisk/res_config_odbc.conf': Found
 == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
 == Using TOS bits 16
 == IAX Ready and Listening on 0.0.0.0 port 4569
 == Loaded firmware 'iaxy.bin'
 == Parsing '/etc/asterisk/iaxprov.conf':   == Parsing '/etc/asterisk/iaxprov.conf': Not found (No such file or directory)
Jul  8 23:47:29 NOTICE[245774]: iax2-provision.c:486 iax_provision_reload: No IAX provisioning configuration found, IAX provisioning disabled.
   -- Registered to '66.225.202.72', who sees us as 65.38.28.146:4569
   -- Registered to '69.73.19.178', who sees us as 65.38.28.146:4569
asterisk*CLI> unload chan_iax2.so
 == Manager unregistered action IAXpeers
 == Unregistered channel type 'IAX2'
asterisk*CLI> load chan_iax2.so
Loaded /usr/lib/asterisk/modules/chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
 == Manager registered action IAXpeers
 == Parsing '/etc/asterisk/iax.conf':   == Parsing '/etc/asterisk/iax.conf': Found
Jul  8 23:47:32 NOTICE[245774]: config.c:543 cfg_process: External Include 'iax' via 'odbc' config engine
 == Parsing '/etc/asterisk/res_config_odbc.conf':   == Parsing '/etc/asterisk/res_config_odbc.conf': Found
 == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
 == Using TOS bits 16
 == IAX Ready and Listening on 0.0.0.0 port 4569
 == Loaded firmware 'iaxy.bin'
Jul  8 23:47:32 WARNING[245774]: cli.c:734 ast_cli_register: Command 'iax2showprovisioning' already registered (or something close enough)
 == Parsing '/etc/asterisk/iaxprov.conf':   == Parsing '/etc/asterisk/iaxprov.conf': Not found (No such file or directory)
Jul  8 23:47:32 NOTICE[245774]: iax2-provision.c:486 iax_provision_reload: No IAX provisioning configuration found, IAX provisioning disabled.
   -- Registered to '66.225.202.72', who sees us as 65.38.28.146:4569
   -- Registered to '69.73.19.178', who sees us as 65.38.28.146:4569

By: Mark Spencer (markster) 2004-07-09 03:55:55

Fixed the tab + segfault bug.  I think your #include example may not follow proper syntax.  I suggest you talk to anthm on IRC before opening a separate bug for it.