[Serusers] call forwarding issue - attr_destination() error: Feb 12 14:37:53 rd ser[3979]: parse_nameaddr(): No < found - ottendorf

Michal Matyska michal at iptel.org
Mon Feb 12 15:09:01 CET 2007


On Mon, 2007-02-12 at 14:32 +0100, tzieleniewski wrote:
> Hi again 
> I found out that there appears the following error in the log:
> Feb 12 14:37:53 rd ser[3979]: parse_nameaddr(): No < found

The attr_destination uses the same uri parser as core, and is able to
accept event the nameaddr specification... so if you put uri without <>
you will get this "warning".

It just rewrites internal next hop, so the t_relay will send it as
appropriate. If you want to rewrite the request uri too use attr2uri
function call together with it.

Michal

> Please give me a hand with this issue:)
> 
> Thanks in advance
> -tomasz 
> 
> > Hi!!
> > 
> > I am trying to set up the blind call forwarding with the usage of attr_destination()
> > function.
> > I do the following I load the user attributes from user_attrs and uri_attrs table and then according to the loaded parameters I do:
> >    
> >    if ($tu.call_forward == "blind" && $tr.forward_blind)
> >    {
> >       xlog("L_INFO", " route[CALL_FORWARD]: fwd \n");
> >       attr_destination("$tr.forward_blind");
> >       xlog("L_INFO", " route[CALL_FORWARD]: route(FORWARD) \n");
> >       route(FORWARD);
> >       xlog("L_INFO", " route[CALL_FORWARD]: drop \n");
> >       drop;
> >    }
> > 
> > after the ser.cfg logic goes through this part I don't see any change in the request uri?? Please point me what do I miss?
> > 
> > here is my database contents:
> > mysql> select * from user_attrs where uid like 'hellboy%' and name like 'call_%';
> > +----------------------+--------------+-------+------+-------+
> > | uid                  | name         | value | type | flags |
> > +----------------------+--------------+-------+------+-------+
> > | hellboy at voip.touk.pl | call_forward | blind |    2 |     1 |
> > +----------------------+--------------+-------+------+-------+
> > 1 row in set (0.00 sec)
> > 
> > mysql> select * from uri_attrs where username like 'hellboy%';
> > +----------+--------------+---------------+----------------------+------+-------+--------+
> > | username | did          | name          | value                | type | flags | scheme |
> > +----------+--------------+---------------+----------------------+------+-------+--------+
> > | hellboy  | voip.touk.pl | forward_blind | sip:tzl at voip.touk.pl |    2 |     1 | sip    |
> > +----------+--------------+---------------+----------------------+------+-------+--------+
> > 1 row in set (0.00 sec)
> > 
> > Cheers
> > -tomasz
> > 
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> 
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list