Progress in NT-mode now also send 'in-band info available'.

This commit is contained in:
MelwareDE 2007-09-01 20:55:52 +00:00
parent 3d81c6e7e9
commit a5b21aaf06
1 changed files with 7 additions and 0 deletions

View File

@ -4291,6 +4291,7 @@ static int pbx_capi_realhangup(struct ast_channel *c, char *param)
static int pbx_capi_signal_progress(struct ast_channel *c, char *param)
{
struct capi_pvt *i = CC_CHANNEL_PVT(c);
unsigned char fac[] = "\x04\x1e\x02\x82\x88"; /* In-Band info available */
if ((i->state != CAPI_STATE_DID) && (i->state != CAPI_STATE_INCALL)) {
cc_log(LOG_DEBUG, "wrong channel state to signal PROGRESS\n");
@ -4314,6 +4315,12 @@ static int pbx_capi_signal_progress(struct ast_channel *c, char *param)
cc_select_b(i, NULL);
/* send facility for Progress 'In-Band info available' */
capi_sendf(NULL, 0, CAPI_INFO_REQ, i->PLCI, get_capi_MessageNumber(),
"()(()()()s)",
fac
);
return 0;
}