[SR-Users] Error searching $keepalive.socket pvar in NAT Traversal module
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jan 28 17:07:58 CET 2013
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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130128/7f25f35f/attachment.htm>
More information about the sr-users
mailing list