<div dir="ltr">Hi Ale, You are storing callfw values using olny numbers then you need to assing it to $rU (RURI Username) instead $ru or store attributes with values like &quot;sip:number@domain&quot;<br>&nbsp;Option 1:<br>&nbsp;&nbsp; $rU = <font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">$avp(s:callfwd);<br>
<br>Cheers,<br><br>Gustavo<br></span></font><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 9:42 AM, Ali Jawad <span dir="ltr">&lt;<a href="mailto:ali.jawad@splendor.net">ali.jawad@splendor.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">












<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I am trying to change the Ruri as stated below </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">DB usr_preferences</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Domain=</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Value=callfwd</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Attribute=33179974674</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">if(avp_db_load(&quot;$ruri/username&quot;,&quot;$avp(s:callfwd)&quot;)){</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xlog(&quot;L_INFO&quot;,&quot;X0XOXOXOXOXOXOXXOXOXOXXOXOXOXOXOX&quot;);</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$ru = $avp(s:callfwd);</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
route(8);</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
exit;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">};</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">It enters allright and it changes the rURI however It throws the errors
below:</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">&nbsp;</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
DBG:avpops:db_close_query: close avp query</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879] DBG:core:db_free_rows:
freeing 1 rows</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
DBG:core:db_free_rows: row[0]=0x8187160</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">&nbsp;</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
ERROR:core:do_action: bad uri &lt;33179974674&gt;, dropping packet</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">&nbsp;</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
DBG:core:parse_to: display={&quot;9611375554&quot;}, ruri={<a href="mailto:sip%3A9611375554@xyz.com" target="_blank">sip:9611375554@xyz.com</a>}</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
ERROR:core:parse_uri: bad uri,&nbsp; state 0 parsed: &lt;3317&gt; (4) /
&lt;33179974674&gt; (25)</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
ERROR:core:parse_sip_msg_uri: bad uri &lt;<a href="mailto:33179974674@33.33.33.33" target="_blank">33179974674@33.33.33.33</a>&gt;</span></font></p>

<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879]
DBG:core:set_err_info: ec: 1, el: 3, ei: &#39;error parsing r-uri&#39;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Sep 25 13:31:23 [24879] ERROR:tm:new_t: uri invalid</span></font><font size="2"><span style="font-size: 11pt;"></span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">&nbsp;</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">&nbsp;</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">With Regards</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">&nbsp;</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">Ali Jawad</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">System Administrator</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">Splendor Telecom (<a href="http://www.splendor.net" target="_blank">www.splendor.net</a>)</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">Beirut</span></font><font size="2"><span style="font-size: 11pt;">, Lebanon</span></font><font size="2"><span style="font-size: 11pt;"></span></font></p>


<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">Phone: +961 1 373725</span></font></p>

<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;">Fax: + 961 1 375554</span></font></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div>


<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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><br clear="all"><br>-- <br>Gustavo Mistrinelli<br>
</div>