[Devel] dialog functions
Klaus Darilion
klaus.mailinglists at pernau.at
Tue Dec 19 15:55:00 CET 2006
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.)
What do you think of that?
regards
klaus
--
Klaus Darilion
nic.at
More information about the Devel
mailing list