Fix pingtime calculation in bridge optimized mode
authorMark Spencer <markster@digium.com>
Tue, 20 Apr 2004 15:14:06 +0000 (15:14 +0000)
committerMark Spencer <markster@digium.com>
Tue, 20 Apr 2004 15:14:06 +0000 (15:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2718 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 7a32c53..7627ade 100755 (executable)
@@ -5038,7 +5038,7 @@ retryowner2:
                                        forward_command(iaxs[fr.callno], AST_FRAME_IAX, IAX_COMMAND_PONG, fr.ts, NULL, 0, -1);
                                } else {
                                        /* Calculate ping time */
-                                       iaxs[fr.callno]->pingtime =  calc_timestamp(iaxs[fr.callno], 0, NULL) - fr.ts;
+                                       iaxs[fr.callno]->pingtime =  calc_timestamp(iaxs[fr.callno], 0, &f) - fr.ts;
                                }
 #else
                                /* Calculate ping time */