summaryrefslogtreecommitdiff
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-01-11 16:15:30 +0000
committerMark Spencer <markster@digium.com>2004-01-11 16:15:30 +0000
commit389d089ecc2d5ab4995dc687fb560e88d94f5f16 (patch)
tree29e0c7a842096720e6caaf21125af65295149727 /channels/chan_iax2.c
parent459d19823e5b4b6dfaf171aa82d5e43b0f52af0e (diff)
Implement missing function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-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)
{