Re: [SR-Users] htable lock - unlock

2016-12-15 Thread Daniel-Constantin Mierla
Hello, the log message you refer to is inside the if block: if ($sht(pht=>$ci)!=$null) { ... } but you don't set the item in memory, no assignment like: $sht(pht=>$ci) = ...; The sht_lock(pht=>$ci) is just locking the slot where the value of $sht(pht=>$ci) will be stored, but don't store any

[SR-Users] htable lock - unlock

2016-12-15 Thread Marino Mileti
Hi guys, I'm going out of mind J I've this piece of script inside an "on_reply_route" that captures only 200OK of INVITE (i would like to save in ht the contact of who has answered a call) sht_lock("pht=>$ci"); if ($sht(pht=>$ci)!=$null){ xlog("L_INFO","Before assignment.."); $sht