async, sendmsg, execute-app-name
Hi, all I am working on nodejs outbound socket application and faced that if send to FreeSWITCH message like: sendmsg execute-app-name: playback execute-app-arg: silence_stream://2000 call-command: execute when there is already no corresponding channel (a caller hung up by itself and from FreesSWITCH received CHANNEL_HANGUP_COMPLETE, text/disconnect-notice;linger) FreesSWITCH answers: Content-Type: command/reply Reply-Text: +OK Logic of library and application such, that we know that an application is finished, when received CHANNEL_EXECUTE_COMPLETE. There are cases when a caller hung up and exactly in this moment application not yet knows about it and sends message 'call-command: execute' and then there is javascript Promise in pending state, seems like forever. Is there any chance to understand in the answer that the channel does not exist?
participants (1)
-
royj@yandex.ru