Commit 10edae57 authored by jehan's avatar jehan
Browse files

remove auth context in case of 401|407|403

parent 8290c5af
......@@ -122,9 +122,22 @@ static void belle_sip_provider_dispatch_request(belle_sip_provider_t* prov, bell
static belle_sip_list_t* belle_sip_provider_get_auth_context_by_call_id(belle_sip_provider_t *p,belle_sip_header_call_id_t* call_id);
static void belle_sip_provider_dispatch_response(belle_sip_provider_t* prov, belle_sip_response_t *msg){
belle_sip_client_transaction_t *t;
/*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);
* 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