mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
fix some broken code with BRIDGE_OPTIMIZATION defined (issue #7292)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@32818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6426,9 +6426,9 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
|
||||
iax_frame_wrap(fr, &f);
|
||||
#ifdef BRIDGE_OPTIMIZATION
|
||||
if (iaxs[fr->callno]->bridgecallno) {
|
||||
forward_delivery(&fr);
|
||||
forward_delivery(fr);
|
||||
} else {
|
||||
duped_fr = iaxfrdup2(&fr);
|
||||
duped_fr = iaxfrdup2(fr);
|
||||
if (duped_fr) {
|
||||
schedule_delivery(duped_fr, updatehistory, 1, &fr->ts);
|
||||
}
|
||||
@@ -7627,9 +7627,9 @@ retryowner2:
|
||||
}
|
||||
#ifdef BRIDGE_OPTIMIZATION
|
||||
if (iaxs[fr->callno]->bridgecallno) {
|
||||
forward_delivery(&fr);
|
||||
forward_delivery(fr);
|
||||
} else {
|
||||
duped_fr = iaxfrdup2(&fr);
|
||||
duped_fr = iaxfrdup2(fr);
|
||||
if (duped_fr) {
|
||||
schedule_delivery(duped_fr, updatehistory, 0, &fr->ts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user