<div>Igor,</div><div><br></div>Only documentation I see it in is for <a 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 href="mailto:igor@choochee.com">igor@choochee.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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></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 href="mailto:dave.singer@wideideas.com" target="_blank">dave.singer@wideideas.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);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 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></div><div>On Thu, Feb 24, 2011 at 10:36 AM, Igor Solovyov <span dir="ltr"><<a href="mailto:igor@choochee.com" target="_blank">igor@choochee.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>Hi All,<br><br>I try to execute in the script<br>
$var(fs_addr_s) = "<a 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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a 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>