]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
timestamp was being converted to host order as a short rather than a long
authorDavid Vossel <dvossel@digium.com>
Fri, 19 Jun 2009 20:22:02 +0000 (20:22 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 19 Jun 2009 20:22:02 +0000 (20:22 +0000)
(closes issue #15361)
Reported by: ffloimair
Patches:
      ts_issue.diff uploaded by dvossel (license 671)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@201993 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index e317a635f3d13e77691fb11fdc753dc2de341983..a75d9b6d5630dda759be56db010b840cf86f6d50 100644 (file)
@@ -7466,7 +7466,7 @@ static int socket_process(struct iax2_thread *thread)
                /* Deal with POKE/PONG without allocating a callno */
                if (f.frametype == AST_FRAME_IAX && f.subclass == IAX_COMMAND_POKE) {
                        /* Reply back with a PONG, but don't care about the result. */
-                       send_apathetic_reply(1, ntohs(fh->scallno), &sin, IAX_COMMAND_PONG, ntohs(fh->ts), fh->iseqno + 1);
+                       send_apathetic_reply(1, ntohs(fh->scallno), &sin, IAX_COMMAND_PONG, ntohl(fh->ts), fh->iseqno + 1);
                        return 1;
                } else if (f.frametype == AST_FRAME_IAX && f.subclass == IAX_COMMAND_ACK && dcallno == 1) {
                        /* Ignore */