Просмотр исходного кода

modules/registrar : changes caused by usrloc refactoring

Marius Zbihlei 14 лет назад
Родитель
Сommit
28c84b9190
3 измененных файлов с 3 добавлено и 1 удалено
  1. 1 0
      modules_k/registrar/reg_mod.c
  2. 1 1
      modules_k/registrar/regpv.c
  3. 1 0
      modules_k/registrar/save.c

+ 1 - 0
modules_k/registrar/reg_mod.c

@@ -68,6 +68,7 @@
 #include "../../pvar.h"
 #include "../../lib/kcore/km_ut.h"
 #include "../../modules_k/usrloc/usrloc.h"
+#include "../../lib/kcore/statistics.h"
 #include "../../modules/sl/sl.h"
 #include "../../mod_fix.h"
 

+ 1 - 1
modules_k/registrar/regpv.c

@@ -442,7 +442,7 @@ int pv_fetch_contacts(struct sip_msg* msg, char* table, char* uri,
 	}
 	memcpy(rpp->aor.s, aor.s, aor.len);
 	rpp->aor.len = aor.len;
-	rpp->domain = *((udomain_t*)table)->name;
+	rpp->domain = *((udomain_head_t*)table)->name;
 	rpp->flags = 1;
 
 	/* copy contacts */

+ 1 - 0
modules_k/registrar/save.c

@@ -59,6 +59,7 @@
 #include "../../dset.h"
 #include "../../mod_fix.h"
 #include "../../lib/kcore/cmpapi.h"
+#include "../../lib/kcore/statistics.h"
 #ifdef USE_TCP
 #include "../../tcp_server.h"
 #endif