# HG changeset patch # User Thomas Butter # Date 1126458916 0 # Node ID d37a45a531067aa45ef5d96de90493ba5fdf2e92 # Parent 4d2d3104c92fd537ec9305505420b74c703df3de [gaim-migrate @ 13762] Ignore provisional responses - those are send by asterisk on register. Thanks to Cosimo Alfarano for reporting and sending a debug log committer: Tailor Script diff -r 4d2d3104c92f -r d37a45a53106 src/protocols/simple/simple.c --- 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 {