Fixed sending-complete value and added it for ALERT_REQ.
This commit is contained in:
parent
cbb8bc5011
commit
dbcb09c244
1
CHANGES
1
CHANGES
|
@ -6,6 +6,7 @@ HEAD
|
|||
- send local DATE/TIME with CONNECT when in NT-mode.
|
||||
- added transfergroup config option to set controllers allowed for transfer.
|
||||
- send Sending-Complete if overlap dialing is not used.
|
||||
- send Sending-Complete with ALERT_REQ.
|
||||
- fixed numberingplan for 'connectedṅumber'.
|
||||
- added devicestate option.
|
||||
|
||||
|
|
|
@ -850,6 +850,7 @@ static int pbx_capi_alert(struct ast_channel *c)
|
|||
{
|
||||
struct capi_pvt *i = CC_CHANNEL_PVT(c);
|
||||
unsigned char *facilityarray = NULL;
|
||||
char *sending_complete = "\x02\x01\x00";
|
||||
|
||||
if ((i->state != CAPI_STATE_INCALL) &&
|
||||
(i->state != CAPI_STATE_DID)) {
|
||||
|
@ -862,7 +863,10 @@ static int pbx_capi_alert(struct ast_channel *c)
|
|||
cc_qsig_add_call_alert_data(facilityarray, i, c);
|
||||
|
||||
if (capi_sendf(NULL, 0, CAPI_ALERT_REQ, i->PLCI, get_capi_MessageNumber(),
|
||||
"(()()()s())", facilityarray) != 0) {
|
||||
"(()()()ss)",
|
||||
facilityarray,
|
||||
sending_complete
|
||||
) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1318,7 +1322,7 @@ static int pbx_capi_call(struct ast_channel *c, char *idest, int timeout)
|
|||
} else {
|
||||
i->doOverlap = 0;
|
||||
called[0] = strlen(dest) + 1;
|
||||
sending_complete = "\x02\x00\x01";
|
||||
sending_complete = "\x02\x01\x00";
|
||||
}
|
||||
called[1] = 0x80;
|
||||
strncpy(&called[2], dest, sizeof(called) - 3);
|
||||
|
|
Loading…
Reference in New Issue