[svn-commits] murf: branch murf/newcdr r63904 - in /team/murf/newcdr: channels/ include/ast...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri May 11 09:32:20 MST 2007


Author: murf
Date: Fri May 11 11:32:20 2007
New Revision: 63904

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63904
Log:
get rid of CDR mentions in cel.h; update the xfer events in chan_sip.

Modified:
    team/murf/newcdr/channels/chan_sip.c
    team/murf/newcdr/include/asterisk/cel.h

Modified: team/murf/newcdr/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/murf/newcdr/channels/chan_sip.c?view=diff&rev=63904&r1=63903&r2=63904
==============================================================================
--- team/murf/newcdr/channels/chan_sip.c (original)
+++ team/murf/newcdr/channels/chan_sip.c Fri May 11 11:32:20 2007
@@ -14618,6 +14618,8 @@
 	} else {
 		/* Transfer succeeded! */
 
+		ast_cel_report_event(target.chan1, CEL_ATTENDEDTRANSFER, NULL, target.chan2);
+		
 		/* Tell transferer that we're done. */
 		transmit_notify_with_sipfrag(transferer, seqno, "200 OK", TRUE);
 		append_history(transferer, "Xfer", "Refer succeeded");
@@ -14943,8 +14945,8 @@
 		/* Success  - we have a new channel */
 		if (option_debug > 2)
 			ast_log(LOG_DEBUG, "%s transfer succeeded. Telling transferer.\n", p->refer->attendedtransfer? "Attended" : "Blind");
-		ast_cel_report_event(current.chan1, CEL_TRANSFER, NULL, current.chan2);
-
+
+		ast_cel_report_event(current.chan1, p->refer->attendedtransfer? CEL_ATTENDEDTRANSFER : CEL_BLINDTRANSFER, NULL, current.chan2);
 		transmit_notify_with_sipfrag(p, seqno, "200 Ok", TRUE);
 		if (p->refer->localtransfer)
 			p->refer->status = REFER_200OK;

Modified: team/murf/newcdr/include/asterisk/cel.h
URL: http://svn.digium.com/view/asterisk/team/murf/newcdr/include/asterisk/cel.h?view=diff&rev=63904&r1=63903&r2=63904
==============================================================================
--- team/murf/newcdr/include/asterisk/cel.h (original)
+++ team/murf/newcdr/include/asterisk/cel.h Fri May 11 11:32:20 2007
@@ -90,7 +90,7 @@
    and it wasn't necessary anyway; the 4 or so members that it might hold
    were easily added to the event arglists */
 
-/*! \brief Return TRUE if CDR subsystem is enabled */
+/*! \brief Return TRUE if CEL subsystem is enabled */
 int check_cel_enabled(void);
 
 /*! \brief Allocate a CEL record 
@@ -142,4 +142,4 @@
 int ast_cel_engine_reload(void);
 
 
-#endif /* _ASTERISK_CDR_H */
+#endif /* _ASTERISK_CEL_H */



More information about the svn-commits mailing list