[calls] sip: origin: Fix host being passed as number



commit 0cadf24ed0d4b1f09849091307096b030c91e564
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Tue Dec 28 16:36:05 2021 +0100

    sip: origin: Fix host being passed as number
    
    Closes #389
    
    Fixes e2acfd37948163279f8cee9f0fb1e91eead085a8

 plugins/sip/calls-sip-origin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index 2a8cf54d..7f547fe8 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -226,7 +226,7 @@ add_call (CallsSipOrigin *self,
 
     if (g_strv_length (address_split) >=2 &&
         g_strcmp0 (address_split[2], self->host) == 0)
-      call_address = address_split[2];
+      call_address = address_split[1];
   }
 
   sip_call = calls_sip_call_new (call_address, inbound, handle);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]