[svn-commits] transnexus: trunk r281498 - /trunk/apps/app_osplookup.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 10 02:27:03 CDT 2010


Author: transnexus
Date: Tue Aug 10 02:26:59 2010
New Revision: 281498

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=281498
Log:
Fixed the issue caused by EXTEN including user parameters.

Modified:
    trunk/apps/app_osplookup.c

Modified: trunk/apps/app_osplookup.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_osplookup.c?view=diff&rev=281498&r1=281497&r2=281498
==============================================================================
--- trunk/apps/app_osplookup.c (original)
+++ trunk/apps/app_osplookup.c Tue Aug 10 02:26:59 2010
@@ -1493,6 +1493,7 @@
 	char callingnum[OSP_SIZE_NORSTR];
 	char callednum[OSP_SIZE_NORSTR];
 	char destination[OSP_SIZE_NORSTR];
+	char* tmp;
 	unsigned int tokenlen;
 	char token[OSP_SIZE_TOKSTR];
 	char src[OSP_SIZE_NORSTR];
@@ -1565,6 +1566,11 @@
 		}
 	}
 
+	ast_copy_string(callednum, called, sizeof(callednum));
+	if((tmp = strchr(callednum, ';')) != NULL) {
+		*tmp = '\0';
+	}
+
 	callidnum = 0;
 	callids[0] = NULL;
 	for (i = 0; i < OSP_CALLID_MAXNUM; i++) {
@@ -1605,7 +1611,7 @@
 		dev,
 		calling ? calling : "",
 		OSPC_NFORMAT_E164,
-		called,
+		callednum,
 		OSPC_NFORMAT_E164,
 		NULL,
 		callidnum,




More information about the svn-commits mailing list