[Asterisk-code-review] manager: hook event is not being raised (asterisk[15])

Kevin Harwell asteriskteam at digium.com
Wed Aug 16 09:41:51 CDT 2017


Hello Jenkins2, George Joseph, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/6229

to look at the new patch set (#2).

Change subject: manager: hook event is not being raised
......................................................................

manager: hook event is not being raised

When the iostream code went in it introduced a conditional that made it so the
hook event was not being raised even if a hook is present. This patch adds a
check to see if a hook is present in astman_append. If so then call into the
send_string function, which in turn raises the even for specified hook.

Also updated the ami hooks unit test, so the test could be automated.

ASTERISK-27200 #close

Change-Id: Iff37f02f9708195d8f23e68f959d6eab720e1e36
---
M main/manager.c
M tests/test_amihooks.c
2 files changed, 66 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/29/6229/2
-- 
To view, visit https://gerrit.asterisk.org/6229
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iff37f02f9708195d8f23e68f959d6eab720e1e36
Gerrit-Change-Number: 6229
Gerrit-PatchSet: 2
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170816/c8691ab5/attachment.html>


More information about the asterisk-code-review mailing list