diff options
Diffstat (limited to 'src/amps/amps.c')
-rw-r--r-- | src/amps/amps.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amps/amps.c b/src/amps/amps.c index 74abbc4..61786b5 100644 --- a/src/amps/amps.c +++ b/src/amps/amps.c @@ -699,11 +699,9 @@ void amps_rx_signaling_tone(amps_t *amps, int tone, double quality) if (!tone) break; timer_stop(&trans->timer); - destroy_transaction(trans); - if (trans->callref) { + if (trans->callref) call_in_release(trans->callref, CAUSE_NORMAL); - trans->callref = 0; - } + destroy_transaction(trans); amps_go_idle(amps); break; case TRANS_CALL_MT_ALERT: |