[asterisk-commits] moy: branch moy/mfcr2-1.4 r182168 - /team/moy/mfcr2-1.4/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Mar 15 23:54:38 CDT 2009


Author: moy
Date: Sun Mar 15 23:54:35 2009
New Revision: 182168

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=182168
Log:
set MFCR2_CATEGORY only for R2 calls

Modified:
    team/moy/mfcr2-1.4/channels/chan_dahdi.c

Modified: team/moy/mfcr2-1.4/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/team/moy/mfcr2-1.4/channels/chan_dahdi.c?view=diff&rev=182168&r1=182167&r2=182168
==============================================================================
--- team/moy/mfcr2-1.4/channels/chan_dahdi.c (original)
+++ team/moy/mfcr2-1.4/channels/chan_dahdi.c Sun Mar 15 23:54:35 2009
@@ -6199,7 +6199,8 @@
 	i->alreadyhungup = 0;
 #endif
 #ifdef HAVE_OPENR2
-	pbx_builtin_setvar_helper(tmp, "MFCR2_CATEGORY", openr2_proto_get_category_string(i->mfcr2_recvd_category));
+	if (i->mfcr2call) 
+		pbx_builtin_setvar_helper(tmp, "MFCR2_CATEGORY", openr2_proto_get_category_string(i->mfcr2_recvd_category));
 #endif
 	/* clear the fake event in case we posted one before we had ast_channel */
 	i->fake_event = 0;




More information about the asterisk-commits mailing list