[gaim-migrate @ 13762]

Sun, 11 Sep 2005 17:15:16 +0000

author
Thomas Butter <tbutter@users.sourceforge.net>
date
Sun, 11 Sep 2005 17:15:16 +0000
changeset 11517
a3d6d136b7dd
parent 11516
e68f50024a83
child 11518
c1c6ea0117d8

[gaim-migrate @ 13762]
Ignore provisional responses - those are send by asterisk on register.
Thanks to Cosimo Alfarano for reporting and sending a debug log

src/protocols/simple/simple.c file | annotate | diff | comparison | revisions
--- a/src/protocols/simple/simple.c	Sun Sep 11 17:05:58 2005 +0000
+++ b/src/protocols/simple/simple.c	Sun Sep 11 17:15:16 2005 +0000
@@ -1011,14 +1011,19 @@
 				sendout_pkt(sip->gc, resend);
 				g_free(resend);
 			} else {
-				sip->proxy.retries = 0;
-				if(msg->response == 401) sip->registrar.retries++;
-				else sip->registrar.retries = 0;
-				if(trans->callback) {
-					/* call the callback to process response*/
-					(trans->callback)(sip, msg, trans);
+				if(msg->response == 100) {
+					/* ignore provisional response */
+					gaim_debug_info("simple","got trying response\n");
+				} else {
+					sip->proxy.retries = 0;
+					if(msg->response == 401) sip->registrar.retries++;
+					else sip->registrar.retries = 0;
+					if(trans->callback) {
+						/* call the callback to process response*/
+						(trans->callback)(sip, msg, trans);
+					}
+					transactions_remove(sip, trans);
 				}
-				transactions_remove(sip, trans);
 			}
 			found = 1;
 		} else {

mercurial