<div dir="ltr">Seems the logic I used is flawed, problem is not all of the sip clients register their domain in the location table, alot of them have NULL as domain, so I need to rely on the socket column in location table to determine where to send the incoming call. Problem is I need to extract only the IP from udp:xx.xx.xx.xx:5060 , any idea on how to achieve that ?<br>

Regards<br><br><div class="gmail_quote">On Mon, Dec 17, 2012 at 4:13 PM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Your reference to the row, column lacks $dbr() PV encapsulation.<br>
<div class="im"><br>
Ali Jawad &lt;<a href="mailto:ali.jawad@splendor.net">ali.jawad@splendor.net</a>&gt; wrote:<br>
<br>
&gt;Thanks Alex, now it works if I do set the $ru manually, however if I do<br>
&gt;set<br>
&gt;it dynamically it still gives destination unresolvable, I do fetch a<br>
&gt;SQL<br>
&gt;statement and row 1,1 is hostname<br>
&gt;<br>
&gt;<br>
&gt;                while($var(i)&lt;$dbr(ra=&gt;rows))<br>
&gt;<br>
&gt;                {<br>
&gt;<br>
&gt;                        $var(j) = 0;<br>
&gt;<br>
&gt;                        while($var(j)&lt;$dbr(ra=&gt;cols))<br>
&gt;<br>
&gt;                        {<br>
&gt;<br>
&gt;                                xlog(&quot;[$var(i),$var(j)] =<br>
&gt;$dbr(ra=&gt;[$var(i),$var(j)])\n&quot;);<br>
&gt;<br>
&gt;                                $var(j) = $var(j) + 1;<br>
&gt;<br>
&gt;                        }<br>
&gt;<br>
&gt;                        $var(i) = $var(i) + 1;<br>
&gt;<br>
&gt;                }<br>
&gt;<br>
&gt;        }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;        $ru = &quot;sip:support1@ra=&gt;[$var(1),$var(1)]:5060&quot;;<br>
&gt;<br>
&gt;<br>
&gt;On Mon, Dec 17, 2012 at 2:22 PM, Alex Balashov<br>
&gt;&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; $ru<br>
<br>
--<br>
</div>Sent from my mobile, and thus lacking in the refinement one might expect from a fully-fledged keyboard.<br>
<div class="im HOEnZb"><br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
</div><div class="HOEnZb"><div class="h5">Tel: +1-678-954-0670<br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><font><font color="#888888"><b>Ali Jawad    <br></b></font></font><div><div><font><font color="#888888"><b>Information Systems Manager<br><font size="1">CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA</font><br>

</b></font></font></div><div><font><font color="#888888"><b>Splendor Telecom <span style="background-color:rgb(255,255,255)">(</span><span style="background-color:rgb(51,51,255);color:rgb(51,102,255)"><a href="http://www.splendor.net/" target="_blank"><span style="background-color:rgb(255,255,255)"><font color="#3366ff">www.splendor.net</font></span></a></span><span style="background-color:rgb(255,255,255)">)</span><br>


Beirut, Lebanon<br>Phone: +9611373725/ext 116<br>FAX: +9611375554<br><br></b></font></font><div><div></div></div></div></div></div><br>
</div>