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