[SR-Users] kamailio 3.1: rtpproxy_sock multiple rtpproxies not working?
Min Wang
ser.basis at gmail.com
Thu Mar 24 14:58:36 CET 2011
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 at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
More information about the sr-users
mailing list