Implement missing function
authorMark Spencer <markster@digium.com>
Sun, 11 Jan 2004 16:15:30 +0000 (16:15 +0000)
committerMark Spencer <markster@digium.com>
Sun, 11 Jan 2004 16:15:30 +0000 (16:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1944 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 1f4e102..6217258 100755 (executable)
@@ -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)
 {