mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 20:44:20 +00:00
Send 180 ringing even if we're going to send in-band if we're still in RING state...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1900,13 +1900,16 @@ static int sip_indicate(struct ast_channel *ast, int condition)
|
|||||||
switch(condition) {
|
switch(condition) {
|
||||||
case AST_CONTROL_RINGING:
|
case AST_CONTROL_RINGING:
|
||||||
if (ast->_state == AST_STATE_RING) {
|
if (ast->_state == AST_STATE_RING) {
|
||||||
if (!p->progress) {
|
/* Send 180 ringing no matter what */
|
||||||
transmit_response(p, "180 Ringing", &p->initreq);
|
transmit_response(p, "180 Ringing", &p->initreq);
|
||||||
|
if (!p->progress) {
|
||||||
p->ringing = 1;
|
p->ringing = 1;
|
||||||
if (!p->progressinband)
|
if (!p->progressinband)
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
/* Oops, we've sent progress tones. Let Asterisk do it instead */
|
/* Oops, we've sent progress tones. Some devices don't seem to
|
||||||
|
handle a 180 after a 183, so we'll go ahead and send the
|
||||||
|
ringback in-band, too. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user