res_parking: Add a verbose message when a channel is parked
authorJonathan Rose <jrose@digium.com>
Thu, 23 May 2013 21:11:18 +0000 (21:11 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 23 May 2013 21:11:18 +0000 (21:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389623 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/parking/parking_bridge.c

index 56c5839..31789d8 100644 (file)
@@ -29,6 +29,7 @@
 #include "asterisk/astobj2.h"
 #include "asterisk/features.h"
 #include "asterisk/say.h"
+#include "asterisk/term.h"
 
 struct ast_bridge_parking
 {
@@ -284,6 +285,11 @@ static int bridge_parking_push(struct ast_bridge_parking *self, struct ast_bridg
        /* Set this to the bridge pvt so that we don't have to refind the parked user associated with this bridge channel again. */
        bridge_channel->bridge_pvt = pu;
 
+       ast_verb(3, "Parking '" COLORIZE_FMT "' in '" COLORIZE_FMT "' at space %d\n",
+               COLORIZE(COLOR_BRMAGENTA, 0, ast_channel_name(bridge_channel->chan)),
+               COLORIZE(COLOR_BRMAGENTA, 0, self->lot->name),
+               pu->parking_space);
+
        return 0;
 }