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"
Option 1:
$rU = $avp(s:callfwd);
Cheers,
Gustavo
On Thu, Sep 25, 2008 at 9:42 AM, Ali Jawad <ali.jawad(a)splendor.net> wrote:
Hi
I am trying to change the Ruri as stated below
DB usr_preferences
Domain=
Value=callfwd
Attribute=33179974674
if(avp_db_load("$ruri/username","$avp(s:callfwd)")){
xlog("L_INFO","X0XOXOXOXOXOXOXXOXOXOXXOXOXOXOXOX");
$ru = $avp(s:callfwd);
route(8);
exit;
};
It enters allright and it changes the rURI however It throws the errors
below:
Sep 25 13:31:23 [24879] DBG:avpops:db_close_query: close avp query
Sep 25 13:31:23 [24879] DBG:core:db_free_rows: freeing 1 rows
Sep 25 13:31:23 [24879] DBG:core:db_free_rows: row[0]=0x8187160
Sep 25 13:31:23 [24879] ERROR:core:do_action: bad uri <33179974674>,
dropping packet
Sep 25 13:31:23 [24879] DBG:core:parse_to: display={"9611375554"}, ruri={
sip:9611375554@xyz.com <sip%3A9611375554(a)xyz.com>}
Sep 25 13:31:23 [24879] ERROR:core:parse_uri: bad uri, state 0 parsed:
<3317> (4) / <33179974674> (25)
Sep 25 13:31:23 [24879] ERROR:core:parse_sip_msg_uri: bad uri <
33179974674(a)33.33.33.33>
Sep 25 13:31:23 [24879] DBG:core:set_err_info: ec: 1, el: 3, ei: 'error
parsing r-uri'
Sep 25 13:31:23 [24879] ERROR:tm:new_t: uri invalid
With Regards
Ali Jawad
System Administrator
Splendor Telecom (
www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
_______________________________________________
Users mailing list
Users(a)lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Gustavo Mistrinelli