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

List:       openser-devel
Subject:    Re: [Kamailio-Devel] SF.net SVN: openser:[5130] trunk/mod_fix.h
From:       Henning Westerholt <henning.westerholt () 1und1 ! de>
Date:       2008-10-31 17:32:01
Message-ID: 200810311832.01413.henning.westerholt () 1und1 ! de
[Download RAW message or body]

On Friday 24 October 2008, Daniel-Constantin Mierla wrote:
> >>> Log Message:
> >>> -----------
> >>> - add AVP type to gparam_t, to make this usable for carrierroute
> >>
> >> this should not be necessary. pv_spec_t can handle the avp naming. The
> >> avp is just another PV. What is the particular use case for you? Maybe I
> >> can help showing how to use the pv_spec_t as avp for it.
> >
> > Hi Daniel,
> >
> > yes, i know. But we've some performance concerns regards to printing the
> > PV for every invocation of this function, when an AVP is used most of the
> > time. Do you think this is no problem?
>
> if that is a concern for you, you can get the name and then use it as
> AVP. The pv_spec_t has inside the new fields you added
> http://www.asipto.com/pub/kamailio-devel-guide/#c11pv_name_t
>
> Moreover, there is a function that gets the avp name out of pv_spec_t,
> for the case the avp name is dynamic, e.g., $avp($var(avpname)), see
> pv_get_avp_name() in pvar.c

Hi Daniel,

it works fine with the common fixup and printing functions now.

Thanks,

Henning

_______________________________________________
Devel mailing list
Devel@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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