[OpenSIPS-Users] {ip.resolve} script transformation trouble
Dave Singer
dave.singer at wideideas.com
Thu Feb 24 22:06:39 CET 2011
Igor,
Very close. Notice the ( between $ and var and ) after var name:
$var(fs_addr) = $(var(fs_addr_s){ip.resolve}{ip.ntop});
see syntax near top of http://www.opensips.org/Resources/DocsCoreVar16
Dave
On Thu, Feb 24, 2011 at 10:36 AM, Igor Solovyov <igor at choochee.com> wrote:
> Hi All,
>
> I try to execute in the script
> $var(fs_addr_s) = "opensips.org"; # just for test
> $var(fs_addr) = $var(fs_addr_s{ip.resolve}{ip.ntop});
> xlog("L_ERR", "fs_addr = $var(fs_addr)");
> but in log I can see only 0 instead of resolved ip address.
> What I do wrongly?
>
> Thanks,
> Igor.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110224/3e3afdc2/attachment.htm>
More information about the Users
mailing list