]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Addition of the FrameHook API (AKA AwesomeHooks)
authorDavid Vossel <dvossel@digium.com>
Mon, 20 Sep 2010 22:09:16 +0000 (22:09 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 20 Sep 2010 22:09:16 +0000 (22:09 +0000)
commitecabd15422ac0701187bdb8285c1996cdedda6a2
tree5bb985d158544b4f1949e1d0b93386c875b924e7
parent9cffa9cb3f7b56ceffab7eea5b475c91f4279843
Addition of the FrameHook API (AKA AwesomeHooks)

So far all our tools for viewing and manipulating media streams
within Asterisk have been entirely focused on audio.  That made
sense then, but is not scalable now.  The FrameHook API lets us
tap into and manipulate _ANY_ type of media or signaling passed
on a channel present today or in the future.  This tool is a step
in the direction of expanding Asterisk's boundaries and will help
generate some rather interesting applications in the future.

In addition to the FrameHook API, a simple dialplan function
exercising the api has been included as well.  This function
is called FRAME_TRACE().  FRAME_TRACE() allows for the internal
ast_frames read and written to a channel to be output.  Filters
can be placed on this function to debug only certain types of frames.
This function could be thought of as an internal way of doing
ast_frame packet captures.

Review: https://reviewboard.asterisk.org/r/925/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
funcs/func_frame_trace.c [new file with mode: 0644]
include/asterisk/channel.h
include/asterisk/framehook.h [new file with mode: 0644]
main/channel.c
main/framehook.c [new file with mode: 0644]