Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Iñaki Baz Castillo
2010/7/6 Daniel-Constantin Mierla : >> 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:

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Daniel-Constantin Mierla
On 7/6/10 12:07 PM, Iñaki Baz Castillo wrote: 2010/7/6 Daniel-Constantin Mierla: 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), s

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Iñaki Baz Castillo
2010/7/6 Daniel-Constantin Mierla : > 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

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Daniel-Constantin Mierla
On 7/6/10 11:49 AM, Iñaki Baz Castillo wrote: 2010/7/6 Andrei Pelinescu-Onciul: Hi, could it be clarified please? I also wonder how many integer AVP's (i:N) can exist. Does it depend on the 32/64 bits architecture? The flags are stored internally on 32 bits, but you should use nam

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Daniel-Constantin Mierla
On 7/6/10 11:34 AM, Andrei Pelinescu-Onciul wrote: On Jul 06, 2010 at 10:24, Daniel-Constantin Mierla wrote: Hello, On 7/6/10 10:16 AM, Alex Balashov wrote: Daniel, Based on this, I think I was erroneous in suggesting that plain flags (setflag, isflagset) are transaction-associat

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Iñaki Baz Castillo
2010/7/6 Andrei Pelinescu-Onciul : >> Hi, could it be clarified please? I also wonder how many integer AVP's >> (i:N) can exist. Does it depend on the 32/64 bits architecture? > > The flags are stored internally on 32 bits, but you should use names for > the flags so you shouldn't care (unless you

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 10:43, Iñaki Baz Castillo wrote: > 2010/7/6 Alex Balashov : > > It sets bits in a 32-bit integer (it may be 64-bit on 64-bit platforms, of > > this I am not sure) > > Hi, could it be clarified please? I also wonder how many integer AVP's > (i:N) can exist. Does it depend on the

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 10:24, Daniel-Constantin Mierla wrote: > Hello, > > On 7/6/10 10:16 AM, Alex Balashov wrote: > >Daniel, > > > >Based on this, I think I was erroneous in suggesting that plain > >flags (setflag, isflagset) are transaction-associated. They seem > >to be message-associated, not t

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Andrei Pelinescu-Onciul
On Jul 06, 2010 at 10:05, Daniel-Constantin Mierla wrote: > Hello, > > here is a wiki page with some flag bitmask vector examples that might help: > http://www.kamailio.org/dokuwiki/doku.php/tutorials:openser-flag-operations > > The cfg file examples are for older kamailio versions. Indeed. Th

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Iñaki Baz Castillo
2010/7/6 Alex Balashov : > It sets bits in a 32-bit integer (it may be 64-bit on 64-bit platforms, of > this I am not sure) Hi, could it be clarified please? I also wonder how many integer AVP's (i:N) can exist. Does it depend on the 32/64 bits architecture? Thanks. -- Iñaki Baz Castillo

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Daniel-Constantin Mierla
On 7/6/10 10:32 AM, Alex Balashov wrote: On 07/06/2010 04:24 AM, Daniel-Constantin Mierla wrote: On 7/6/10 10:16 AM, Alex Balashov wrote: Daniel, Based on this, I think I was erroneous in suggesting that plain flags (setflag, isflagset) are transaction-associated. They seem to be message-as

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Alex Balashov
On 07/06/2010 04:24 AM, Daniel-Constantin Mierla wrote: On 7/6/10 10:16 AM, Alex Balashov wrote: Daniel, Based on this, I think I was erroneous in suggesting that plain flags (setflag, isflagset) are transaction-associated. They seem to be message-associated, not transaction. Is this right?

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Daniel-Constantin Mierla
Hello, On 7/6/10 10:16 AM, Alex Balashov wrote: Daniel, Based on this, I think I was erroneous in suggesting that plain flags (setflag, isflagset) are transaction-associated. They seem to be message-associated, not transaction. Is this right? in first place is associated to message, then

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Alex Balashov
Daniel, Based on this, I think I was erroneous in suggesting that plain flags (setflag, isflagset) are transaction-associated. They seem to be message-associated, not transaction. Is this right? Thanks, -- Alex On 07/06/2010 04:05 AM, Daniel-Constantin Mierla wrote: Hello, here is a wi

Re: [SR-Users] About setflag()'s parameter

2010-07-06 Thread Daniel-Constantin Mierla
Hello, here is a wiki page with some flag bitmask vector examples that might help: http://www.kamailio.org/dokuwiki/doku.php/tutorials:openser-flag-operations The cfg file examples are for older kamailio versions. Cheers, Daniel On 7/6/10 4:02 AM, Alex Balashov wrote: On 07/05/2010 09:59 PM,

Re: [SR-Users] About setflag()'s parameter

2010-07-05 Thread Alex Balashov
On 07/05/2010 09:59 PM, zhou tianjun wrote: I'm in doubt of the means of setflag()'s parameter. I have looked for it everywhere including internet and the ser source code, but no any docs explained it in detail. can anybody tell me about it ? It sets bits in a 32-bit integer (it may be 64-bit

[SR-Users] About setflag()'s parameter

2010-07-05 Thread zhou tianjun
Hi all, I'm in doubt of the means of setflag()'s parameter. I have looked for it everywhere including internet and the ser source code, but no any docs explained it in detail. can anybody tell me about it ? -- With best regards by sunone ___ SIP Expres