fix hangup issue

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@657 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2009-02-10 16:41:03 +00:00
parent 20049ab859
commit c588a513db
1 changed files with 1 additions and 1 deletions

View File

@ -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);