[Serusers] ser 0.10.99 - runtime and compilation errors

Michal Matyska michal at iptel.org
Thu Feb 8 14:46:37 CET 2007


On Thu, 2007-02-08 at 14:05 +0100, tzieleniewski wrote:
> 
> > On Thu, 2007-02-08 at 12:42 +0100, tzieleniewski wrote:
> > > Hi!
> > > 
> > > I observed the following errors reported by ser during normal runtime are they critical?:
> > > Feb  8 12:47:24 rd ser[12172]: ERROR: parse_uri: bad uri,  state 0 parsed: <tzl@> (4) / <tzl at voip.touk.pl> (16)
> > > Feb  8 12:47:24 rd ser[12172]: ERROR: avp_db.c:187: Error while parsing URI 'tzl at voip.touk.pl'
> > 
> > The uri must start with sip: sips: or tel:
> > Michal
> > 
> 
> why this error occurs after I invoke the load_attrs("$tr", "$t.uid");
> 
> my ser.cfg:
>       ....
>       # load the preferences of the callee to have his timeout values loaded
>       xlog("L_INFO", " route[INBOUND]: load_attrs($tu,$t.uid) \n");
>       load_attrs("$tu", "$t.uid");
>       xlog("L_INFO", " route[INBOUND]: load_attrs($tr,$t.uid) \n");
>       load_attrs("$tr", "$t.uid");

load_attrs into the TO/URI track must have uri (request / to /
called-party-id / whichever you want) as the second parameter.

use 
load_attrs("$tr","@ruri");
or
load_attrs("$tr","@to.uri");
or e.g.
load_attrs("$tr","@msg["X-my-own-header"].nameaddr.uri");

the uid is used to load just the TO/USER attributes.

Michal




More information about the sr-users mailing list