[OpenSIPS-Users] Can't initialize nathelper

Kennard_White at logitech.com Kennard_White at logitech.com
Wed Aug 11 09:00:34 CEST 2010


Hi Leon,

Not sure if this is your problem, but a change was recently made to
nathelper to require the dlg module.

I've submitted a patch to fix this:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3042794&group_id=232389

Regards,
Kennard



From:	"Leon Li" <Leon.Li at aarnet.edu.au>
To:	"OpenSIPS users mailling list" <users at lists.opensips.org>
Date:	08/10/2010 11:34 PM
Subject:	[OpenSIPS-Users] Can't initialize nathelper
Sent by:	users-bounces at lists.opensips.org



Hi,

I changed my configure for NAT (using rtp proxy) and can’t start OpenSIPs
now.

Aug 11 06:09:54 [24042] DBG:core:init_mod: initializing module nathelper
Aug 11 06:09:54 [24042] DBG:core:find_cmd_export_t: found <ul_bind_usrloc>
(1) in module usrloc [/usr/lib64/opensips/modules/]
Aug 11 06:09:54 [24042] DBG:core:find_mod_export: found <db_bind_api> in
module db_mysql [/usr/lib64/opensips/modules/]
Aug 11 06:09:54 [24042] DBG:core:db_bind_mod: using db bind api for
db_mysql
Aug 11 06:09:54 [24042] DBG:core:db_do_init: connection 0x780280 not found
in pool
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_connect: opening connection:
mysql://xxxx:xxxx@localhost/opensips
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_connect: connection type is
Localhost via UNIX socket
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_connect: protocol version is
10
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_connect: server version is
5.0.77
Aug 11 06:09:54 [24042] DBG:core:db_do_init: connection 0x780280 inserted
in pool as 0x7801a0
Aug 11 06:09:54 [24042] DBG:core:db_new_result: allocate 48 bytes for
result set at 0x7802c8
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: 1 columns
returned from the query
Aug 11 06:09:54 [24042] DBG:core:db_allocate_columns: allocate 28 bytes for
result columns at 0x780310
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: RES_NAMES
(0x780318)[0]=[table_version]
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: use DB_INT
result type
Aug 11 06:09:54 [24042] DBG:core:db_allocate_rows: allocate 48 bytes for
result rows and values at 0x780348
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_str2val: converting INT [0]
Aug 11 06:09:54 [24042] DBG:core:db_free_columns: freeing result columns at
0x780310
Aug 11 06:09:54 [24042] DBG:core:db_free_rows: freeing 1 rows
Aug 11 06:09:54 [24042] DBG:core:db_free_row: freeing row values at
0x780358
Aug 11 06:09:54 [24042] DBG:core:db_free_rows: freeing rows at 0x780348
Aug 11 06:09:54 [24042] DBG:core:db_free_result: freeing result set at
0x7802c8
Aug 11 06:09:54 [24042] DBG:core:db_new_result: allocate 48 bytes for
result set at 0x7802c8
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: 2 columns
returned from the query
Aug 11 06:09:54 [24042] DBG:core:db_allocate_columns: allocate 56 bytes for
result columns at 0x780390
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: RES_NAMES
(0x7803a0)[0]=[rtpproxy_sock]
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: use DB_BLOB
result type
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: RES_NAMES
(0x7803b0)[1]=[set_id]
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_get_columns: use DB_INT
result type
Aug 11 06:09:54 [24042] DBG:db_mysql:db_mysql_convert_rows: no rows
returned from the query
Aug 11 06:09:54 [24042] DBG:nathelper:_add_proxies_from_database: No
proxies were found
Aug 11 06:09:54 [24042] DBG:core:db_free_columns: freeing result columns at
0x780390
Aug 11 06:09:54 [24042] DBG:core:db_free_rows: freeing 0 rows
Aug 11 06:09:54 [24042] DBG:core:db_free_result: freeing result set at
0x7802c8
Aug 11 06:09:54 [24042] ERROR:core:init_mod: failed to initialize module
nathelper
Aug 11 06:09:54 [24042] ERROR:core:main: error while initializing modules

And configure is.
loadmodule "db_mysql.so"
loadmodule "signaling.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "uri.so"
loadmodule "xlog.so"
loadmodule "acc.so"
loadmodule "auth.so"
loadmodule "auth_db.so"
loadmodule "alias_db.so"
loadmodule "domain.so"
loadmodule "nathelper.so"

#------ nat parameters ----
modparam("registrar","received_avp", "$avp(i:42)")
modparam("usrloc","nat_bflag", 6)
modparam("nathelper","received_avp", "$avp(i:42)")
modparam("nathelper", "natping_interval", 5)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "sipping_bflag", 7)
modparam("nathelper", "sipping_from", "sip:pinger at domain ")
modparam("nathelper", "db_url",
                "mysql://username:password@localhost/opensips")
modparam("nathelper", "rtpproxy_sock", "/var/run/rtpproxy.sock")

Could anyone help?

Cheers
Leon
 _______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100811/08136f9c/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20100811/08136f9c/attachment-0001.gif 


More information about the Users mailing list