Browse code

refine registrar tests, bug #2790184, port from kamailio r5837

Henning Westerholt authored on 13/05/2009 13:25:52
Showing 2 changed files
... ...
@@ -21,7 +21,6 @@ loadmodule "usrloc"
21 21
 modparam("usrloc", "db_mode", 1)
22 22
 
23 23
 loadmodule "registrar"
24
-modparam("registrar", "reg_callid_avp", "$avp(s:foobar)")
25 24
 modparam("registrar", "min_expires", 5)
26 25
 modparam("usrloc", "timer_interval", 2)
27 26
 
... ...
@@ -61,11 +60,6 @@ route{
61 61
 			sl_send_reply("404", "Not Found");
62 62
 			exit;
63 63
 		}
64
-		$avp(s:foobar) = $ci + "bar";
65
-#		$avp(s:foobar) = $ci;
66
-		if (registered("location")) {
67
-			xlog("already registered");
68
-		}
69 64
 		append_hf("P-hint: usrloc applied\r\n");
70 65
 	}
71 66
 
... ...
@@ -17,8 +17,10 @@ loadmodule "registrar/registrar.so"
17 17
 loadmodule "sl/sl.so"
18 18
 loadmodule "tm/tm.so"
19 19
 loadmodule "maxfwd/maxfwd.so"
20
+loadmodule "pv/pv.so"
20 21
 #for debugging purposes only
21 22
 loadmodule "mi_fifo/mi_fifo.so"
23
+loadmodule "xlog/xlog.so"
22 24
 
23 25
 
24 26
 #-----------------------Module parameters-------------------------------------
... ...
@@ -33,6 +35,11 @@ route{
33 33
 		exit();
34 34
 	}
35 35
 
36
+	if (registered("location")) {
37
+		xlog("contact registered");
38
+	}
39
+
40
+
36 41
 	if(!lookup ("location")){
37 42
 		sl_send_reply("404", "Not Found");
38 43
 	}