[Asterisk-cvs] asterisk/apps app_rpt.c,1.15,1.16

jim at lists.digium.com jim at lists.digium.com
Wed Jul 14 02:09:09 CDT 2004


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

Modified Files:
	app_rpt.c 
Log Message:
Made changes to app_rpt.c and rpt.conf, including fully user-definable DTMF
command definitions, and an improved ID methodology.


Index: app_rpt.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_rpt.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- app_rpt.c	29 Jun 2004 04:43:20 -0000	1.15
+++ app_rpt.c	14 Jul 2004 05:54:54 -0000	1.16
@@ -3,11 +3,14 @@
  * Asterisk -- A telephony toolkit for Linux.
  *
  * Radio Repeater / Remote Base program 
- *  version 0.12 6/28/04
+ *  version 0.13 7/12/04
  * 
+ * See http://www.zapatatelephony.org/app_rpt.html
+ *
  * Copyright (C) 2002-2004, Jim Dixon, WB6NIL
  *
  * Jim Dixon, WB6NIL <jim at lambdatel.com>
[...2830 lines suppressed...]
+		if (rem_totx && (!myrpt->remotetx)) /* Remote base radio TX key */
 		{
 			myrpt->remotetx = 1;
 			ast_indicate(myrpt->txchannel,AST_CONTROL_RADIO_KEY);
 		}
-		if ((!rem_totx) && myrpt->remotetx)
+		if ((!rem_totx) && myrpt->remotetx) /* Remote base radio TX unkey */
 		{
 			myrpt->remotetx = 0;
 			ast_indicate(myrpt->txchannel,AST_CONTROL_RADIO_UNKEY);
@@ -2997,7 +3816,8 @@
 			}
 			else if (f->frametype == AST_FRAME_TEXT)
 			{
-				if (handle_remote_data(myrpt,f->data,chan) == -1)
+				myrpt->remchannel = chan; /* Save copy of channel */
+				if (handle_remote_data(myrpt,f->data) == -1)
 				{
 					if (debug) printf("@@@@ rpt:Hung Up\n");
 					ast_frfree(f);




More information about the svn-commits mailing list