mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
Fixed the issue caused by EXTEN including user parameters.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1493,6 +1493,7 @@ static int osp_lookup(
|
|||||||
char callingnum[OSP_SIZE_NORSTR];
|
char callingnum[OSP_SIZE_NORSTR];
|
||||||
char callednum[OSP_SIZE_NORSTR];
|
char callednum[OSP_SIZE_NORSTR];
|
||||||
char destination[OSP_SIZE_NORSTR];
|
char destination[OSP_SIZE_NORSTR];
|
||||||
|
char* tmp;
|
||||||
unsigned int tokenlen;
|
unsigned int tokenlen;
|
||||||
char token[OSP_SIZE_TOKSTR];
|
char token[OSP_SIZE_TOKSTR];
|
||||||
char src[OSP_SIZE_NORSTR];
|
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;
|
callidnum = 0;
|
||||||
callids[0] = NULL;
|
callids[0] = NULL;
|
||||||
for (i = 0; i < OSP_CALLID_MAXNUM; i++) {
|
for (i = 0; i < OSP_CALLID_MAXNUM; i++) {
|
||||||
@@ -1605,7 +1611,7 @@ static int osp_lookup(
|
|||||||
dev,
|
dev,
|
||||||
calling ? calling : "",
|
calling ? calling : "",
|
||||||
OSPC_NFORMAT_E164,
|
OSPC_NFORMAT_E164,
|
||||||
called,
|
callednum,
|
||||||
OSPC_NFORMAT_E164,
|
OSPC_NFORMAT_E164,
|
||||||
NULL,
|
NULL,
|
||||||
callidnum,
|
callidnum,
|
||||||
|
Reference in New Issue
Block a user