From: Jeff Peeler Date: Mon, 12 Oct 2009 23:12:50 +0000 (+0000) Subject: Ensure ringing continues for branched calls after progress is received X-Git-Tag: 1.4.27-rc3~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3464ac40a700858934c476da598d350e7795bc6;p=thirdparty%2Fasterisk.git Ensure ringing continues for branched calls after progress is received While waiting for an answer, don't send progress for branched calls for which ringing was sent. (closes issue #15028) Reported by: fnordian git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@223804 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index a30b780bca..5a8f626799 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -654,8 +654,13 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l /* Setup early media if appropriate */ if (single && CAN_EARLY_BRIDGE(peerflags, in, c)) ast_rtp_early_bridge(in, c); - if (!ast_test_flag(outgoing, OPT_RINGBACK)) - ast_indicate(in, AST_CONTROL_PROGRESS); + if (!ast_test_flag(outgoing, OPT_RINGBACK)) { + if (single || (!single && !(*sentringing))) { + /* want progress to go through if it's a single legged call or it's a + * branched call and ringing has not been sent */ + ast_indicate(in, AST_CONTROL_PROGRESS); + } + } break; case AST_CONTROL_VIDUPDATE: if (option_verbose > 2)