Skip to content

Commit d75def4

Browse files
committed
mi_fifo: Add a default for "fifo_name"
This is useful for test automation, since now we only have to load "mi_fifo.so" programatically in order to offer MI communication.
1 parent 5d58407 commit d75def4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/mi_fifo/doc/mi_fifo_admin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@
9696
</para>
9797
<para>
9898
<emphasis>
99-
Default value is NONE.
99+
Default value is "/tmp/opensips_fifo".
100100
</emphasis>
101101
</para>
102102
<example>
103103
<title>Set <varname>fifo_name</varname> parameter</title>
104104
<programlisting format="linespecific">
105105
...
106-
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
106+
modparam("mi_fifo", "fifo_name", "/tmp/opensips_b2b_fifo")
107107
...
108108
</programlisting>
109109
</example>

modules/mi_fifo/mi_fifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static int mi_destroy(void);
4949

5050
/* FIFO server vars */
5151
/* FIFO name */
52-
static char *mi_fifo = 0;
52+
static char *mi_fifo = "/tmp/opensips_fifo";
5353
/* dir where reply fifos are allowed */
5454
static char *mi_fifo_reply_dir = DEFAULT_MI_REPLY_DIR;
5555
static int mi_fifo_uid = -1;

0 commit comments

Comments
 (0)