fix hangup issue
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@657 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
20049ab859
commit
c588a513db
|
@ -443,7 +443,7 @@ static __inline__ void state_advance(zap_channel_t *zchan)
|
|||
break;
|
||||
case ZAP_CHANNEL_STATE_HANGUP:
|
||||
{
|
||||
if (call && !zap_test_flag(zchan, ZAP_CHANNEL_OUTBOUND)) {
|
||||
if (call) {
|
||||
pri_hangup(isdn_data->spri.pri, call, zchan->caller_data.hangup_cause);
|
||||
pri_destroycall(isdn_data->spri.pri, call);
|
||||
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_DOWN);
|
||||
|
|
Loading…
Reference in New Issue