[Serusers] Error while loading TM module. Please help!!
Meidiana Ten
gotcha_em at yahoo.com
Mon Dec 11 12:28:09 CET 2006
Hi there,
I have problem in loading module TM for voicemail setup here.
I use SER 0.9.7 as server and the latest SEMS for voicemail usage.
I tried to add my ser.cfg with script that can handle the voicemail but I found errors when run SER.
Below is my ser.cfg: (Please take a look at line 54 and 56)
debug=9
fork=yes
log_stderror=yes
listen=202.95.149.2 # put your server IP address here
port=5060
children=4
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
fifo_mode=0666
unix_sock="/tmp/ser_sock"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/avp.so"
loadmodule "/usr/local/lib/ser/modules/avpops.so"
loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/permissions.so"
loadmodule "/usr/local/lib/ser/modules/msilo.so"
modparam("auth_db|permissions|uri_db|usrloc","db_url", "mysql://ser:heslo@localhost/ser")
modparam("auth_db|uri_db|usrloc", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "rtpproxy_sock", "/var/run/rtpproxy.sock")
modparam("usrloc", "db_mode", 2)
modparam("registrar", "nat_flag", 6)
modparam("rr", "enable_full_lr", 1)
modparam("tm", "fr_inv_timer", 27)
modparam("tm", "fr_inv_timer_avp", "inv_timeout") modparam("tm", "fr_timer", 10 )
modparam("tm", "wt_timer", 10 )
line 54: modparam("tm", "pass_provisional_replies", 1)
# configure tm to append this when tw_appent voicemail_headers is used
line 56: modparam("tm", "tw_append","voicemail_headers:P-Email-Address=avp[$email]")
# appends for dtmf per INFO
modparam( "tm", "tw_append","info_append:hdr[Content-Length];hdr[Content-Type];msg[body]")
modparam("permissions", "db_mode", 1)
modparam("permissions", "trusted_table", "trusted")
modparam("msilo", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("msilo", "db_table", "silo")
modparam("msilo","registrar","sip:registrar at pcr.ac.id")
modparam("msilo","expire_time",259200)
modparam("msilo","check_time",30)
modparam("msilo","clean_period",5)
# configure avpops db connection
modparam( "avpops", "avp_url", "mysql://ser:heslo@localhost/ser" )
modparam( "avpops", "avp_table", "subscriber" )
modparam( "avpops", "uuid_column", "id" )
# configure aliases, the number doesn't matter as long as there are no collisions)
modparam( "avpops", "avp_aliases", "email=i:67" )
# scheme to access the database
modparam( "avpops", "db_scheme",
"email_scheme:table=subscriber;value_col=email_address;value_type=string")
#modparam( "avpops", "db_scheme",
# "language_scheme:table=subscriber;value_col=language;value_type=string")
-----
-----
--------------------------------------------------------------------------------------------------------------------
If I uncomment line 54 and 56, below is the output when I run SER:
0(4425) set_mod_param_regex: parameter <pass_provisional_replies> not found in module <tm>
0(4425) parse error (54,19-20): Can't set module parameter
0(4425) set_mod_param_regex: tm matches module tm
0(4425) set_mod_param_regex: found <tw_append> in module tm [/usr/local/lib/ser/modules/tm.so]
0(4425) ERROR:tm:parse_tw_append: bad alias spec <$email>
0(4425) parse error (56,19-20): Can't set module parameter
0(4425) set_mod_param_regex: tm matches module tm
-----------------------------------------------------------------------------------------------------------------------
If I comment line 54 and 56, below is the output:
0(0) ERROR:tm:fixup_t_write: unknown append name <voicemail_headers>
0(0) ERROR: fix_expr : fix_actions error
ERROR: error -6 while trying to fix configuration
0(0) MSILO: destroy module ...
0(0) DEBUG: tm_shutdown : start
0(0) DEBUG: unlink_timer_lists : emptying DELETE list
0(0) DEBUG: tm_shutdown : emptying hash table
0(0) DEBUG: tm_shutdown : releasing timers
0(0) DEBUG: tm_shutdown : removing semaphores
0(0) DEBUG: tm_shutdown : destroying tmcb lists
0(0) DEBUG: tm_shutdown : done
0(5050) shm_mem_destroy
0(5050) destroying the shared memory lock
-----------------------------------------------------------------------------------------------------------
Please tell me what's wrong. And please tell me whether if my configuration on ser.cfg is right or wrong because I doubt it.
Thanx before...
Regards,
Meidiana
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061211/3f883877/attachment.htm>
More information about the sr-users
mailing list