mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Don't send 180 "Ringing" after 183 Session Progres
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@794 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1045,8 +1045,12 @@ 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) {
|
||||||
transmit_response(p, "180 Ringing", &p->initreq);
|
if (!p->progress) {
|
||||||
break;
|
transmit_response(p, "180 Ringing", &p->initreq);
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
/* Oops, we've sent progress tones. Let Asterisk do it instead */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
case AST_CONTROL_BUSY:
|
case AST_CONTROL_BUSY:
|
||||||
|
|||||||
Reference in New Issue
Block a user