[asterisk-commits] jdixon: branch jdixon/chan_usbradio-1.4 r140409 - /team/jdixon/chan_usbradio-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 28 20:36:00 CDT 2008
Author: jdixon
Date: Thu Aug 28 20:36:00 2008
New Revision: 140409
URL: http://svn.digium.com/view/asterisk?view=rev&rev=140409
Log:
Allow no id recording
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=140409&r1=140408&r2=140409
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Thu Aug 28 20:36:00 2008
@@ -1,5 +1,6 @@
/* #define NEW_ASTERISK */
/* #define OLD_ASTERISK */
+
/*
* Asterisk -- An open source telephony toolkit.
*
@@ -21,7 +22,7 @@
/*! \file
*
* \brief Radio Repeater / Remote Base program
- * version 0.135 8/27/08 2055 EDT
+ * version 0.136 8/28/08 2055 EDT
*
* \author Jim Dixon, WB6NIL <jim at lambdatel.com>
*
@@ -377,7 +378,7 @@
/*! Stop the tones from playing */
void ast_playtones_stop(struct ast_channel *chan);
-static char *tdesc = "Radio Repeater / Remote Base version 0.135 8/27/2008";
+static char *tdesc = "Radio Repeater / Remote Base version 0.136 8/28/2008";
static char *app = "Rpt";
@@ -4076,9 +4077,12 @@
{
case ID:
case ID1:
- /* wait a bit */
- wait_interval(myrpt, (mytele->mode == ID) ? DLY_ID : DLY_TELEM,mychannel);
- res = telem_any(myrpt,mychannel, ident);
+ if (*ident)
+ {
+ /* wait a bit */
+ wait_interval(myrpt, (mytele->mode == ID) ? DLY_ID : DLY_TELEM,mychannel);
+ res = telem_any(myrpt,mychannel, ident);
+ }
imdone=1;
break;
@@ -13231,7 +13235,7 @@
}
ast_log(LOG_NOTICE,"Normal Repeater Init %s %s %s\n",rpt_vars[i].name, rpt_vars[i].remoterig, rpt_vars[i].freq);
}
- if (!rpt_vars[i].p.ident)
+ if (rpt_vars[i].p.ident && (!*rpt_vars[i].p.ident))
{
ast_log(LOG_WARNING,"Did not specify ident for node %s\n",rpt_vars[i].name);
ast_config_destroy(cfg);
More information about the asterisk-commits
mailing list