[OpenSIPS-Users] Can't initialize nathelper

Leon Li Leon.Li at aarnet.edu.au
Wed Aug 11 08:16:45 CEST 2010


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 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100811/15b8fa33/attachment.htm 


More information about the Users mailing list