<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
what version of kamailio are you using? Do you have '#!KAMAILIO' as
first line?<br>
<br>
You can try the alternative format for the pv, putting everything in
another group of parenthesis after $, like:<br>
<br>
$fs = $(keepalive.socket($du));<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 1/28/13 3:31 PM, vito wrote:<br>
</div>
<blockquote
cite="mid:CAHXnSUvK2aptYu60fQP568V1H3Wf62Dm4j2rZaFsVerDRxqyMg@mail.gmail.com"
type="cite">
<div>Hello,</div>
<div><br>
</div>
<div>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.</div>
<div>My script configuration is the default template adding this
lines (extracted from nat traversal doc):</div>
<div><br>
</div>
<div>...</div>
<div>loadmodule "nat_traversal.so"</div>
<div>...</div>
<div><br>
</div>
<div>...</div>
<div>$fs = $keepalive.socket($du);</div>
<div>...</div>
<div><br>
</div>
<div>I have this error:</div>
<div>
<br>
</div>
<div>-e</div>
<div> 0(17455) ERROR: <core> [pvapi.c:501]: error searching
pvar "keepalive"</div>
<div> 0(17455) ERROR: <core> [pvapi.c:705]: wrong char
[e/101] in [$keepalive] at [9 (0)]</div>
<div> 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</div>
<div>ERROR: bad config file (1 errors)</div>
<div><br>
</div>
<div><br>
</div>
<div>I tried in this environments:</div>
<div><br>
</div>
<div> Ubuntu 10.04.4 LTS x86_64 Kamailio
3.3.3+git20130128+lucid1 </div>
<div> Ubuntu 10.04.4 LTS i686 Kamailio 3.0.4+lucid1</div>
<div> Ubuntu 12.04.1 LTS x86_64 Kamailio 3.3.2+precise1</div>
<div> </div>
<div>All packages instaled from deb repositories (<a
moz-do-not-send="true" href="http://deb.kamailio.org/">http://deb.kamailio.org/</a>)</div>
<div><br>
</div>
<div>I think there are problem parsing "$keepalive.socket"
pseudovariable, because Kamailio doesn´t scape this character
"." and it doesn´t recognise the pseudovar.</div>
<div><br>
</div>
<div>Does anyone have this problem? </div>
<div><br>
</div>
<div><br>
</div>
<div>Regards</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
- <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
</body>
</html>