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?

regards
klaus


What do you think of that?

regards
klaus



--
Klaus Darilion
nic.at


_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to