[asterisk-commits] transnexus: branch 1.8 r281497 - /branches/1.8/apps/app_osplookup.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 10 02:26:22 CDT 2010
Author: transnexus
Date: Tue Aug 10 02:26:17 2010
New Revision: 281497
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=281497
Log:
Fixed the issue caused by EXTEN including user parameters.
Modified:
branches/1.8/apps/app_osplookup.c
Modified: branches/1.8/apps/app_osplookup.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_osplookup.c?view=diff&rev=281497&r1=281496&r2=281497
==============================================================================
--- branches/1.8/apps/app_osplookup.c (original)
+++ branches/1.8/apps/app_osplookup.c Tue Aug 10 02:26:17 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 asterisk-commits
mailing list