From: TransNexus OSP Development Date: Tue, 10 Aug 2010 07:26:59 +0000 (+0000) Subject: Fixed the issue caused by EXTEN including user parameters. X-Git-Tag: 11.0.0-beta1~2482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56346f894850ee34cd8ae42a78560eac713f1415;p=thirdparty%2Fasterisk.git Fixed the issue caused by EXTEN including user parameters. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@281498 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c index ea20cee771..239d6d501d 100644 --- a/apps/app_osplookup.c +++ b/apps/app_osplookup.c @@ -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,