Hi,

I followed instruction from http://www.jeremy-mcnamara.com/2007/03/28/how-to-configure-openser-sip-registar-sip-proxy-and-far-end-nat-traversal-for-media/ to setup Openser.

#modparam("nathelper", "rtpproxy_disable", 1)
#modparam("registrar", "nat_flag", 6)
#modparam("registrar", "use_domain", 0) 

The above three lines will cause the server to give error:
May 20 23:29:51 [2784] CRITICAL:core:yyerror: parse error in config file, line 93, column 19-20: Can't set module parameter

I saw from the document that those are valid arguments, and I don't understand why Openser complain about those parameters.

Then, I comment out those three lines, and get another errors:

May 20 23:48:25 [3218] CRITICAL:mediaproxy:mod_init: bad config - nat ping enabled, but no nat bflag set in the usrloc module
May 20 23:48:25 [3218] ERROR:core:init_mod: failed to initialize module mediaproxy
May 20 23:48:25 [3218] ERROR:core:main: error while initializing modules

I am very new to openser.  Any help or suggestion will be greatly appreciated.

Here is my openser.cfg


####### Modules Section ########

#set module path
mpath="/usr/local/lib/openser/modules/"

loadmodule "/usr/local/lib/openser/modules/mysql.so"
loadmodule "/usr/local/lib/openser/modules/sl.so"
loadmodule "/usr/local/lib/openser/modules/tm.so"
loadmodule "/usr/local/lib/openser/modules/rr.so"
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
loadmodule "/usr/local/lib/openser/modules/usrloc.so"
loadmodule "/usr/local/lib/openser/modules/registrar.so"
loadmodule "/usr/local/lib/openser/modules/auth.so"
loadmodule "/usr/local/lib/openser/modules/auth_db.so"
loadmodule "/usr/local/lib/openser/modules/uri.so"
loadmodule "/usr/local/lib/openser/modules/uri_db.so"
loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/openser/modules/nathelper.so"
loadmodule "/usr/local/lib/openser/modules/textops.so"
loadmodule "/usr/local/lib/openser/modules/domain.so"
loadmodule "/usr/local/lib/openser/modules/xlog.so"
loadmodule "/usr/local/lib/openser/modules/uac.so"
loadmodule "/usr/local/lib/openser/modules/speeddial.so"
loadmodule "/usr/local/lib/openser/modules/avpops.so"


# ----------------- setting module-specific parameters ---------------


#modparam("usrloc|auth_db|domain|speeddial|acc", "db_url", "mysql://localhost:openserrw@localhost/openser")
modparam("auth_db", "db_url","mysql://openser:openserrw@localhost/openser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "use_domain", 0)
modparam("domain", "db_mode", 1)
#modparam("nathelper", "rtpproxy_disable", 1)
modparam("nathelper", "natping_interval", 60)
modparam("mediaproxy","natping_interval", 30)
modparam("mediaproxy","mediaproxy_socket", "/var/run/mediaproxy.sock")
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", 0)

modparam("registrar", "default_expires", 60)
modparam("registrar", "min_expires", 30)
#modparam("registrar", "nat_flag", 6)
#modparam("registrar", "use_domain", 0)
modparam("rr", "enable_full_lr", 1)
#modparam("auth", "rpid_suffix", ";party=calling;id-type=subscriber;screen=yes")
#modparam("auth", "rpid_avp", "s:rpid")