[Asterisk-cvs] asterisk/channels chan_zap.c,1.340,1.341

markster at lists.digium.com markster at lists.digium.com
Mon Sep 13 19:06:10 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv15610/channels

Modified Files:
	chan_zap.c 
Log Message:
Add pulse dial support


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.340
retrieving revision 1.341
diff -u -d -r1.340 -r1.341
--- chan_zap.c	13 Sep 2004 22:14:34 -0000	1.340
+++ chan_zap.c	13 Sep 2004 23:07:49 -0000	1.341
@@ -203,6 +203,8 @@
 
 static int echotraining;
 
+static int pulse;
+
 static int echocanbridged = 0;
 
 static int busydetect = 0;
@@ -489,6 +491,7 @@
 	int callwaitrings;
 	int echocancel;
 	int echotraining;
+	int pulse;
 	int echocanbridged;
 	int echocanon;
 	int echobreak;
@@ -1669,6 +1672,9 @@
 		if (p->sig == SIG_FEATB) {
 			snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "M*%s#", c + p->stripmsd);
 		} else 
+ 		if(p->pulse)
+ 			snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "P%sw", c + p->stripmsd);
+ 		else
 			snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "T%sw", c + p->stripmsd);
 		if (p->echotraining && (strlen(p->dop.dialstr) > 4)) {
 			memset(p->echorest, 'w', sizeof(p->echorest) - 1);
@@ -6173,6 +6179,7 @@
 		tmp->callreturn = callreturn;
 		tmp->echocancel = echocancel;
 		tmp->echotraining = echotraining;
+		tmp->pulse = pulse;
 		tmp->echocanbridged = echocanbridged;
 		tmp->busydetect = busydetect;
 		tmp->busycount = busycount;
@@ -8944,6 +8951,8 @@
 				echotraining = 0;
 		} else if (!strcasecmp(v->name, "hidecallerid")) {
 			hidecallerid = ast_true(v->value);
+ 		} else if (!strcasecmp(v->name, "pulsedial")) {
+ 			pulse = ast_true(v->value);
 		} else if (!strcasecmp(v->name, "callreturn")) {
 			callreturn = ast_true(v->value);
 		} else if (!strcasecmp(v->name, "callwaiting")) {
@@ -9838,3 +9847,4 @@
 {
 	return ASTERISK_GPL_KEY;
 }
+




More information about the svn-commits mailing list