drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
171 stars 119 forks source link

Freeswitch channel not closing #96

Open ellisa1419 opened 1 year ago

ellisa1419 commented 1 year ago

Hello, We are following closely this example https://github.com/drachtio/drachtio-freeswitch-modules/blob/f656f198b632c2cfa01c0605e1957a7831bb48d9/examples/dialogflow.js

We have open freeswitch channels even after issuing the dialog.destroy() and endpoint.destroy() commands on the dialogflow modules.

1) Should we issue dialogflow_stop for every dialogflow_start ? 2) How do we know if the dialogflow process is on going before destroying the endpoint? 3) Does destroying endpoint also kills the dialogflow?

We are using ansible installation from https://github.com/drachtio/ansible-role-fsmrf.

Your help is highly appreciated @davehorton

davehorton commented 1 year ago

can you create the simplest possible flow that leaves a channel open after call completes and provide the freeswitch log file at debug level?

ellisa1419 commented 1 year ago

drachtio-logs.txt freeswitch-stuck-session.txt Sure, please find attached logs for freeswitch and drachtio

davehorton commented 1 year ago

can you show me your code for the dialog.on('destroy') handler? Feel free to send privately if you wish