espressif / esp-adf-libs

61 stars 41 forks source link

VOIP SIP calls doesn't hang-up #35

Closed SinnoTogo closed 3 months ago

SinnoTogo commented 3 months ago

Hello:

Here my setup: esp-idf: V5.1.1 esp-adf: V2.6 Hardware: ESP32-S3-KORVO-2 3.1 PBX: Asterisks running on a rapsberry pi

In general the system works, I can make and receive calls with audio.

But I have problems to hang up calls.

If the call is hang-up by the ESP32 then everything is OK If the call is hang-up by the other end (ie. Microsip or similar) then the ESP32 doesn't hang-up until I explicitly send the esp_rtc_bye command (ie. by ussing a button press on the board).

Here the SIP flow diagram for a case where the end device hangs-up: image

As you can see the BYE reques is sent by Asteriks but the ESP32 never procesees it.

Next a SIP flow diagra for a case where the ESP32 hangs-up:

image

In this case the correct sequence is followed and then the call ends properly.

Any idea or hint how to solve the issue?

Thanks!