fix never ending ringing
authorJeremy McNamara <jj@nufone.net>
Sun, 14 Sep 2003 01:50:00 +0000 (01:50 +0000)
committerJeremy McNamara <jj@nufone.net>
Sun, 14 Sep 2003 01:50:00 +0000 (01:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 083a4a6..40621d5 100755 (executable)
@@ -1529,7 +1529,14 @@ static int skinny_hangup(struct ast_channel *ast)
                sub->parent->hookstate = SKINNY_ONHOOK;
                transmit_callstate(s, l->instance, SKINNY_ONHOOK, sub->callid);
                transmit_speaker_mode(s, SKINNY_SPEAKEROFF); 
-       }
+       } else if ((sub->parent->type = TYPE_LINE) && (sub->parent->hookstate == SKINNY_ONHOOK)) {
+               transmit_callstate(s, l->instance, SKINNY_ONHOOK, sub->callid);
+               transmit_speaker_mode(s, SKINNY_SPEAKEROFF); 
+               transmit_ringer_mode(s, SKINNY_RING_OFF);
+               transmit_tone(s, SKINNY_SILENCE);
+       } 
+               
+
     ast_mutex_lock(&sub->lock);
     sub->owner = NULL;
     ast->pvt->pvt = NULL;