[Asterisk-cvs] asterisk/channels chan_iax2.c,1.85,1.86
markster at lists.digium.com
markster at lists.digium.com
Sun Jan 11 10:23:43 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv13658/channels
Modified Files:
chan_iax2.c
Log Message:
Implement missing function
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- chan_iax2.c 11 Jan 2004 15:57:42 -0000 1.85
+++ chan_iax2.c 11 Jan 2004 16:15:30 -0000 1.86
@@ -2803,6 +2803,15 @@
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)
{
More information about the svn-commits
mailing list