... | ... |
@@ -43,7 +43,7 @@ int dlginfo_add_events(void) |
43 | 43 |
event.content_type.s = "application/dialog-info+xml"; |
44 | 44 |
event.content_type.len = 27; |
45 | 45 |
|
46 |
- event.default_expires= 3600; |
|
46 |
+ event.default_expires= pres_dlginfo_default_expires; |
|
47 | 47 |
event.type = PUBL_TYPE; |
48 | 48 |
event.req_auth = 0; |
49 | 49 |
event.evs_publ_handl = 0; |
... | ... |
@@ -248,6 +248,26 @@ modparam("presence_dialoginfo", "force_dummy_dialog", 1) |
248 | 248 |
</example> |
249 | 249 |
</section> |
250 | 250 |
|
251 |
+<section id="presence_dialoginfo.p.default_expires"> |
|
252 |
+ <title><varname>default_expires</varname> (int)</title> |
|
253 |
+ <para> |
|
254 |
+ The default expires value used when missing from SUBSCRIBE |
|
255 |
+ message (in seconds). |
|
256 |
+ </para> |
|
257 |
+ <para> |
|
258 |
+ <emphasis>Default value is <quote>3600</quote>. |
|
259 |
+ </emphasis> |
|
260 |
+ </para> |
|
261 |
+ <example> |
|
262 |
+ <title>Set <varname>default_expires</varname> parameter</title> |
|
263 |
+ <programlisting format="linespecific"> |
|
264 |
+... |
|
265 |
+modparam("presence_dialoginfo", "default_expires", 3600) |
|
266 |
+... |
|
267 |
+</programlisting> |
|
268 |
+ </example> |
|
269 |
+</section> |
|
270 |
+ |
|
251 | 271 |
</section> |
252 | 272 |
|
253 | 273 |
<section> |
... | ... |
@@ -49,6 +49,7 @@ add_event_t pres_add_event; |
49 | 49 |
/* module parameters */ |
50 | 50 |
int force_single_dialog = 0; |
51 | 51 |
int force_dummy_dialog = 0; |
52 |
+unsigned int pres_dlginfo_default_expires = 3600; |
|
52 | 53 |
|
53 | 54 |
/* module exported commands */ |
54 | 55 |
static cmd_export_t cmds[] = |
... | ... |
@@ -60,6 +61,7 @@ static cmd_export_t cmds[] = |
60 | 61 |
static param_export_t params[] = { |
61 | 62 |
{ "force_single_dialog", INT_PARAM, &force_single_dialog }, |
62 | 63 |
{ "force_dummy_dialog", INT_PARAM, &force_dummy_dialog }, |
64 |
+ { "default_expires", INT_PARAM, &pres_dlginfo_default_expires }, |
|
63 | 65 |
{0, 0, 0} |
64 | 66 |
}; |
65 | 67 |
|