aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a1bd9d7ab..36aa29466 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1045,8 +1045,12 @@ static int sip_indicate(struct ast_channel *ast, int condition)
switch(condition) {
case AST_CONTROL_RINGING:
if (ast->_state == AST_STATE_RING) {
- transmit_response(p, "180 Ringing", &p->initreq);
- break;
+ if (!p->progress) {
+ transmit_response(p, "180 Ringing", &p->initreq);
+ break;
+ } else {
+ /* Oops, we've sent progress tones. Let Asterisk do it instead */
+ }
}
return -1;
case AST_CONTROL_BUSY: