]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AMI SendText action: Fix to use correct thread to send the text.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 28 Jun 2018 17:07:01 +0000 (12:07 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 28 Jun 2018 18:20:30 +0000 (12:20 -0600)
commit7a238fe74d19c6d0ff663940acd6f3caea7dad0f
tree8d597db28158e34fd8bfaee735bd10b6bd814c98
parent5f517bacd0296fe8cf4c5e16a85a8fd999a7a4d9
AMI SendText action: Fix to use correct thread to send the text.

The AMI action was directly sending the text to the channel driver.
However, this makes two threads attempt to handle media and runs afowl of
CHECK_BLOCKING.

* Queue a read action to make the channel's media handling thread actually
send the text message.  This changes the AMI actions success/fail response
to just mean the text was queued to be sent not that the text actually got
sent.  The channel driver may not even support sending text messages.

ASTERISK-27943

Change-Id: I9dce343d8fa634ba5a416a1326d8a6340f98c379
include/asterisk/frame.h
main/channel.c
main/manager.c