From bad6c152f1521de8648d47c70e9321b7668b40b5 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 23 May 2012 17:10:28 +0200 Subject: [PATCH] fix two bugs in sal - declare auth info valid after a received 180 - don't authenticate terminated calls. --- coreapi/sal_eXosip2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index d1cf241a..7e48f02c 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -883,6 +883,7 @@ int sal_call_terminate(SalOp *h){ } void sal_op_authenticate(SalOp *h, const SalAuthInfo *info){ + if (h->terminated) return; if (h->pending_auth){ push_auth_to_exosip(info); @@ -1969,6 +1970,7 @@ static bool_t process_event(Sal *sal, eXosip_event_t *ev){ case EXOSIP_CALL_RINGING: ms_message("CALL_RINGING"); call_ringing(sal,ev); + authentication_ok(sal,ev); break; case EXOSIP_CALL_MESSAGE_NEW: ms_message("EXOSIP_CALL_MESSAGE_NEW"); -- 2.39.2