[Asterisk-cvs] asterisk/res res_adsi.c,1.6,1.7 res_musiconhold.c,1.23,1.24 res_parking.c,1.18,1.19
markster at lists.digium.com
markster at lists.digium.com
Tue Apr 6 18:17:05 CDT 2004
- Previous message: [Asterisk-cvs] asterisk/apps app_agi.c,1.33,1.34 app_disa.c,1.10,1.11 app_echo.c,1.8,1.9 app_festival.c,1.16,1.17 app_ices.c,1.2,1.3 app_intercom.c,1.15,1.16 app_meetme.c,1.21,1.22 app_milliwatt.c,1.6,1.7 app_mp3.c,1.14,1.15 app_nbscat.c,1.3,1.4 app_qcall.c,1.9,1.10 app_record.c,1.15,1.16 app_voicemail.c,1.73,1.74 app_zapbarge.c,1.2,1.3 app_zapscan.c,1.6,1.7
- Next message: [Asterisk-cvs] asterisk/channels chan_agent.c,1.68,1.69 chan_h323.c,1.39,1.40 chan_iax.c,1.54,1.55 chan_iax2.c,1.118,1.119 chan_local.c,1.25,1.26 chan_mgcp.c,1.41,1.42 chan_nbs.c,1.5,1.6 chan_phone.c,1.23,1.24 chan_sip.c,1.332,1.333 chan_skinny.c,1.34,1.35 chan_vpb.c,1.17,1.18 chan_zap.c,1.201,1.202
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv29122/res
Modified Files:
res_adsi.c res_musiconhold.c res_parking.c
Log Message:
Get rid of all that old needlock garbage now that we're using recursive mutexes
Index: res_adsi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_adsi.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- res_adsi.c 27 Mar 2004 06:50:12 -0000 1.6
+++ res_adsi.c 6 Apr 2004 22:17:32 -0000 1.7
@@ -367,15 +367,15 @@
ast_stopstream(chan);
- if (ast_set_write_format(chan, AST_FORMAT_ULAW, 1)) {
+ if (ast_set_write_format(chan, AST_FORMAT_ULAW)) {
ast_log(LOG_WARNING, "Unable to set write format to ULAW\n");
return -1;
}
- if (ast_set_read_format(chan, AST_FORMAT_ULAW, 1)) {
+ if (ast_set_read_format(chan, AST_FORMAT_ULAW)) {
ast_log(LOG_WARNING, "Unable to set read format to ULAW\n");
if (writeformat) {
- if (ast_set_write_format(chan, writeformat, 1))
+ if (ast_set_write_format(chan, writeformat))
ast_log(LOG_WARNING, "Unable to restore write format to %d\n", writeformat);
}
return -1;
@@ -385,9 +385,9 @@
chan->adsicpe = (chan->adsicpe & ~ADSI_FLAG_DATAMODE) | newdatamode;
if (writeformat)
- ast_set_write_format(chan, writeformat, 1);
+ ast_set_write_format(chan, writeformat);
if (readformat)
- ast_set_read_format(chan, readformat, 1);
+ ast_set_read_format(chan, readformat);
return res;
}
Index: res_musiconhold.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_musiconhold.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- res_musiconhold.c 27 Mar 2004 06:50:12 -0000 1.23
+++ res_musiconhold.c 6 Apr 2004 22:17:32 -0000 1.24
@@ -397,7 +397,7 @@
oldwfmt = moh->origwfmt;
free(moh);
if (chan) {
- if (oldwfmt && ast_set_write_format(chan, oldwfmt, 0))
+ if (oldwfmt && ast_set_write_format(chan, oldwfmt))
ast_log(LOG_WARNING, "Unable to restore channel '%s' to format %s\n", chan->name, ast_getformatname(oldwfmt));
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Stopped music on hold on %s\n", chan->name);
@@ -420,7 +420,7 @@
ast_mutex_unlock(&moh_lock);
if (res) {
res->origwfmt = chan->writeformat;
- if (ast_set_write_format(chan, AST_FORMAT_SLINEAR, 1)) {
+ if (ast_set_write_format(chan, AST_FORMAT_SLINEAR)) {
ast_log(LOG_WARNING, "Unable to set '%s' to signed linear format\n", chan->name);
moh_release(NULL, res);
res = NULL;
Index: res_parking.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_parking.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- res_parking.c 1 Mar 2004 20:31:25 -0000 1.18
+++ res_parking.c 6 Apr 2004 22:17:32 -0000 1.19
@@ -378,7 +378,7 @@
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Transferring %s to '%s' (context %s) priority 1\n"
,transferee->name, newext, transferer_real_context);
- if (ast_async_goto(transferee, transferer_real_context, newext, 1, 1))
+ if (ast_async_goto(transferee, transferer_real_context, newext, 1))
ast_log(LOG_WARNING, "Async goto fialed :(\n");
res = -1;
} else {
@@ -736,7 +736,7 @@
res = ast_answer(chan);
if (res)
ast_log(LOG_WARNING, "Unable to answer '%s'\n", chan->name);
- res = ast_queue_control(chan, AST_CONTROL_ANSWER, 0);
+ res = ast_queue_control(chan, AST_CONTROL_ANSWER);
if (res)
ast_log(LOG_WARNING, "Unable to queue answer on '%s'\n", chan->name);
res = ast_channel_masquerade(cur, chan);
- Previous message: [Asterisk-cvs] asterisk/apps app_agi.c,1.33,1.34 app_disa.c,1.10,1.11 app_echo.c,1.8,1.9 app_festival.c,1.16,1.17 app_ices.c,1.2,1.3 app_intercom.c,1.15,1.16 app_meetme.c,1.21,1.22 app_milliwatt.c,1.6,1.7 app_mp3.c,1.14,1.15 app_nbscat.c,1.3,1.4 app_qcall.c,1.9,1.10 app_record.c,1.15,1.16 app_voicemail.c,1.73,1.74 app_zapbarge.c,1.2,1.3 app_zapscan.c,1.6,1.7
- Next message: [Asterisk-cvs] asterisk/channels chan_agent.c,1.68,1.69 chan_h323.c,1.39,1.40 chan_iax.c,1.54,1.55 chan_iax2.c,1.118,1.119 chan_local.c,1.25,1.26 chan_mgcp.c,1.41,1.42 chan_nbs.c,1.5,1.6 chan_phone.c,1.23,1.24 chan_sip.c,1.332,1.333 chan_skinny.c,1.34,1.35 chan_vpb.c,1.17,1.18 chan_zap.c,1.201,1.202
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list