On 7/6/10 12:07 PM, Iñaki Baz Castillo wrote:
2010/7/6 Daniel-Constantin Mierla<mico...@gmail.com>:
was your question how many avps with ID N can be or how many distinct N you
can have?

Haven't check if has changed in SER 2.0 (therefore in 3.0 as well), but in K
1.x and older S the ID was short int (16b), so N can be any number from 1 to
2^16-1.
My question was about the max number of N in avp(i:N). I expected that
the max numbers of ID N avps is N.
hmm, unless I misunderstand you, this is wrong.

Say N=10, then you can have as many $avp(i:10) as you want -- is no limit.

For example:

$avp(i:10) = 50;
$avp(i:10) = 60;
$avp(i:10) = 70;
$avp(i:10) = 80;

results in 4 avps having same name (i:10) and different values.

Cheers,
Daniel

Anyhow my question was about K 1.5 as I know that in 3.X there are
changes in AVP indexing syntax.

Thanks.



--
Daniel-Constantin Mierla
http://www.asipto.com/


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to