[svn-commits] bmd: branch group/newcdr r118879 - /team/group/newcdr/main/features.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed May 28 20:07:15 CDT 2008


Author: bmd
Date: Wed May 28 20:07:14 2008
New Revision: 118879

URL: http://svn.digium.com/view/asterisk?view=rev&rev=118879
Log:
added parking events

Modified:
    team/group/newcdr/main/features.c

Modified: team/group/newcdr/main/features.c
URL: http://svn.digium.com/view/asterisk/team/group/newcdr/main/features.c?view=diff&rev=118879&r1=118878&r2=118879
==============================================================================
--- team/group/newcdr/main/features.c (original)
+++ team/group/newcdr/main/features.c Wed May 28 20:07:14 2008
@@ -596,6 +596,9 @@
 
 	if (pu->parkingnum != -1)
 		snprintf(pu->parkingexten, sizeof(pu->parkingexten), "%d", x);
+
+	ast_cel_report_event(pu->chan, CEL_PARK_START, NULL, pu->parkinglot->name, peer);
+
 	manager_event(EVENT_FLAG_CALL, "ParkedCall",
 		"Exten: %s\r\n"
 		"Channel: %s\r\n"
@@ -2464,6 +2467,7 @@
 				set_c_e_p(chan, pu->context, pu->exten, pu->priority);
 			}
 			post_manager_event("ParkedCallTimeOut", pu);
+			ast_cel_report_event(pu->chan, CEL_PARK_END, NULL, "ParkedCallTimeOut", NULL);
 
 			ast_verb(2, "Timeout for %s parked on %d (%s). Returning to %s,%s,%d\n", pu->chan->name, pu->parkingnum, pu->parkinglot->name, pu->chan->context, pu->chan->exten, pu->chan->priority);
 			/* Start up the PBX, or hang them up */
@@ -2502,6 +2506,7 @@
 					if (f)
 						ast_frfree(f);
 					post_manager_event("ParkedCallGiveUp", pu);
+					ast_cel_report_event(pu->chan, CEL_PARK_END, NULL, "ParkedCallGiveUp", NULL);
 
 					/* There's a problem, hang them up*/
 					ast_verb(2, "%s got tired of being parked\n", chan->name);
@@ -2735,6 +2740,7 @@
 		} else
 			ast_log(LOG_WARNING, "Whoa, no parking context?\n");
 
+		ast_cel_report_event(pu->chan, CEL_PARK_END, NULL, "UnParkedCall", chan);
 		manager_event(EVENT_FLAG_CALL, "UnParkedCall",
 			"Exten: %s\r\n"
 			"Channel: %s\r\n"




More information about the svn-commits mailing list