[Users] new avpops
Helge Waastad
helge at smartnet.no
Mon Feb 13 15:50:46 CET 2006
Hi,
and thanks.....
There was surley a "while" too much :-)
br hw
man, 13,.02.2006 kl. 16.38 +0200, skrev Daniel-Constantin Mierla:
> Hello,
>
> indeed there was an issue in avp_pushto() - a transformation from "while
> {}" in "do {} while ()" was brocken. It is now fixed on cvs. You can use
> the attached patch until the pserver CVS gets synchronized.
>
> Thanks,
> Daniel
>
>
> On 02/13/06 16:03, Helge Waastad wrote:
> > Hi,
> > earlier I had:
> > modparam("avpops","avp_aliases","ouri=i:704")
> > I did (before lcr processing):
> > avp_write("$ruri/username","$ouri");
> >
> > [LCR processing]
> >
> > (put back the original)
> > avp_pushto("$ruri/username","$ouri");
> >
> > now I'm using:
> > avp_write("$oU","$avp(ouri)");
> >
> > [LCR prcessing]
> >
> > (try to write back the old username)
> > avp_pushto("$ru/username","$avp(ouri)");
> >
> > This does not work...
> > I'm not quite sure if I'm using the new format correct.
> >
> > br hw
> >
> >
> >
> vanlig tekstdokument-vedlegg (avpops_impl.c.patch)
> Index: modules/avpops/avpops_impl.c
> ===================================================================
> RCS file: /cvsroot/openser/sip-server/modules/avpops/avpops_impl.c,v
> retrieving revision 1.20
> diff -u -r1.20 avpops_impl.c
> --- modules/avpops/avpops_impl.c 10 Feb 2006 23:06:17 -0000 1.20
> +++ modules/avpops/avpops_impl.c 13 Feb 2006 14:32:41 -0000
> @@ -1037,8 +1037,7 @@
> }
>
> n = 0;
> - while (avp)
> - {
> + do {
> /* the avp val will be used all the time as str */
> if (flags&AVP_VAL_STR) {
> val = avp_val.s;
--
Helge Waastad
Senior Konsulent
Systemavdelingen
Smartnet
More information about the Users
mailing list