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?
(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??
Thanks.
Kind regards / Mit freundlichen Grüßen
Min Wang
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel
thanks a lot.
On 03/24/2011 09:31 AM, Daniel-Constantin Mierla wrote:
(1) It seems the following format for rtpproxy_sock not working in Kamailio 3.1
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
It is my fault, I mistype the localhost to locahost.
(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.
Here is what I mean e.g.: the following configure
#!KAMAILIO log_stderror=no log_facility=LOG_LOCAL1 (point to /var/log/kamailio.log) .... t_set_fr($avp(i:2); (***) ....
obviousely the (***) miss ), so when I did /etc/init.d/kamailio start, the error was printed out in the console instead of the log_facility file?
#/var/log # /etc/init.d/kamailio start Not starting kamailio: invalid configuration file! -e 0(5182) INFO: pv [pv_shv.c:61]: locks array size 16 0(5182) WARNING: <core> [cfg.y:3389]: warning in config file /etc/kamailio/kamailio.cfg, line 976, column 7: constant value in if(...) 0(5182) WARNING: <core> [cfg.y:3389]: warning in config file /etc/kamailio/kamailio.cfg, line 4749, column 6: constant value in if(...) 0(5182) : <core> [cfg.y:3412]: parse error in config file /etc/kamailio/kamailio.cfg, line 5515, column 20: syntax error 0(5182) : <core> [cfg.y:3412]: parse error in config file /etc/kamailio/kamailio.cfg, line 5515, column 20: '('')' expected (function call) ERROR: bad config file (2 errors)
Kind regards / Mit freundlichen Grüßen
Min Wang
Cheers, Daniel
Thanks.
Kind regards / Mit freundlichen Grüßen
Min Wang
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users