Hello,
I started to use Kamailio few months ago. Maybe this is a stupid issue but I can´t start Kamailio with NAT TRAVERSAL module and $keepalive.socket pseudo-variable. My script configuration is the default template adding this lines (extracted from nat traversal doc):
... loadmodule "nat_traversal.so" ...
... $fs = $keepalive.socket($du); ...
I have this error:
-e 0(17455) ERROR: <core> [pvapi.c:501]: error searching pvar "keepalive" 0(17455) ERROR: <core> [pvapi.c:705]: wrong char [e/101] in [$keepalive] at [9 (0)] 0(17455) : <core> [cfg.y:3330]: parse error in config file /etc/kamailio/kamailio.cfg, line 410, column 8-17: unknown script pseudo variable $keepalive ERROR: bad config file (1 errors)
I tried in this environments:
Ubuntu 10.04.4 LTS x86_64 Kamailio 3.3.3+git20130128+lucid1 Ubuntu 10.04.4 LTS i686 Kamailio 3.0.4+lucid1 Ubuntu 12.04.1 LTS x86_64 Kamailio 3.3.2+precise1
All packages instaled from deb repositories (http://deb.kamailio.org/)
I think there are problem parsing "$keepalive.socket" pseudovariable, because Kamailio doesn´t scape this character "." and it doesn´t recognise the pseudovar.
Does anyone have this problem?
Regards
Hello,
what version of kamailio are you using? Do you have '#!KAMAILIO' as first line?
You can try the alternative format for the pv, putting everything in another group of parenthesis after $, like:
$fs = $(keepalive.socket($du));
Cheers, Daniel
On 1/28/13 3:31 PM, vito wrote:
Hello,
I started to use Kamailio few months ago. Maybe this is a stupid issue but I can´t start Kamailio with NAT TRAVERSAL module and $keepalive.socket pseudo-variable. My script configuration is the default template adding this lines (extracted from nat traversal doc):
... loadmodule "nat_traversal.so" ...
... $fs = $keepalive.socket($du); ...
I have this error:
-e 0(17455) ERROR: <core> [pvapi.c:501]: error searching pvar "keepalive" 0(17455) ERROR: <core> [pvapi.c:705]: wrong char [e/101] in [$keepalive] at [9 (0)] 0(17455) : <core> [cfg.y:3330]: parse error in config file /etc/kamailio/kamailio.cfg, line 410, column 8-17: unknown script pseudo variable $keepalive ERROR: bad config file (1 errors)
I tried in this environments:
Ubuntu 10.04.4 LTS x86_64 Kamailio 3.3.3+git20130128+lucid1 Ubuntu 10.04.4 LTS i686 Kamailio 3.0.4+lucid1 Ubuntu 12.04.1 LTS x86_64 Kamailio 3.3.2+precise1 All packages instaled from deb repositories (http://deb.kamailio.org/)
I think there are problem parsing "$keepalive.socket" pseudovariable, because Kamailio doesn´t scape this character "." and it doesn´t recognise the pseudovar.
Does anyone have this problem?
Regards
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