framehooks: Re-iterate if framehook provides different frame.

Framehooks can be used in a reactive manner to execute specific logic
when a frame is received with a certain type and payload. Since it is
possible for framehooks to provide frames it was possible for this
reactive framehook to be unaware of frames it is looking for.

This change makes it so that when framehooks return a modified frame
the code will now re-iterate (from the beginning) and call any
previous framehooks that have not provided a modified frame themselves.

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


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@404027 f38db490-d61c-443f-a65b-d21fe96a405b
res_sorcery_config: Output an error message when an object can't be created.

If object creation fails an error message will now be output with the id, type,
and configuration file.


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@404029 f38db490-d61c-443f-a65b-d21fe96a405b