[svn-commits] branch crichter/0.4.0 r34340 - in /team/crichter/0.4.0/channels: ./ misdn/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 15 13:39:23 MST 2006


Author: crichter
Date: Thu Jun 15 15:39:22 2006
New Revision: 34340

URL: http://svn.digium.com/view/asterisk?rev=34340&view=rev
Log:
added faxdetect config parameter like in zapata.conf

Modified:
    team/crichter/0.4.0/channels/chan_misdn.c
    team/crichter/0.4.0/channels/misdn/chan_misdn_config.h
    team/crichter/0.4.0/channels/misdn_config.c

Modified: team/crichter/0.4.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.4.0/channels/chan_misdn.c?rev=34340&r1=34339&r2=34340&view=diff
==============================================================================
--- team/crichter/0.4.0/channels/chan_misdn.c (original)
+++ team/crichter/0.4.0/channels/chan_misdn.c Thu Jun 15 15:39:22 2006
@@ -1360,7 +1360,9 @@
 	misdn_cfg_get( port, MISDN_CFG_FAR_ALERTING, &ch->far_alerting, sizeof(int));
 
 	misdn_cfg_get( port, MISDN_CFG_ALLOWED_BEARERS, &ch->allowed_bearers, BUFFERSIZE);
-	
+
+	char faxdetect[BUFFERSIZE+1];
+	misdn_cfg_get( port, MISDN_CFG_FAXDETECT, faxdetect, BUFFERSIZE);
 	
 	int hdlc=0;
 	misdn_cfg_get( port, MISDN_CFG_HDLC, &hdlc, sizeof(int));
@@ -1427,6 +1429,9 @@
 	
 	if ( orig  == ORG_AST) {
 		misdn_cfg_get( port, MISDN_CFG_TE_CHOOSE_CHANNEL, &(bc->te_choose_channel), sizeof(int));
+
+		if (!strcasecmp(faxdetect,"outgoing")||	!strcasecmp(faxdetect,"both"))
+			ch->faxdetect=1;
 		
 		{
 			char callerid[BUFFERSIZE+1];
@@ -1453,6 +1458,8 @@
 		
 		
 	} else { /** ORIGINATOR MISDN **/
+		if (!strcasecmp(faxdetect,"incoming")||	!strcasecmp(faxdetect,"both"))
+			ch->faxdetect=1;
 	
 		misdn_cfg_get( port, MISDN_CFG_CPNDIALPLAN, &bc->cpnnumplan, sizeof(int));
 		debug_numplan(port, bc->cpnnumplan,"CTON");

Modified: team/crichter/0.4.0/channels/misdn/chan_misdn_config.h
URL: http://svn.digium.com/view/asterisk/team/crichter/0.4.0/channels/misdn/chan_misdn_config.h?rev=34340&r1=34339&r2=34340&view=diff
==============================================================================
--- team/crichter/0.4.0/channels/misdn/chan_misdn_config.h (original)
+++ team/crichter/0.4.0/channels/misdn/chan_misdn_config.h Thu Jun 15 15:39:22 2006
@@ -57,7 +57,8 @@
 	MISDN_CFG_CALLGROUP,           /* ast_group_t */
 	MISDN_CFG_PICKUPGROUP,         /* ast_group_t */
 	MISDN_CFG_MAX_IN,              /* int */
-	MISDN_CFG_MAX_OUT,              /* int */
+	MISDN_CFG_MAX_OUT,             /* int */
+	MISDN_CFG_FAXDETECT,           /* char[] */
 	MISDN_CFG_MSNS,                /* char[] */
 	MISDN_CFG_PTP,                 /* int (bool) */
 	MISDN_CFG_LAST,

Modified: team/crichter/0.4.0/channels/misdn_config.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.4.0/channels/misdn_config.c?rev=34340&r1=34339&r2=34340&view=diff
==============================================================================
--- team/crichter/0.4.0/channels/misdn_config.c (original)
+++ team/crichter/0.4.0/channels/misdn_config.c Thu Jun 15 15:39:22 2006
@@ -119,6 +119,7 @@
 	{ "pickupgroup", MISDN_CFG_PICKUPGROUP, MISDN_CTYPE_ASTGROUP, NO_DEFAULT, NONE },
 	{ "max_incoming", MISDN_CFG_MAX_IN, MISDN_CTYPE_INT, "-1", NONE },
 	{ "max_outgoing", MISDN_CFG_MAX_OUT, MISDN_CTYPE_INT, "-1", NONE },
+	{ "faxdetect", MISDN_CFG_FAXDETECT, MISDN_CTYPE_STR, "no", NONE },
 	{ "msns", MISDN_CFG_MSNS, MISDN_CTYPE_MSNLIST, NO_DEFAULT, NONE }
 };
 



More information about the svn-commits mailing list