Browse code

Added reg_timer_interval modparam to uac to allow user to regulate the frequency with which registrations are renewed and otherwise managed. Previously, this has been hardcoded to 90 seconds.

Alex Balashov - Diminuendo-2 authored on 21/11/2011 11:13:05
Showing 2 changed files
... ...
@@ -272,6 +272,7 @@ modparam("uac", "reg_db_url",
272 272
 				</programlisting>
273 273
 			</example>
274 274
 		</section>
275
+
275 276
 		<section id="reg-contact-addr-id">
276 277
 			<title><varname>reg_contact_addr</varname> (string)</title>
277 278
 			<para>
... ...
@@ -287,6 +288,45 @@ modparam("uac", "reg_contact_addr", "192.168.1.2:5080")
287 288
 				</programlisting>
288 289
 			</example>
289 290
 		</section>
291
+
292
+		<section id="reg-timer-interval-id">
293
+			<title><varname>reg_timer_interval</varname> (string)</title>
294
+			<para>
295
+			Timer interval (in seconds) at which registrations are managed, e.g. renewed as needed.  
296
+			</para>
297
+			<para>
298
+				<emphasis>
299
+				The default value is 90 seconds.
300
+				</emphasis>
301
+			</para>
302
+			
303
+			<example>
304
+				<title>Set <varname>reg_timer_inteval</varname> parameter</title>
305
+				<programlisting format="linespecific">
306
+...
307
+modparam("uac", "reg_timer_interval", 60)
308
+...
309
+				</programlisting>
310
+			</example>
311
+		</section>
312
+
313
+	</section>
314
+
315
+
316
+	<section id="reg-contact-addr-id">
317
+		<title><varname>reg_contact_addr</varname> (string)</title>
318
+		<para>
319
+		Address to be used to build contact address. Must be at least
320
+		host part, can have port and parameters. Must not include 'sip:'.
321
+		</para>
322
+		<example>
323
+			<title>Set <varname>reg_contact_addr</varname> parameter</title>
324
+			<programlisting format="linespecific">
325
+...
326
+modparam("uac", "reg_contact_addr", "192.168.1.2:5080")
327
+...
328
+			</programlisting>
329
+		</example>
290 330
 	</section>
291 331
 
292 332
 
... ...
@@ -91,6 +91,7 @@ static int mod_init(void);
91 91
 static void mod_destroy(void);
92 92
 static int child_init(int rank);
93 93
 
94
+extern int reg_timer_interval;
94 95
 
95 96
 static pv_export_t mod_pvs[] = {
96 97
 	{ {"uac_req", sizeof("uac_req")-1}, PVT_OTHER, pv_get_uac_req, pv_set_uac_req,
... ...
@@ -134,6 +135,7 @@ static param_export_t params[] = {
134 135
 	{"auth_password_avp", STR_PARAM,                &auth_password_avp     },
135 136
 	{"reg_db_url",        STR_PARAM,                &reg_db_url.s          },
136 137
 	{"reg_contact_addr",  STR_PARAM,                &reg_contact_addr.s    },
138
+	{"reg_timer_interval", STR_PARAM,		&reg_timer_interval	},
137 139
 	{0, 0, 0}
138 140
 };
139 141