[asterisk-commits] jdixon: branch jdixon/chan_usbradio-1.4 r140242 - /team/jdixon/chan_usbradio-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 26 16:18:45 CDT 2008


Author: jdixon
Date: Tue Aug 26 16:18:44 2008
New Revision: 140242

URL: http://svn.digium.com/view/asterisk?view=rev&rev=140242
Log:
Fixed problem with switching from monitor to transcieve for echolink channels 

Modified:
    team/jdixon/chan_usbradio-1.4/apps/app_rpt.c

Modified: team/jdixon/chan_usbradio-1.4/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/team/jdixon/chan_usbradio-1.4/apps/app_rpt.c?view=diff&rev=140242&r1=140241&r2=140242
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Tue Aug 26 16:18:44 2008
@@ -21,7 +21,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program 
- *  version 0.133 8/26/08 2055 EDT
+ *  version 0.134 8/26/08 2055 EDT
  * 
  * \author Jim Dixon, WB6NIL <jim at lambdatel.com>
  *
@@ -377,7 +377,7 @@
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.132  8/26/2008";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.134  8/26/2008";
 
 static char *app = "Rpt";
 
@@ -5767,6 +5767,13 @@
 			rpt_mutex_unlock(&myrpt->lock);
 			return 2; /* Already linked */
 		}
+		if (!strncasecmp(l->chan->name,"echolink",8))
+		{
+			l->mode = mode;
+			strncpy(myrpt->lastlinknode,node,MAXNODESTR - 1);
+			rpt_mutex_unlock(&myrpt->lock);
+			return 0;
+		}
 		reconnects = l->reconnects;
 		rpt_mutex_unlock(&myrpt->lock);
 		if (l->chan) ast_softhangup(l->chan, AST_SOFTHANGUP_DEV);




More information about the asterisk-commits mailing list