[Devel] dialog functions

Klaus Darilion klaus.mailinglists at pernau.at
Tue Dec 19 16:05:30 CET 2006


Klaus Darilion wrote:
> Klaus Darilion wrote:
>> Hi!
>>
>> IMO the following functions would be quite useful for the dialog 
>> module. Is it much work to implement them?
>>
>> dialog_exist(): checks if the transaction matches an existing dialog. 
>> Can be used as additional security check in loose_roote()
>>
>> dialog_exist("$fu","$avp(count)"): returns the number of dialogs which 
>> have $fu in From: header or in To: header
>>
>> dialog_from_exist("$fu","$avp(count)"): returns the number of dialogs 
>> which have $fu in From: header
>>
>> dialog_to_exist("$avp(whatever)","$avp(count)"):  returns the number 
>> of dialogs which have $avp(whatever) URI in To: header
>>
>> The last 3 functions can be used to count the number of concurrently 
>> calls of a user (of course this works only if dialog module also 
>> stores the URIs, not only the from/to tags.)
> 
> Does the dialog module actually store the tags or is only the RR 
> parameter did used? If only did is used - isn't that a bit unsafe?

guess I should read the docs first :-)

use_tight_match can be used to also validate the call-id. IMO a 
use_strict_match which also checks from/to tag might be good for 
paranoid people (like me)

regards
klaus


-- 
Klaus Darilion
nic.at




More information about the Devel mailing list