Added early check for busy cause.

Patch 1255927
This commit is contained in:
MelwareDE 2005-08-12 17:56:06 +00:00
parent ed27fc4c76
commit c04b3f2af5
1 changed files with 16 additions and 0 deletions

View File

@ -1980,6 +1980,22 @@ static void capi_handle_info_indication(_cmsg *CMSG, unsigned int PLCI, unsigned
case 0x8003: /* PROGRESS */
cc_ast_verbose(3, 1, VERBOSE_PREFIX_2 "%s: info element PROGRESS\n",
* rain - some networks will indicate a USER BUSY cause, send
* PROGRESS message, and then send audio for a busy signal for
* a moment before dropping the line. This delays sending the
* busy to the end user, so we explicitly check for it here.
* FIXME: should have better CAUSE handling so that we can
* distinguish things like status responses and invalid IE
* content messages (from bad SetCallerID) from errors actually
* related to the call setup; then, we could always abort if we
* get a PROGRESS with a hangupcause set (safer?)
if (i->owner && i->owner->hangupcause == AST_CAUSE_USER_BUSY) {
pipe_cause_control(i, 1);
fr.frametype = AST_FRAME_CONTROL;
pipe_frame(i, &fr);