[Kamailio-Users] [OpenSIPS-Users] BAD URI After $ru and avp

Gustavo Mistrinelli gmistrinelli at gmail.com
Thu Sep 25 15:04:55 CEST 2008


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 at domain"
 Option 1:
   $rU = $avp(s:callfwd);

Cheers,

Gustavo

On Thu, Sep 25, 2008 at 9:42 AM, Ali Jawad <ali.jawad at 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 at xyz.com <sip%3A9611375554 at 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 at 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Gustavo Mistrinelli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080925/d2654f32/attachment.htm 


More information about the Users mailing list