Commit 860ed0b5 authored by jehan's avatar jehan
Browse files

revert 10edae57 because not tested yet

parent 10edae57
......@@ -129,15 +129,21 @@ static void belle_sip_provider_dispatch_response(belle_sip_provider_t* prov, bel
/*good opportunity to cleanup auth context if answer = 401|407|403*/
switch (belle_sip_response_get_status_code(msg)) {
case 401:
case 403:
case 407: {
belle_sip_header_call_id_t* call_id=call_id = belle_sip_message_get_header_by_type(msg,belle_sip_header_call_id_t);
belle_sip_list_t* iterator;
belle_sip_list_t* head=belle_sip_provider_get_auth_context_by_call_id(prov,call_id);
for (iterator=head;iterator!=NULL;iterator=iterator->next){
belle_sip_list_free_with_data(head,(void (*)(void *))belle_sip_authorization_destroy);
* If a transaction is found, pass it to the transaction and let it decide what to do.
* Else notifies directly.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment