Fix a bug that call clearing tones are not started when two other call parties hangup

Call scenario

  • DUT calls A and the call is answered
  • B calls DUT
  • Press R to accept B
  • A hangs up and then B hangs up There are no call clearing tones after a brief beep.

Cause handle_dialtone_timeout() calls chan_voicemngr_get_active_subchannel() to get the sub-channel and the sub[0] is returned and its state is ONHOOK. So the call clearing procedure is not started by handle_dialtone_timeout().

Solution Pass sub-channel instead of its parent (pvt) to handle_dialtone_timeout().

Also remove unused call state ANSWER.

Merge request reports

Loading