[Serusers] How to define avp localy on he ser.cfg

Michal Matyska michal at iptel.org
Mon Apr 30 16:36:09 CEST 2007


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 at lists.iptel.org
> > > http://lists.iptel.org/mailman/listinfo/serusers
> > 




More information about the sr-users mailing list