<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
The IP transformations are only available in 1.6.4 source code. I have
updated the documentation in 1.6.x on the website to also document the
IP, CSV and SDP transformations. Thanks for the help, Dave.<br>
<br>
Igor, the IP transformations are not available in 1.6.3, you would have
to update to 1.6.4 to be able to use them.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Vlad Paiu
OpenSIPS Developer</pre>
<br>
<br>
<br>
<br>
On 02/24/2011 11:50 PM, Dave Singer wrote:
<blockquote
cite="mid:AANLkTimtTGeam1O0Mkoc+cUskWw-ThTLpVuG+6500cGp@mail.gmail.com"
type="cite">
<div>Igor,</div>
<div><br>
</div>
Only documentation I see it in is for <a moz-do-not-send="true"
href="http://www.opensips.org/Resources/DocsCoreTran#toc47">development
version</a> implying trunk what will be 1.6.5. However a little while
back I was looking at the source code of 1.6.4 for transformations and
noticed some IP transformation stuff. I can't tell you ip.resolve is
there but it is a place to start.
<div><br>
</div>
<div>Dave<br>
<br>
<div class="gmail_quote">On Thu, Feb 24, 2011 at 1:39 PM, Igor
Solovyov <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:igor@choochee.com">igor@choochee.com</a>></span> wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks
Dave for prompt help.<br>
<br>
Now I get <br>
<br>
Feb 24 23:32:32 os1 opensips: ERROR:core:parse_transformation: unknown
transformation: [ip] in [{ip.resolve}]<br>
Feb 24 23:32:32 os1 opensips: ERROR:core:parse_transformation: error
parsing [{ip.resolve}]<br>
Feb 24 23:32:32 os1 opensips: ERROR:core:pv_parse_spec: ERROR:bad tr in
pvar name "var"<br>
Feb 24 23:32:32 os1 opensips: ERROR:core:pv_parse_spec: invalid parsing
in [$(var(fs_addr_s){ip.resolve})] at (4)<br>
Feb 24 23:32:32 os1 opensips: CRITICAL:core:yyerror: parse error in
config file, line 144, column 49-78: unknown script variable<br>
<br>
which leads me to though that my OpenSIPS version 1.6.3 doesn't support
"ip" transformation.<br>
Am I correct? And so, from which version "ip" is supported?<br>
Or may be is there another method to get resolved ip by string?<br>
<font color="#888888">
<br>
Igor.</font>
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">On Thu, Feb 24, 2011 at 11:06 PM, Dave
Singer <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:dave.singer@wideideas.com" target="_blank">dave.singer@wideideas.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Igor,</div>
<div><br>
</div>
<div>Very close. Notice the ( between $ and var and ) after var
name:</div>
<div>
<div><br>
</div>
$var(fs_addr) = $(var(fs_addr_s){ip.resolve}{ip.ntop});<br>
<br>
</div>
<div>see syntax near top of <a moz-do-not-send="true"
href="http://www.opensips.org/Resources/DocsCoreVar16" target="_blank">http://www.opensips.org/Resources/DocsCoreVar16</a>
<div><br>
<div>Dave</div>
<div><br>
<div class="gmail_quote">
<div>
<div>On Thu, Feb 24, 2011 at 10:36 AM, Igor Solovyov <span
dir="ltr"><<a moz-do-not-send="true" href="mailto:igor@choochee.com"
target="_blank">igor@choochee.com</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>Hi All,<br>
<br>
I try to execute in the script<br>
$var(fs_addr_s) = "<a moz-do-not-send="true" href="http://opensips.org"
target="_blank">opensips.org</a>"; # just for test<br>
$var(fs_addr) = $var(fs_addr_s{ip.resolve}{ip.ntop});<br>
xlog("L_ERR", "fs_addr = $var(fs_addr)");<br>
but in log I can see only 0 instead of resolved ip address.<br>
What I do wrongly?<br>
<br>
Thanks,<br>
<font color="#888888">Igor.<br>
<br>
</font><br>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>