[OpenSER-Users] cnt_avp () doesn't work?
Daniel-Constantin Mierla
miconda at gmail.com
Mon Apr 21 19:56:42 CEST 2008
Hello,
On 04/21/08 16:11, Miroslav HOSTINSKY wrote:
> Hello,
>
> I have little problem with openser 1.3.1 and dispatcher (again).
>
> according to dispatcher manual:
>
> --
> 1.3.11. cnt_avp (str)
>
> The name of the avp storing the number of destination addresses kept
> in dst_avp avps.
> --
>
> So if I understand it correctly, in AVP (defined in cnt_avp) is stored
> number/quantity of active destinations in current destination group.
>
> but I have always initial number of destinations in this AVP (as
> defined in dispatcher "destination list" config file). If I remove
> destination from balancing list (failed GW), in this AVP is always
> same initial value. I think it should change (in this case decrement
> by 1).
>
> Is this correct?
to be clear, do you mean that if there is an inactive destination, the
cnt_avp includes it? Or, once you do a ds_next_dst() the value is not
decremented?
If first, it is a bug, but at a quick look, does not seem to be wrong.
So, it might be the second you talk about. In this case, yes, the value
is not decremented by the "ds_next" functions, you can do it in the
script if you need it. The cnt_avp is just set by
ds_select_{dst,domain}() functions, it is not touched afterwards.
Cheers,
Daniel
>
> Thanks :)
>
> --
> Miroslav Hostinsky
--
http://www.asipto.com
More information about the sr-users
mailing list