<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 "sip:number@domain"<br> Option 1:<br> $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"><<a href="mailto:ali.jawad@splendor.net">ali.jawad@splendor.net</a>></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;"> </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;"> </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;"> </span></font></p>
<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">if(avp_db_load("$ruri/username","$avp(s:callfwd)")){</span></font></p>
<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">
xlog("L_INFO","X0XOXOXOXOXOXOXXOXOXOXXOXOXOXOXOX");</span></font></p>
<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">
$ru = $avp(s:callfwd);</span></font></p>
<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">
route(8);</span></font></p>
<p style=""><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">
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;"> </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;"> </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;"> </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 <33179974674>, dropping packet</span></font></p>
<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;"> </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={"9611375554"}, 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, state 0 parsed: <3317> (4) /
<33179974674> (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 <<a href="mailto:33179974674@33.33.33.33" target="_blank">33179974674@33.33.33.33</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]
DBG:core:set_err_info: ec: 1, el: 3, ei: 'error parsing r-uri'</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;"> </span></font></p>
<p><font face="Times New Roman" size="2"><span style="font-size: 11pt;"> </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;"> </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;"> </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>