fix never ending ringing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
c165196f71
commit
c3174c0319
|
@ -1529,7 +1529,14 @@ static int skinny_hangup(struct ast_channel *ast)
|
||||||
sub->parent->hookstate = SKINNY_ONHOOK;
|
sub->parent->hookstate = SKINNY_ONHOOK;
|
||||||
transmit_callstate(s, l->instance, SKINNY_ONHOOK, sub->callid);
|
transmit_callstate(s, l->instance, SKINNY_ONHOOK, sub->callid);
|
||||||
transmit_speaker_mode(s, SKINNY_SPEAKEROFF);
|
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);
|
ast_mutex_lock(&sub->lock);
|
||||||
sub->owner = NULL;
|
sub->owner = NULL;
|
||||||
ast->pvt->pvt = NULL;
|
ast->pvt->pvt = NULL;
|
||||||
|
|
Loading…
Reference in New Issue