dect
/
asterisk
Archived
13
0
Fork 0

Fixed the issue caused by EXTEN including user parameters.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@281498 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
transnexus 2010-08-10 07:26:59 +00:00
parent a665e2a7ad
commit 81f2715c1a
1 changed files with 7 additions and 1 deletions

View File

@ -1493,6 +1493,7 @@ static int osp_lookup(
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 @@ static int osp_lookup(
}
}
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 @@ static int osp_lookup(
dev,
calling ? calling : "",
OSPC_NFORMAT_E164,
called,
callednum,
OSPC_NFORMAT_E164,
NULL,
callidnum,