Mercurial > pidgin
changeset 11517:d37a45a53106
[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 <tailor@pidgin.im>
author | Thomas Butter <tbutter> |
---|---|
date | Sun, 11 Sep 2005 17:15:16 +0000 |
parents | 4d2d3104c92f |
children | 922782381027 |
files | src/protocols/simple/simple.c |
diffstat | 1 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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 {