EvoluxBR/greenswitch

Call gets stuck if no timeout is specified and there's command waiting for response

italorossi opened this issue · 0 comments

An example of that is when you do a play_and_get_digits and the caller hangup in the middle of this function with linger turned on. FreeSWITCH will reply with a disconnect-notice with a linger time of -1 (infinity) and if we sent a playback there's no response back.

That causes the socket to remain open at FreeSWITCH side and the greenlet wait forever for playback response (async_response.get(block=True)).