[OpenSER-Users] cnt_avp () doesn't work?
Miroslav HOSTINSKY
bman at alconet.sk
Tue Apr 22 09:20:33 CEST 2008
Hello,
I mean, "if there is an inactive destination"...
So, I have an inactive destination and in the AVP there is always
initial value.
I recently tried to change ds_mark_dst("p") to ds_mark_dst("i") in my
script and this works.
So I don't know if this is feature or bug, but I think it is more useful
to decrement AVP if "failed" device is in the probing state (sip
pinging), not only in inactive state...
Thanks...
Daniel-Constantin Mierla wrote:
> 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
>
More information about the sr-users
mailing list