[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: Re: [Serusers] How to define avp localy on he ser.cfg
From:       Michal Matyska <michal () iptel ! org>
Date:       2007-04-30 14:36:09
Message-ID: 1177943769.22523.7.camel () broucek
[Download RAW message or body]

Yes, you can. Just to make sure you really mean using the attr, the $
sign is required in both function calls like this:

xlset_attr("$some_new_attribute","<sip:%$tu.some_avp>");
attr2uri("$some_new_attribute");
...
t_relay();

Michal

On Mon, 2007-04-30 at 15:39 +0200, tzieleniewski wrote:
> Michal thank you for all your answers!
> 
> Is it also possible to use an attribute defined by xlset_attr in the attr2ruri
> 
> for instance:
> 
> xlset_attr("some_new_attribute","<sip:%$tu.some_avp>");
> attr2uri("some_new_attribute");
> ...
> t_relay();
> 
> Tomasz
> 
> > Hi,
> > 
> > $my_attr="1234 test";
> > $my2attr=@contact.expires;
> > or use xlset_attr which allows xlog like formatting of the assigned
> > value
> > 
> > Michal
> > 
> > On Mon, 2007-04-30 at 12:35 +0200, tzieleniewski wrote:
> > > Hi,
> > > 
> > > Is it possible to define avp in ser.cfg without loading it from the database??
> > > What is the syntax?
> > > 
> > > Thanks in advance!
> > > Tomasz
> > > _______________________________________________
> > > Serusers mailing list
> > > Serusers@lists.iptel.org
> > > http://lists.iptel.org/mailman/listinfo/serusers
> > 

_______________________________________________
Serusers mailing list
Serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic