[asterisk-commits] jpeeler: trunk r203402 - in /trunk: channels/ configs/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 25 16:22:18 CDT 2009
Author: jpeeler
Date: Thu Jun 25 16:22:12 2009
New Revision: 203402
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203402
Log:
Remove some unnecessary code and update sample config file with respect to GR-303.
Modified:
trunk/channels/chan_dahdi.c
trunk/configs/chan_dahdi.conf.sample
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=203402&r1=203401&r2=203402
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Jun 25 16:22:12 2009
@@ -1057,7 +1057,7 @@
* \note The "setvar" strings read in from chan_dahdi.conf
*/
struct ast_variable *vars;
- int channel; /*!< Channel Number or CRV */
+ int channel; /*!< Channel Number */
int span; /*!< Span number */
time_t guardtime; /*!< Must wait this much time before using for new call */
int cid_signalling; /*!< CID signalling type bell202 or v23 */
@@ -4139,17 +4139,11 @@
return res;
}
- mysig = p->sig;
- if (p->outsigmod > -1)
- mysig = p->outsigmod;
-
switch (mysig) {
case 0:
/* Special pseudo -- automatically up*/
ast_setstate(ast, AST_STATE_UP);
break;
- case SIG_BRI:
- case SIG_BRI_PTMP:
case SIG_SS7:
case SIG_MFCR2:
/* We'll get it in a moment -- but use dialdest to store pre-setup_ack digits */
@@ -10190,7 +10184,7 @@
static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf, int reloading)
{
- /* Make a dahdi_pvt structure for this interface (or CRV if "pri" is specified) */
+ /* Make a dahdi_pvt structure for this interface */
struct dahdi_pvt *tmp = NULL, *tmp2, *prev = NULL;
char fn[80];
struct dahdi_bufferinfo bi;
@@ -10277,12 +10271,7 @@
tmp->span = p.spanno;
span = p.spanno - 1;
} else {
- if (channel == CHAN_PSEUDO)
- chan_sig = 0;
- else if ((chan_sig != SIG_FXOKS) && (chan_sig != SIG_FXSKS)) {
- ast_log(LOG_ERROR, "CRV's must use FXO/FXS Kewl Start (fxo_ks/fxs_ks) signalling only.\n");
- return NULL;
- }
+ chan_sig = 0;
}
if (analog_lib_handles(chan_sig, tmp->radio, tmp->oprmode)) {
@@ -10584,7 +10573,7 @@
p.debouncetime = conf->timing.debouncetime;
}
- /* dont set parms on a pseudo-channel (or CRV) */
+ /* dont set parms on a pseudo-channel */
if (tmp->subs[SUB_REAL].dfd >= 0)
{
res = ioctl(tmp->subs[SUB_REAL].dfd, DAHDI_SET_PARAMS, &p);
@@ -11036,7 +11025,6 @@
* data is ---v
* Dial(DAHDI/pseudo[/extension])
* Dial(DAHDI/<channel#>[c|r<cadance#>|d][/extension])
- * Dial(DAHDI/<trunk_group#>:<crv#>[c|r<cadance#>|d][/extension])
* Dial(DAHDI/(g|G|r|R)<group#(0-63)>[c|r<cadance#>|d][/extension])
*
* g - channel group allocation search forward
@@ -14629,7 +14617,7 @@
return __unload_module();
}
-static int build_channels(struct dahdi_chan_conf *conf, int iscrv, const char *value, int reload, int lineno, int *found_pseudo)
+static int build_channels(struct dahdi_chan_conf *conf, const char *value, int reload, int lineno, int *found_pseudo)
{
char *c, *chan;
int x, start, finish;
@@ -14757,12 +14745,11 @@
/* Create the interface list */
if (!strcasecmp(v->name, "channel")) {
- int iscrv = 0;
if (options & PROC_DAHDI_OPT_NOCHAN) {
ast_log(LOG_WARNING, "Channel '%s' ignored.\n", v->value);
continue;
}
- if (build_channels(confp, iscrv, v->value, reload, v->lineno, &found_pseudo))
+ if (build_channels(confp, v->value, reload, v->lineno, &found_pseudo))
return -1;
ast_log(LOG_DEBUG, "Channel '%s' configured.\n", v->value);
} else if (!strcasecmp(v->name, "buffers")) {
@@ -15660,7 +15647,7 @@
if (dahdichan[0]) {
/* The user has set 'dahdichan' */
/*< \todo pass proper line number instead of 0 */
- if (build_channels(confp, 0, dahdichan, reload, 0, &found_pseudo)) {
+ if (build_channels(confp, dahdichan, reload, 0, &found_pseudo)) {
return -1;
}
}
Modified: trunk/configs/chan_dahdi.conf.sample
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/configs/chan_dahdi.conf.sample?view=diff&rev=203402&r1=203401&r2=203402
==============================================================================
--- trunk/configs/chan_dahdi.conf.sample (original)
+++ trunk/configs/chan_dahdi.conf.sample Thu Jun 25 16:22:12 2009
@@ -19,7 +19,7 @@
[trunkgroups]
;
-; Trunk groups are used for NFAS or GR-303 connections.
+; Trunk groups are used for NFAS connections.
;
; Group: Defines a trunk group.
; trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
@@ -243,8 +243,6 @@
; fxo_ks: FXO (Kewl Start)
; pri_cpe: PRI signalling, CPE side
; pri_net: PRI signalling, Network side
-; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
-; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
; sf: SF (Inband Tone) Signalling
; sf_w: SF Wink
; sf_featd: SF Feature Group D (The fake, Adtran style, DTMF)
@@ -833,12 +831,6 @@
; Each channel consists of the channel number or range. It inherits the
; parameters that were specified above its declaration.
;
-; For GR-303, CRV's are created like channels except they must start with the
-; trunk group followed by a colon, e.g.:
-;
-; crv => 1:1
-; crv => 2:1-2,5-8
-;
;
;callerid="Green Phone"<(256) 428-6121>
;channel => 1
More information about the asterisk-commits
mailing list