Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
860ed0b5
Commit
860ed0b5
authored
Oct 31, 2013
by
jehan
Browse files
revert
10edae57
because not tested yet
parent
10edae57
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/provider.c
View file @
860ed0b5
...
...
@@ -129,15 +129,21 @@ static void belle_sip_provider_dispatch_response(belle_sip_provider_t* prov, bel
t
=
belle_sip_provider_find_matching_client_transaction
(
prov
,
msg
);
/*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_free_with_data
(
belle_sip_provider_get_auth_context_by_call_id
(
prov
,
call_id
),
belle_sip_object_unref
);
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){
prov->auth_contexts=belle_sip_list_remove(prov->auth_contexts,iterator->data);
}
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment