[Serusers] Feature request: route("string")

Alexey N. Kovyrin @ Home alexey at home.kovyrin.net
Sat Mar 5 10:34:31 CET 2005


Mohammad Khan wrote:

>Hello List:
>
>
>It would be really great,
>If I could write something like this in ser.cfg:
>
>
>if (method=="MESSAGE") {
>	if (src_ip==192.168.1.0/24) {
>		route("handle_internal_message");
>	} else  {
>		route("handle_message");
>	};
>};
>
>if (!uri=~myself) {
>	route("handle_other_uri");
>};
>
>
>route["handle_internal_message"] {
>	# code of handle_internal_message
>};
>
>route["handle_message"] {
>	# code of handle_message
>};
>
>route["handle_other_uri"] {
>	# code of other_uri
>};
>
>  
>
I agree! It'll be really good feature...

-- 
/Scoundrel




More information about the sr-users mailing list