Bogdan-Andrei Iancu writes: > now that we have supported methods support into usrloc, I'm wondering > what will be the mechanism to use this info. You mention something about > a external apps inspecting the DB (for c2d, for ex.)...
that was just one application before we can also use method information for contact selection. > I'm looking for a way to make it usable from script: what about making > lookup() to do filtering of contacts based of supported methods: > if I do lookup for a MESSAGE and this method is not supported by a > registered contact, this contact should not be returned by the > lookup(). yes, but there are some complications. if i do lookup for a particular method and that method is not supported by any contact, but contact(s) supporting other methods do exist, then script should return 405 instead of 480. this means that binary result from lookup (0 or -1) is not anymore enough. > this behaviour may be control via module param (turned on or off) or via > a second param to lookup(). yes. -- juha _______________________________________________ Devel mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/devel
