[Asterisk-cvs] asterisk/apps app_osplookup.c,1.17,1.18

russell russell
Mon Nov 21 08:52:15 CST 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv23458/apps

Modified Files:
	app_osplookup.c 
Log Message:
issue #5789


Index: app_osplookup.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_osplookup.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- app_osplookup.c	8 Nov 2005 19:47:56 -0000	1.17
+++ app_osplookup.c	21 Nov 2005 13:41:28 -0000	1.18
@@ -217,6 +217,10 @@
 	temp = pbx_builtin_getvar_helper(chan, "OSPHANDLE");
 	result.handle = -1;
 	if (!ast_strlen_zero(temp) && (sscanf(temp, "%d", &result.handle) == 1) && (result.handle > -1)) {
+		temp = pbx_builtin_getvar_helper(chan, "OSPRESULTS");
+		if (ast_strlen_zero(temp) || (sscanf(temp, "%d", &result.numresults) != 1)) {
+			result.numresults = 0;
+		}
 		if ((res = ast_osp_next(&result, cause)) > 0) {
 			char tmp[80];
 			snprintf(tmp, sizeof(tmp), "%d", result.handle);




More information about the svn-commits mailing list