aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-27 07:41:33 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-27 07:41:33 +0000
commite8980010c274e1d520f476361a24af3c6ae23479 (patch)
tree2a86ac502758423f0858c803e410b23321023d6e /channels/chan_iax.c
parent40646976f71b9598f3aaf3fa6b5ee642fb1924cd (diff)
More read/write lock fixes in various modules
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2574 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax.c')
-rwxr-xr-xchannels/chan_iax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_iax.c b/channels/chan_iax.c
index 2829c2912..e85d34876 100755
--- a/channels/chan_iax.c
+++ b/channels/chan_iax.c
@@ -3798,7 +3798,7 @@ retryowner:
orignative = iaxs[fr.callno]->owner->nativeformats;
iaxs[fr.callno]->owner->nativeformats = f.subclass;
if (iaxs[fr.callno]->owner->readformat)
- ast_set_read_format(iaxs[fr.callno]->owner, iaxs[fr.callno]->owner->readformat);
+ ast_set_read_format(iaxs[fr.callno]->owner, iaxs[fr.callno]->owner->readformat, 0);
iaxs[fr.callno]->owner->nativeformats = orignative;
ast_mutex_unlock(&iaxs[fr.callno]->owner->lock);
}
@@ -3981,9 +3981,9 @@ retryowner:
ast_verbose(VERBOSE_PREFIX_3 "Format for call is %s\n", ast_getformatname(iaxs[fr.callno]->owner->nativeformats));
/* Setup read/write formats properly. */
if (iaxs[fr.callno]->owner->writeformat)
- ast_set_write_format(iaxs[fr.callno]->owner, iaxs[fr.callno]->owner->writeformat);
+ ast_set_write_format(iaxs[fr.callno]->owner, iaxs[fr.callno]->owner->writeformat, 0);
if (iaxs[fr.callno]->owner->readformat)
- ast_set_read_format(iaxs[fr.callno]->owner, iaxs[fr.callno]->owner->readformat);
+ ast_set_read_format(iaxs[fr.callno]->owner, iaxs[fr.callno]->owner->readformat, 0);
}
}
ast_mutex_lock(&dpcache_lock);