@ -1347,7 +1347,7 @@ static int analogsub_to_dahdisub(enum analog_sub analogsub)
* \ brief release all members on the doomed pris list
* \ since 13.0
*
* Called p riodically by the monitor threads to release spans marked for
* Called p e riodically by the monitor threads to release spans marked for
* removal .
*/
static void release_doomed_pris ( void )
@ -3255,7 +3255,7 @@ static void my_pri_make_cc_dialstring(void *priv, char *buf, size_t buf_size)
AST_APP_ARG ( group ) ; /* channel/group token */
//AST_APP_ARG(ext); /* extension token */
//AST_APP_ARG(opts); /* options token */
//AST_APP_ARG(other); /* Any rem ining unused arguments */
//AST_APP_ARG(other); /* Any rem a ining unused arguments */
) ;
pvt = priv ;
@ -5469,7 +5469,7 @@ static int dahdi_call(struct ast_channel *ast, const char *rdest, int timeout)
AST_APP_ARG ( group ) ; /* channel/group token */
AST_APP_ARG ( ext ) ; /* extension token */
//AST_APP_ARG(opts); /* options token */
AST_APP_ARG ( other ) ; /* Any rem ining unused arguments */
AST_APP_ARG ( other ) ; /* Any rem a ining unused arguments */
) ;
ast_mutex_lock ( & p - > lock ) ;
@ -6560,7 +6560,7 @@ static int dahdi_hangup(struct ast_channel *ast)
p - > subs [ SUB_REAL ] . inthreeway = 0 ;
}
} else if ( idx = = SUB_CALLWAIT ) {
/* Ditch the holding callwait call, and immediately make it availab e */
/* Ditch the holding callwait call, and immediately make it availab l e */
if ( p - > subs [ SUB_CALLWAIT ] . inthreeway ) {
/* This is actually part of a three way, placed on hold. Place the third part
on music on hold now */
@ -6979,7 +6979,7 @@ static int dahdi_setoption(struct ast_channel *chan, int option, void *data, int
( * cp = = 2 ) ? " MATE " : " ON " , ( int ) * cp , ast_channel_name ( chan ) ) ;
dahdi_ec_disable ( p ) ;
/* otherwise, turn it on */
if ( ! p - > didtdd ) { /* if haven t done it yet */
if ( ! p - > didtdd ) { /* if haven ' t done it yet */
unsigned char mybuf [ 41000 ] ; /*! \todo XXX This is an abuse of the stack!! */
unsigned char * buf ;
int size , res , fd , len ;
@ -8696,7 +8696,7 @@ winkflashdone:
( p - > polarity = = POLARITY_REV ) & &
( ( ast_channel_state ( ast ) = = AST_STATE_UP ) | | ( ast_channel_state ( ast ) = = AST_STATE_RING ) ) ) {
/* Added log_debug information below to provide a better indication of what is going on */
ast_debug ( 1 , " Polarity Reversal event occur ed - DEBUG 1: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 " \n " , p - > channel , ast_channel_state ( ast ) , p - > polarity , p - > answeronpolarityswitch , p - > hanguponpolarityswitch , p - > polarityonanswerdelay , ast_tvdiff_ms ( ast_tvnow ( ) , p - > polaritydelaytv ) ) ;
ast_debug ( 1 , " Polarity Reversal event occur r ed - DEBUG 1: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 " \n " , p - > channel , ast_channel_state ( ast ) , p - > polarity , p - > answeronpolarityswitch , p - > hanguponpolarityswitch , p - > polarityonanswerdelay , ast_tvdiff_ms ( ast_tvnow ( ) , p - > polaritydelaytv ) ) ;
if ( ast_tvdiff_ms ( ast_tvnow ( ) , p - > polaritydelaytv ) > p - > polarityonanswerdelay ) {
ast_debug ( 1 , " Polarity Reversal detected and now Hanging up on channel %d \n " , p - > channel ) ;
@ -8710,7 +8710,7 @@ winkflashdone:
ast_debug ( 1 , " Ignoring Polarity switch to IDLE on channel %d, state %u \n " , p - > channel , ast_channel_state ( ast ) ) ;
}
/* Added more log_debug information below to provide a better indication of what is going on */
ast_debug ( 1 , " Polarity Reversal event occur ed - DEBUG 2: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 " \n " , p - > channel , ast_channel_state ( ast ) , p - > polarity , p - > answeronpolarityswitch , p - > hanguponpolarityswitch , p - > polarityonanswerdelay , ast_tvdiff_ms ( ast_tvnow ( ) , p - > polaritydelaytv ) ) ;
ast_debug ( 1 , " Polarity Reversal event occur r ed - DEBUG 2: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 " \n " , p - > channel , ast_channel_state ( ast ) , p - > polarity , p - > answeronpolarityswitch , p - > hanguponpolarityswitch , p - > polarityonanswerdelay , ast_tvdiff_ms ( ast_tvnow ( ) , p - > polaritydelaytv ) ) ;
break ;
default :
ast_debug ( 1 , " Dunno what to do with event %d on channel %d \n " , res , p - > channel ) ;
@ -8875,7 +8875,7 @@ static struct ast_frame *dahdi_read(struct ast_channel *ast)
/*
* Check to see if the channel is still associated with the same
* private structure . While the Asterisk channel was unlocked
* the following events may have occur ed:
* the following events may have occur r ed:
*
* 1 ) A masquerade may have associated the channel with another
* technology or private structure .
@ -12141,7 +12141,7 @@ static void *do_monitor(void *data)
int energy ;
struct timeval now ;
/* State machine dtmfcid_holdoff_state allows for the line to settle
* before checking ag in for dtmf energy . Presently waits for 500 mS before checking again
* before checking ag a in for dtmf energy . Presently waits for 500 mS before checking again
*/
if ( 1 = = i - > dtmfcid_holdoff_state ) {
gettimeofday ( & i - > dtmfcid_delay , NULL ) ;
@ -13190,7 +13190,7 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
if ( tmp - > use_smdi ) {
tmp - > smdi_iface = ast_smdi_interface_find ( conf - > smdi_port ) ;
if ( ! ( tmp - > smdi_iface ) ) {
ast_log ( LOG_ERROR , " Invalid SMDI port spec fied, disabling SMDI support\n " ) ;
ast_log ( LOG_ERROR , " Invalid SMDI port spec i fied, disabling SMDI support\n " ) ;
tmp - > use_smdi = 0 ;
}
}
@ -13831,7 +13831,7 @@ static struct dahdi_pvt *determine_starting_point(const char *data, struct dahdi
AST_APP_ARG ( group ) ; /* channel/group token */
//AST_APP_ARG(ext); /* extension token */
//AST_APP_ARG(opts); /* options token */
AST_APP_ARG ( other ) ; /* Any rem ining unused arguments */
AST_APP_ARG ( other ) ; /* Any rem a ining unused arguments */
) ;
/*
@ -15171,7 +15171,7 @@ static char *handle_pri_destroy_span(struct ast_cli_entry *e, int cmd,
e - > command = " pri destroy span " ;
e - > usage =
" Usage: pri destroy span <span> \n "
" Dest o rys D-channel of span and its B-channels.\n "
" Dest ro ys D-channel of span and its B-channels.\n "
" DON'T USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING. \n " ;
return NULL ;
case CLI_GENERATE :
@ -15750,7 +15750,7 @@ static char *handle_mfcr2_destroy_link(struct ast_cli_entry *e, int cmd, struct
e - > command = " mfcr2 destroy link " ;
e - > usage =
" Usage: mfcr2 destroy link <index-number> \n "
" Dest o rys D-channel of link and its B-channels.\n "
" Dest ro ys D-channel of link and its B-channels.\n "
" DON'T USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING. \n " ;
return NULL ;
case CLI_GENERATE :
@ -18510,7 +18510,7 @@ static int dahdi_datetime_send_option(const char *value)
/*! process_dahdi() - ignore keyword 'channel' and similar */
# define PROC_DAHDI_OPT_NOCHAN (1 << 0)
/*! process_dahdi() - No warnings on non-existing co figuration keywords */
/*! process_dahdi() - No warnings on non-existing co n figuration keywords */
# define PROC_DAHDI_OPT_NOWARN (1 << 1)
static void parse_busy_pattern ( struct ast_variable * v , struct ast_dsp_busy_pattern * busy_cadence )
@ -20137,7 +20137,7 @@ static int setup_dahdi_int(int reload, struct dahdi_chan_conf *default_conf, str
while ( c & & ( i < SIG_PRI_NUM_DCHANS ) ) {
dchannels [ i ] = atoi ( c + 1 ) ;
if ( dchannels [ i ] < 0 ) {
ast_log ( LOG_WARNING , " D-channel for trunk group %d must be a pos t iive number at line %d of chan_dahdi.conf\n " , trunkgroup , v - > lineno ) ;
ast_log ( LOG_WARNING , " D-channel for trunk group %d must be a pos it ive number at line %d of chan_dahdi.conf\n " , trunkgroup , v - > lineno ) ;
} else
i + + ;
c = strchr ( c + 1 , ' , ' ) ;
@ -20169,13 +20169,13 @@ static int setup_dahdi_int(int reload, struct dahdi_chan_conf *default_conf, str
} else
ast_verb ( 2 , " Mapped span %d to trunk group %d (logical span %d) \n " , spanno , trunkgroup , logicalspan ) ;
} else
ast_log ( LOG_WARNING , " Logical span must be a pos tive number, or '0' (for unspecified) at line %d of chan_dahdi.conf\n " , v - > lineno ) ;
ast_log ( LOG_WARNING , " Logical span must be a pos i tive number, or '0' (for unspecified) at line %d of chan_dahdi.conf\n " , v - > lineno ) ;
} else
ast_log ( LOG_WARNING , " Trunk group must be a pos tive number at line %d of chan_dahdi.conf\n " , v - > lineno ) ;
ast_log ( LOG_WARNING , " Trunk group must be a pos i tive number at line %d of chan_dahdi.conf\n " , v - > lineno ) ;
} else
ast_log ( LOG_WARNING , " Missing trunk group for span map at line %d of chan_dahdi.conf \n " , v - > lineno ) ;
} else
ast_log ( LOG_WARNING , " Span number must be a pos tive integer at line %d of chan_dahdi.conf\n " , v - > lineno ) ;
ast_log ( LOG_WARNING , " Span number must be a pos i tive integer at line %d of chan_dahdi.conf\n " , v - > lineno ) ;
} else {
ast_log ( LOG_NOTICE , " Ignoring unknown keyword '%s' in trunkgroups \n " , v - > name ) ;
}