Hi!
Sorry for not knowing how hash table works, thus my questions may be a
bit stupid:
How many items can be stored in hashtable? Is it limited to "size"
parameter, e.g. 10 means max. 1024 entries? Or is it as much as memory
is available (what for is the size parameter in this case)?
How can I delete a key from htable? Example: I want to track concurrent
calls (lets pretend there is no dialog module :-):
# pseudo language
if INVITE
$sht(a=>$ci) = $ts;
...
elseif BYE
$avp(s:duration) = $ts - $avp(s:duration);
# how to delete this key now from the htable?
Is it possible to iterate over all entries in the htable?
thanks
klaus
sorry - wrong mailing list ... Klaus Darilion schrieb:> Hi! > > Sorry for not knowing how hash table works, thus my questions may be a > bit stupid: > > How many items can be stored in hashtable? Is it limited to "size" > parameter, e.g. 10 means max. 1024 entries? Or is it as much as memory > is available (what for is the size parameter in this case)? > > How can I delete a key from htable? Example: I want to track concurrent > calls (lets pretend there is no dialog module :-): > > # pseudo language > if INVITE > $sht(a=>$ci) = $ts; > ... > > elseif BYE > $avp(s:duration) = $ts - $avp(s:duration); > > # how to delete this key now from the htable? > > > > > Is it possible to iterate over all entries in the htable? > > thanks > klaus > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users