Index: apps/app_dial.c =================================================================== --- apps/app_dial.c (revision 235811) +++ apps/app_dial.c (working copy) @@ -794,6 +794,18 @@ /* Before processing channel, go ahead and check for forwarding */ ast_verb(3, "Now forwarding %s to '%s/%s' (thanks to %s)\n", in->name, tech, stuff, c->name); + manager_event(EVENT_FLAG_CALL, "Forward", + "Channel: %s\r\n" + "Uniqueid: %s\r\n" + "CallerIDNum: %s\r\n" + "CallerIDName: %s\r\n" + "Destination: %s/%s\r\n" + "Via: %s\r\n", + in->name, in->uniqueid, + in->cid.cid_num ? in->cid.cid_num : "unknown", + in->cid.cid_name ? in->cid.cid_name : "unknown", + tech, stuff, + c->name); /* If we have been told to ignore forwards, just set this channel to null and continue processing extensions normally */ if (ast_test_flag64(peerflags, OPT_IGNORE_FORWARDING)) { ast_verb(3, "Forwarding %s to '%s/%s' prevented.\n", in->name, tech, stuff); Index: apps/app_queue.c =================================================================== --- apps/app_queue.c (revision 235811) +++ apps/app_queue.c (working copy) @@ -3278,6 +3278,18 @@ /* Before processing channel, go ahead and check for forwarding */ ast_verb(3, "Now forwarding %s to '%s/%s' (thanks to %s)\n", inchan_name, tech, stuff, ochan_name); + manager_event(EVENT_FLAG_CALL, "Forward", + "Channel: %s\r\n" + "Uniqueid: %s\r\n" + "CallerIDNum: %s\r\n" + "CallerIDName: %s\r\n" + "Destination: %s/%s\r\n" + "Via: %s\r\n", + inchan_name, in->uniqueid, + in->cid.cid_num ? in->cid.cid_num : "unknown", + in->cid.cid_name ? in->cid.cid_name : "unknown", + tech, stuff, + ochan_name); /* Setup parameters */ o->chan = ast_request(tech, in->nativeformats, in, stuff, &status); if (!o->chan) {