From d70ed5075d307011c0de8ed7ddab27f29d735d4f Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Tue, 26 Feb 2013 16:00:18 +0100 Subject: [PATCH] fix case where bye is not answer at all --- coreapi/bellesip_sal/sal_op_call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/bellesip_sal/sal_op_call.c b/coreapi/bellesip_sal/sal_op_call.c index 0f752acf4..d21c2fa24 100644 --- a/coreapi/bellesip_sal/sal_op_call.c +++ b/coreapi/bellesip_sal/sal_op_call.c @@ -250,8 +250,8 @@ static void call_process_transaction_terminated(void *user_ctx, const belle_sip_ resp=belle_sip_transaction_get_response(BELLE_SIP_TRANSACTION(server_transaction)); } if (strcmp("BYE",belle_sip_request_get_method(req))==0 - && belle_sip_response_get_status_code(resp) !=401 - && belle_sip_response_get_status_code(resp) !=407) { + && (!resp || (belle_sip_response_get_status_code(resp) !=401 + && belle_sip_response_get_status_code(resp) !=407))) { op->base.root->callbacks.call_released(op); op->state=SalOpStateTerminated; }