Archived
14
0
Fork 0

Oops... need to keep my trunk folder clean...

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8023 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mogorman 2006-01-12 19:15:20 +00:00
parent a570700f99
commit 57c4d01026

View file

@ -2680,9 +2680,8 @@ static int sip_indicate(struct ast_channel *ast, int condition)
switch(condition) {
case AST_CONTROL_RINGING:
if (ast->_state == AST_STATE_RING) {
if ((!ast_test_flag(p, SIP_PROGRESS_SENT) ||
(ast_test_flag(p, SIP_PROG_INBAND) == SIP_PROG_INBAND_NEVER)) &&
ast_test_flag(p, SIP_PROG_INBAND) != SIP_PROG_INBAND_YES) {
if (!ast_test_flag(p, SIP_PROGRESS_SENT) ||
(ast_test_flag(p, SIP_PROG_INBAND) == SIP_PROG_INBAND_NEVER)) {
/* Send 180 ringing if out-of-band seems reasonable */
transmit_response(p, "180 Ringing", &p->initreq);
ast_set_flag(p, SIP_RINGING);