[Freeswitch-users] mod_curl + mod_nibblebill
Ahmed Munir
ahmedmunir007 at gmail.com
Tue Oct 20 05:33:49 PDT 2009
Hi,
Consider below mob_nibblebill configuration,
<configuration name="nibblebill.conf" description="Nibble Billing">
<settings>
<param name="db_username" value="root"/>
<param name="db_password" value="password"/>
<param name="db_dsn" value="MySQL-freeswitch"/>
<param name="db_table" value="accounts"/>
<param name="db_column_cash" value="cash"/>
<param name="db_column_account" value="id"/>
<param name="global_heartbeat" value="60"/>
<param name="lowbal_amt" value="5"/>
<param name="lowbal_action" value="play ding"/>
<param name="nobal_amt" value="0"/>
<param name="nobal_action" value="hangup"/>
<param name="percall_max_amt" value="100"/>
<param name="percall_action" value="hangup"/>
</settings>
</configuration>
When i put this configuration in
/usr/local/freeswitch/conf/autoload_configs, everything works perfect as
expected.
But when i call this configuration using mod_xml_curl, freeswitch does not
loads mod_nibblebill configuration from it. I even debuged mod_xml_curl
using console command,
xml_curl debug_on
and reload mod_nibblebill, I get exact same configuration from xml_curl but
mod_nibblebill does not repect it and try to use default parameter values as
mentioned below,
2009-10-20 16:58:23.396710 [ERR] switch_odbc.c:188 STATE: IM002 CODE 0
ERROR: [unixODBC][Driver Manager]Data source name not found, and no default
driver specified
2009-10-20 16:58:23.396738 [CRIT] mod_nibblebill.c:221 Cannot connect to
ODBC driver/database bandwidth.com (user: bandwidth.com / pass dev)!
2009-10-20 16:58:23.396800 [CONSOLE] switch_loadable_module.c:889
Successfully Loaded [mod_nibblebill]
I am also loading various other configs from xml_curl without any problem,
its only mod_nibblebill that is not honoring configuration provided by
xml_curl.
Please advise if i am doing anything wrong.
--
Regards,
Ahmed Munir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091020/baa9ca5d/attachment-0002.html
More information about the FreeSWITCH-users
mailing list