[asterisk-commits] rmudgett: branch rmudgett/dahdi_ccss r240323 - /team/rmudgett/dahdi_ccss/chan...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 14 20:01:12 CST 2010


Author: rmudgett
Date: Thu Jan 14 20:01:10 2010
New Revision: 240323

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=240323
Log:
Supply the CCSS agent type for PRI to CC core.

Modified:
    team/rmudgett/dahdi_ccss/channels/chan_dahdi.c

Modified: team/rmudgett/dahdi_ccss/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/dahdi_ccss/channels/chan_dahdi.c?view=diff&rev=240323&r1=240322&r2=240323
==============================================================================
--- team/rmudgett/dahdi_ccss/channels/chan_dahdi.c (original)
+++ team/rmudgett/dahdi_ccss/channels/chan_dahdi.c Thu Jan 14 20:01:10 2010
@@ -5954,6 +5954,16 @@
 		*cp = (p->callprogress & CALLPROGRESS_FAX) ? 0 : 1;
 		ast_debug(1, "Reporting fax tone detection %sabled on %s\n", *cp ? "en" : "dis", chan->name);
 		break;
+	case AST_OPTION_CC_AGENT_TYPE:
+#if defined(HAVE_PRI)
+#if defined(HAVE_PRI_CCSS)
+		if (dahdi_sig_pri_lib_handles(p->sig)) {
+			ast_copy_string((char *) data, dahdi_pri_cc_type, *datalen);
+			break;
+		}
+#endif	/* defined(HAVE_PRI_CCSS) */
+#endif	/* defined(HAVE_PRI) */
+		return -1;
 	default:
 		return -1;
 	}




More information about the asterisk-commits mailing list