aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-11 16:15:30 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-11 16:15:30 +0000
commit0e5d180de6ea5fa713649df4e85e1dfe6718ab31 (patch)
tree29e0c7a842096720e6caaf21125af65295149727 /channels
parente2fda4b720e00418c83b3bdddb783f18e878f162 (diff)
Implement missing function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1944 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_iax2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 1f4e10205..621725814 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -2803,6 +2803,15 @@ static int send_command(struct chan_iax2_pvt *i, char type, int command, unsigne
return __send_command(i, type, command, ts, data, datalen, seqno, 0, 0, 0);
}
+static int send_command_locked(struct chan_iax2_pvt *i, char type, int command, unsigned int ts, char *data, int datalen, int seqno)
+{
+ int res;
+ ast_mutex_lock(&iaxsl[i->callno]);
+ res = send_command(i, type, command, ts, data, datalen, seqno);
+ ast_mutex_unlock(&iaxsl[i->callno]);
+ return res;
+}
+
#ifdef BRIDGE_OPTIMIZATION
static int forward_command(struct chan_iax2_pvt *i, char type, int command, unsigned int ts, char *data, int datalen, int seqno)
{