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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 4 14:30:34 CDT 2008


Author: jdixon
Date: Thu Sep  4 14:30:34 2008
New Revision: 141089

URL: http://svn.digium.com/view/asterisk?view=rev&rev=141089
Log:
Fixed ic706 PL and mapping for parrot mode fuctions

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=141089&r1=141088&r2=141089
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Thu Sep  4 14:30:34 2008
@@ -22,7 +22,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program 
- *  version 0.140 9/4/08 
+ *  version 0.141 9/4/08 
  * 
  * \author Jim Dixon, WB6NIL <jim at lambdatel.com>
  *
@@ -380,7 +380,7 @@
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.140  9/4/2008";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.141  9/4/2008";
 
 static char *app = "Rpt";
 
@@ -6660,21 +6660,20 @@
                         rpt_telemetry(myrpt, ARB_ALPHA, (void *) "ATDIS");
                         return DC_COMPLETE;
 
-                case 21: /* Parrot Mode Disable */
+                case 21: /* Parrot Mode Enable */
 			birdbath(myrpt);
 			if (myrpt->p.parrotmode < 2)
 			{
-				myrpt->p.parrotmode = 0;
+				myrpt->p.parrotmode = 1;
 				rpt_telemetry(myrpt,COMPLETE,NULL);
 				return DC_COMPLETE;
 			}
 			break;
-
-                case 22: /* Parrot Mode Enable */
+                case 22: /* Parrot Mode Disable */
 			birdbath(myrpt);
 			if (myrpt->p.parrotmode < 2)
 			{
-				myrpt->p.parrotmode = 1;
+				myrpt->p.parrotmode = 0;
 				rpt_telemetry(myrpt,COMPLETE,NULL);
 				return DC_COMPLETE;
 			}
@@ -9041,104 +9040,154 @@
 	{
 	    case 670:
 			rv=0;
+			break;
 	    case 693:
 			rv=1;
+			break;
 	    case 719:
 			rv=2;
+			break;
 	    case 744:
 			rv=3;
+			break;
 	    case 770:
 			rv=4;
+			break;
 	    case 797:
 			rv=5;
+			break;
 	    case 825:
 			rv=6;
+			break;
 	    case 854:
 			rv=7;
+			break;
 	    case 885:
 			rv=8;
+			break;
 	    case 915:
 			rv=9;
+			break;
 	    case 948:
 			rv=10;
+			break;
 	    case 974:
 			rv=11;
+			break;
 	    case 1000:
 			rv=12;
+			break;
 	    case 1035:
 			rv=13;
+			break;
 	    case 1072:
 			rv=14;
+			break;
 	    case 1109:
 			rv=15;
+			break;
 	    case 1148:
 			rv=16;
+			break;
 	    case 1188:
 			rv=17;
+			break;
 	    case 1230:
 			rv=18;
+			break;
 	    case 1273:
 			rv=19;
+			break;
 	    case 1318:
 			rv=20;
+			break;
 	    case 1365:
 			rv=21;
+			break;
 	    case 1413:
 			rv=22;
+			break;
 	    case 1462:
 			rv=23;
+			break;
 	    case 1514:
 			rv=24;
+			break;
 	    case 1567:
 			rv=25;
+			break;
 	    case 1598:
 			rv=26;
+			break;
 	    case 1622:
 			rv=27;
+			break;
 	    case 1655:
 			rv=28;		
+			break;
 	    case 1679:
 			rv=29;
+			break;
 	    case 1713:
 			rv=30;
+			break;
 	    case 1738:
 			rv=31;
+			break;
 	    case 1773:
 			rv=32;
+			break;
 	    case 1799:
 			rv=33;
-        case 1835:
+			break;
+	    case 1835:
 			rv=34;
+			break;
 	    case 1862:
 			rv=35;
+			break;
 	    case 1899:
 			rv=36;
+			break;
 	    case 1928:
 			rv=37;
+			break;
 	    case 1966:
 			rv=38;
+			break;
 	    case 1995:
 			rv=39;
+			break;
 	    case 2035:
 			rv=40;
+			break;
 	    case 2065:
 			rv=41;
+			break;
 	    case 2107:
 			rv=42;
+			break;
 	    case 2181:
 			rv=43;
+			break;
 	    case 2257:
 			rv=44;
+			break;
 	    case 2291:
 			rv=45;
+			break;
 	    case 2336:
 			rv=46;
+			break;
 	    case 2418:
 			rv=47;
+			break;
 	    case 2503:
 			rv=48;
+			break;
 	    case 2541:
 			rv=49;
+			break;
 	}
 	if(debug > 1)
 		ast_log(LOG_NOTICE,"%i  rv=%i\n",i, rv);




More information about the asterisk-commits mailing list