Hello,
On 3/16/11 7:47 PM, Min Wang wrote:
hi
I have two questions regarding kamailio 3.1
(1) It seems the following format for rtpproxy_sock not working in
Kamailio 3.1
modparam("rtpproxy", "rtpproxy_sock",
"udp:localhost:12221 udp:localhost:12222")
the error is:
0(11881) ERROR: rtpproxy [rtpproxy.c:957]: Name or service not known
//////////////////////////
0(11881) DEBUG: <core> [sr_module.c:871]: DEBUG: init_mod: rtpproxy
0(11881) DEBUG: rtpproxy [rtpproxy.c:531]: url is udp:locahost:22222,
len is 18
0(11881) DEBUG: rtpproxy [rtpproxy.c:531]: url is
udp:localhost:22222, len is 19
0(11881) DEBUG: <core> [sr_module.c:871]: DEBUG: init_mod: nathelper
....
0(11881) DEBUG: <core> [sr_module.c:828]: DEBUG: init_mod_child
(-127): rtpproxy
0(11881) ERROR: rtpproxy [rtpproxy.c:957]: Name or service not known
0(11881) ERROR: <core> [sr_module.c:832]: init_mod_child(): Error
while initializing module rtpproxy
(/usr/lib/kamailio/modules_k/rtpproxy.so)
But if you do the following it is ok
modparam("rtpproxy",
"rtpproxy_sock","udp:localhost:12221")
modparam("rtpproxy",
"rtpproxy_sock","udp:localhost:12222")
any clue or format changed for rtpproxy_sock?
What was the version you started with in order to upgrade?
I guess the format changed when rtpproxy socket got support for grouping
several rtpproxy instances in order to do load balancing among them. So,
right now the parameter value can start with the group id.
See the readme:
http://kamailio.org/docs/modules/stable/modules_k/rtpproxy.html#id3012059
(2) BTW, how do I log stderror into syslog file?
-- log_stderror=yes
the error will print out in the console,
#configure the /etc/syslog.conf for this feature
log_facility=LOG_LOCAL1
this log_facility does not log the log_stderror??
Use:
log_stderror=no
that will instruct kamailio to write log messages to syslog.
Cheers,
Daniel
Thanks.
Kind regards / Mit freundlichen Grüßen
Min Wang
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://www.asipto.com