mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Implement missing function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user