[svn-commits] moy: branch moy/mfcr2-1.2 r160385 - /team/moy/mfcr2-1.2/channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 2 15:31:57 CST 2008


Author: moy
Date: Tue Dec  2 15:31:56 2008
New Revision: 160385

URL: http://svn.digium.com/view/asterisk?view=rev&rev=160385
Log:
merged changes from tag 1.2.30.3

Modified:
    team/moy/mfcr2-1.2/channels/chan_iax2.c

Modified: team/moy/mfcr2-1.2/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2-1.2/channels/chan_iax2.c?view=diff&rev=160385&r1=160384&r2=160385
==============================================================================
--- team/moy/mfcr2-1.2/channels/chan_iax2.c (original)
+++ team/moy/mfcr2-1.2/channels/chan_iax2.c Tue Dec  2 15:31:56 2008
@@ -3102,7 +3102,7 @@
 static int send_apathetic_reply(unsigned short callno, unsigned short dcallno, struct sockaddr_in *sin, int command, int ts, unsigned char seqno)
 {
 	struct ast_iax2_full_hdr f = { .scallno = htons(0x8000 | callno), .dcallno = htons(dcallno),
-		.ts = htonl(ts), .iseqno = seqno, .oseqno = seqno, .type = AST_FRAME_IAX,
+		.ts = htonl(ts), .iseqno = seqno, .oseqno = 0, .type = AST_FRAME_IAX,
 		.csub = compress_subclass(command) };
 
 	return sendto(defaultsockfd, &f, sizeof(f), 0, (struct sockaddr *)sin, sizeof(*sin));
@@ -6842,7 +6842,7 @@
 		/* 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->oseqno);
+			send_apathetic_reply(1, ntohs(fh->scallno), &sin, IAX_COMMAND_PONG, ntohs(fh->ts), fh->iseqno + 1);
 			return 1;
 		} else if (f.frametype == AST_FRAME_IAX && f.subclass == IAX_COMMAND_ACK && dcallno == 1) {
 			/* Ignore */




More information about the svn-commits mailing list