]> sjero.net Git - linphone/commitdiff
fix two bugs in sal
authorSimon Morlat <simon.morlat@linphone.org>
Wed, 23 May 2012 15:10:28 +0000 (17:10 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Wed, 23 May 2012 15:10:28 +0000 (17:10 +0200)
- declare auth info valid after a received 180
- don't authenticate terminated calls.

coreapi/sal_eXosip2.c

index d1cf241ab65fbe29f4f03e77ee74d0393ecff023..7e48f02ca956e0ba0024bfa3796a641a7490e5a7 100644 (file)
@@ -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");