[Devel] check_route_param doesn't find all params

Juha Heinanen jh at tutpro.com
Sun Dec 18 09:41:51 CET 2005


i started to play with route params and noticed that for some reason
check_route_param doesn't find all of them.  i made a simple test in
ser.cfg:

	xlog("L_ALERT", "Route header of $rm is $hdr(Route)\n");
	if (check_route_param(";pm")) {
		xlog("L_ALERT", "Found pm\n");
	};
	if (check_route_param(";n1")) {
		xlog("L_ALERT", "Found n1\n");
	};

and then run a test:

Dec 18 10:34:54 tutpro /usr/sbin/ser[14219]: Route header of INVITE is <sip:xxx.xxx.xxx.xxx;pm;n1;lr>
Dec 18 10:34:54 tutpro /usr/sbin/ser[14219]: Found n1

that is the first route param 'pm was NOT found.  i'll start to read the
code.  perhaps the first ; is skipped.

-- juha





More information about the Devel mailing list