Fix ringback on outbound skinny calls (bug #3295)
[asterisk/asterisk.git] / channels / chan_skinny.c
index cb2319c..1349d68 100755 (executable)
@@ -1715,7 +1715,7 @@ static int skinny_indicate(struct ast_channel *ast, int ind)
        }
        switch(ind) {
        case AST_CONTROL_RINGING:
-               if (ast->_state == AST_STATE_RINGING) {
+               if (ast->_state != AST_STATE_UP) {
                        if (!sub->progress) {           
                                transmit_tone(s, SKINNY_ALERT);
                                transmit_callstate(s, l->instance, SKINNY_RINGOUT, sub->callid);