if immedіate=yes is set in DID mode, accept calls to empty DNID (needed for Austrian lines)
This commit is contained in:
parent
25966a7046
commit
e47d614996
1
CHANGES
1
CHANGES
|
@ -12,6 +12,7 @@ HEAD
|
||||||
- adapt to new asterisk 1.6 API
|
- adapt to new asterisk 1.6 API
|
||||||
- fixed reading capi profile on big-endian
|
- fixed reading capi profile on big-endian
|
||||||
- increased maximum number of CAPI controllers to 64 (needed for big PBX).
|
- increased maximum number of CAPI controllers to 64 (needed for big PBX).
|
||||||
|
- if immedіate=yes is set in DID mode, accept calls to empty DNID (needed for Austrian lines).
|
||||||
|
|
||||||
chan_capi-1.0.2
|
chan_capi-1.0.2
|
||||||
------------------
|
------------------
|
||||||
|
|
11
chan_capi.c
11
chan_capi.c
|
@ -3737,10 +3737,13 @@ static void capidev_handle_connect_indication(_cmsg *CMSG, unsigned int PLCI, un
|
||||||
|
|
||||||
/* Handle QSIG informations, if any */
|
/* Handle QSIG informations, if any */
|
||||||
cc_qsig_handle_capiind(CONNECT_IND_FACILITYDATAARRAY(CMSG), i);
|
cc_qsig_handle_capiind(CONNECT_IND_FACILITYDATAARRAY(CMSG), i);
|
||||||
|
|
||||||
if ((i->isdnmode == CAPI_ISDNMODE_MSN) && (i->immediate)) {
|
if (i->immediate) {
|
||||||
/* if we don't want to wait for SETUP/SENDING-COMPLETE in MSN mode */
|
if ((i->isdnmode == CAPI_ISDNMODE_MSN) || (!(strlen(i->dnid)))) {
|
||||||
start_pbx_on_match(i, PLCI, HEADER_MSGNUM(CMSG));
|
/* if we don't want to wait for SETUP/SENDING-COMPLETE in MSN mode */
|
||||||
|
/* or if no DNID in DID mode is provided (e.g. Austrian line) */
|
||||||
|
start_pbx_on_match(i, PLCI, HEADER_MSGNUM(CMSG));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue