[SR-Users] kamailio 3.1: rtpproxy_sock multiple rtpproxies not working?

Min Wang ser.basis at gmail.com
Wed Mar 16 19:47:00 CET 2011


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






More information about the sr-users mailing list