[Freeswitch-users] async, sendmsg, execute-app-name

royj at yandex.ru royj at yandex.ru
Tue Feb 2 15:54:43 MSK 2016


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?



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list