Mercurial > pidgin.yaz
comparison src/protocols/simple/simple.c @ 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 | 0d18fa6c3b41 |
children | a26eb48d1953 |
comparison
equal
deleted
inserted
replaced
11516:4d2d3104c92f | 11517:d37a45a53106 |
---|---|
1009 resend = sipmsg_to_string(trans->msg); | 1009 resend = sipmsg_to_string(trans->msg); |
1010 /* resend request */ | 1010 /* resend request */ |
1011 sendout_pkt(sip->gc, resend); | 1011 sendout_pkt(sip->gc, resend); |
1012 g_free(resend); | 1012 g_free(resend); |
1013 } else { | 1013 } else { |
1014 sip->proxy.retries = 0; | 1014 if(msg->response == 100) { |
1015 if(msg->response == 401) sip->registrar.retries++; | 1015 /* ignore provisional response */ |
1016 else sip->registrar.retries = 0; | 1016 gaim_debug_info("simple","got trying response\n"); |
1017 if(trans->callback) { | 1017 } else { |
1018 /* call the callback to process response*/ | 1018 sip->proxy.retries = 0; |
1019 (trans->callback)(sip, msg, trans); | 1019 if(msg->response == 401) sip->registrar.retries++; |
1020 else sip->registrar.retries = 0; | |
1021 if(trans->callback) { | |
1022 /* call the callback to process response*/ | |
1023 (trans->callback)(sip, msg, trans); | |
1024 } | |
1025 transactions_remove(sip, trans); | |
1020 } | 1026 } |
1021 transactions_remove(sip, trans); | |
1022 } | 1027 } |
1023 found = 1; | 1028 found = 1; |
1024 } else { | 1029 } else { |
1025 gaim_debug(GAIM_DEBUG_MISC, "simple", "received response to unknown transaction"); | 1030 gaim_debug(GAIM_DEBUG_MISC, "simple", "received response to unknown transaction"); |
1026 } | 1031 } |