[SR-Users] variable in rewritehost ?`

Alex Balashov abalashov at evaristesys.com
Mon Dec 17 15:13:29 CET 2012


Your reference to the row, column lacks $dbr() PV encapsulation. 

Ali Jawad <ali.jawad at splendor.net> wrote:

>Thanks Alex, now it works if I do set the $ru manually, however if I do
>set
>it dynamically it still gives destination unresolvable, I do fetch a
>SQL
>statement and row 1,1 is hostname
>
>
>                while($var(i)<$dbr(ra=>rows))
>
>                {
>
>                        $var(j) = 0;
>
>                        while($var(j)<$dbr(ra=>cols))
>
>                        {
>
>                                xlog("[$var(i),$var(j)] =
>$dbr(ra=>[$var(i),$var(j)])\n");
>
>                                $var(j) = $var(j) + 1;
>
>                        }
>
>                        $var(i) = $var(i) + 1;
>
>                }
>
>        }
>
>
>
>        $ru = "sip:support1 at ra=>[$var(1),$var(1)]:5060";
>
>
>On Mon, Dec 17, 2012 at 2:22 PM, Alex Balashov
><abalashov at evaristesys.com>wrote:
>
>> $ru

-- 
Sent from my mobile, and thus lacking in the refinement one might expect from a fully-fledged keyboard. 

Alex Balashov - Principal 
Evariste Systems LLC 
235 E Ponce de Leon Ave 
Suite 106 
Decatur, GA 30030 
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list