Use variable CONNECTEDNUMBER on Answer().
This commit is contained in:
parent
44934a4f4f
commit
861ddcf723
|
@ -873,6 +873,7 @@ static int capi_send_answer(struct ast_channel *c, int *bprot, _cstruct b3conf)
|
||||||
_cmsg CMSG;
|
_cmsg CMSG;
|
||||||
char buf[AST_CAPI_MAX_STRING];
|
char buf[AST_CAPI_MAX_STRING];
|
||||||
char *dnid;
|
char *dnid;
|
||||||
|
char *connectednumber;
|
||||||
|
|
||||||
if ((i->isdnmode == AST_CAPI_ISDNMODE_PTP) &&
|
if ((i->isdnmode == AST_CAPI_ISDNMODE_PTP) &&
|
||||||
((strlen(i->incomingmsn) < strlen(i->dnid)) &&
|
((strlen(i->incomingmsn) < strlen(i->dnid)) &&
|
||||||
|
@ -881,6 +882,9 @@ static int capi_send_answer(struct ast_channel *c, int *bprot, _cstruct b3conf)
|
||||||
} else {
|
} else {
|
||||||
dnid = i->dnid;
|
dnid = i->dnid;
|
||||||
}
|
}
|
||||||
|
if ((connectednumber = pbx_builtin_getvar_helper(c, "CONNECTEDNUMBER"))) {
|
||||||
|
dnid = connectednumber;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&CMSG, 0, sizeof(CMSG));
|
memset(&CMSG, 0, sizeof(CMSG));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue