- Added escaping of shell characters in parameters to sendmail command
- Cleanup documentation (colour schemes)
This commit is contained in:
parent
cc00c947ec
commit
7644c1d064
|
@ -663,23 +663,20 @@ max-send-threads
|
||||||
= 5<br>
|
= 5<br>
|
||||||
|
|
||||||
send-mail-prog
|
send-mail-prog
|
||||||
= /usr/sbin/sendmail -f '%f' '%t'<br>
|
= /usr/sbin/sendmail -f %f %t<br>
|
||||||
|
|
||||||
...<br>
|
...<br>
|
||||||
</tt>
|
</tt>
|
||||||
</p>
|
</p>
|
||||||
<p >The table below
|
<p >The table below
|
||||||
lists all the configuration directives. Items in black are used by
|
lists all the configuration directives. The column <b>Mode</b>
|
||||||
both modes of operation, while those in <b><span style="color: #001177;
|
indicates operation mode in which the parameter is applicable:
|
||||||
background:
|
Config params marked <i>VAS GW</i>
|
||||||
white">blue</span></b>
|
are only applicable when
|
||||||
are used only when
|
operating in VAS Gateway mode, while those marked <i>MMSC</i>
|
||||||
operating in VAS Gateway mode, and those in <b><span style="color:
|
are only applicable when
|
||||||
#500000;
|
|
||||||
background:
|
|
||||||
white">red</span></b> when
|
|
||||||
operating in
|
operating in
|
||||||
MMSC mode.</p>
|
MMSC mode. The rest are used in both modes.</p>
|
||||||
|
|
||||||
<table border=0 cellspacing=2 cellpadding=1 >
|
<table border=0 cellspacing=2 cellpadding=1 >
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -687,6 +684,11 @@ lists all the configuration directives. Items in black are used by
|
||||||
<b>Variable
|
<b>Variable
|
||||||
Name</b>
|
Name</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top>
|
||||||
|
<b>Mode</b>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
<b>Type</b>
|
<b>Type</b>
|
||||||
</td>
|
</td>
|
||||||
|
@ -697,6 +699,11 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tr >
|
<tr >
|
||||||
<td valign=top><tt>group </tt>
|
<td valign=top><tt>group </tt>
|
||||||
</td>
|
</td>
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
mbuni
|
mbuni
|
||||||
</td>
|
</td>
|
||||||
|
@ -706,20 +713,35 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<td valign=top ><tt>name </tt>
|
<td valign=top ><tt>name </tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
string
|
string
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
User-friendly
|
User-friendly
|
||||||
name for the Gateway, used in notices, etc
|
name for the Gateway, used in notices, etc
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
|
||||||
|
<tr >
|
||||||
<td valign=top ><tt>hostname
|
<td valign=top ><tt>hostname
|
||||||
</tt>
|
</tt>
|
||||||
</td>
|
</td>
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
string
|
string
|
||||||
</td>
|
</td>
|
||||||
|
@ -729,10 +751,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
Email or to a foreign MMSC via SMTP. Defaults to <tt>localhost</tt>
|
Email or to a foreign MMSC via SMTP. Defaults to <tt>localhost</tt>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top ><tt>host-alias
|
<td valign=top ><tt>host-alias
|
||||||
</tt>
|
</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
string
|
string
|
||||||
</td>
|
</td>
|
||||||
|
@ -747,11 +775,17 @@ lists all the configuration directives. Items in black are used by
|
||||||
notifications. If you do not supply a host alias, the gateway will create a long form URL (http://<i>hostname:port/msgtoken</i>) when it sends notifications
|
notifications. If you do not supply a host alias, the gateway will create a long form URL (http://<i>hostname:port/msgtoken</i>) when it sends notifications
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>local-mmsc-domains</tt>
|
<tt>local-mmsc-domains</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
List of
|
List of
|
||||||
Internet domains (comma separated)
|
Internet domains (comma separated)
|
||||||
|
@ -762,9 +796,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
or MMS messages received destined to these domains should be treated as local
|
or MMS messages received destined to these domains should be treated as local
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top ><tt>local-prefixes</tt>
|
<td valign=top ><tt>local-prefixes</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Number
|
Number
|
||||||
prefix list
|
prefix list
|
||||||
|
@ -780,6 +821,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>storage-directory
|
<tt>storage-directory
|
||||||
</tt>
|
</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Directory name
|
Directory name
|
||||||
(string)
|
(string)
|
||||||
|
@ -794,6 +841,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>max-send-threads</tt>
|
<tt>max-send-threads</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Number
|
Number
|
||||||
</td>
|
</td>
|
||||||
|
@ -803,10 +856,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
faster.
|
faster.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>send-mail-prog</tt>
|
<tt>send-mail-prog</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -815,7 +874,9 @@ lists all the configuration directives. Items in black are used by
|
||||||
(MMS-to-email or to foreign MMS gateways via SMTP). This command can include variables: %f
|
(MMS-to-email or to foreign MMS gateways via SMTP). This command can include variables: %f
|
||||||
– replaced with the message from address, %t – replaced with the
|
– replaced with the message from address, %t – replaced with the
|
||||||
recipient address (RFC 822 compliant), %s – the message subject, %m
|
recipient address (RFC 822 compliant), %s – the message subject, %m
|
||||||
– the message ID
|
– the message ID. (NOTE: Special shell characters —
|
||||||
|
&, |, $, (, ), and so on &mdash are escaped
|
||||||
|
after variable substitution, hence parameter quoting is not necessary.)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -823,6 +884,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>unified-prefix
|
<tt>unified-prefix
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Number list
|
Number list
|
||||||
</td>
|
</td>
|
||||||
|
@ -841,6 +908,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>maximum-send-attempts
|
<tt>maximum-send-attempts
|
||||||
</tt>
|
</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
integer
|
integer
|
||||||
</td>
|
</td>
|
||||||
|
@ -855,6 +928,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>default-message-expiry</tt>
|
<tt>default-message-expiry</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Integer
|
Integer
|
||||||
</td>
|
</td>
|
||||||
|
@ -869,6 +948,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>queue-run-interval</tt>
|
<tt>queue-run-interval</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Real
|
Real
|
||||||
</td>
|
</td>
|
||||||
|
@ -882,6 +967,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>send-attempt-back-off</tt>
|
<tt>send-attempt-back-off</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Integer
|
Integer
|
||||||
</td>
|
</td>
|
||||||
|
@ -890,10 +981,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
delivery attempts, when a delivery attempt fails.
|
delivery attempts, when a delivery attempt fails.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>sendsms-url</tt>
|
<tt>sendsms-url</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -904,11 +1001,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
parameters (udh, from, to, text, etc.)
|
parameters (udh, from, to, text, etc.)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>sendsms-username</tt>
|
<tt>sendsms-username</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -917,10 +1019,15 @@ lists all the configuration directives. Items in black are used by
|
||||||
pass (for authentication) to send-sms URL
|
pass (for authentication) to send-sms URL
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>sendsms-password</tt>
|
<tt>sendsms-password</tt>
|
||||||
</td>
|
</td>
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -929,10 +1036,15 @@ lists all the configuration directives. Items in black are used by
|
||||||
pass (for authentication) to send-sms URL
|
pass (for authentication) to send-sms URL
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>sendsms-global-sender</tt>
|
<tt>sendsms-global-sender</tt>
|
||||||
</td>
|
</td>
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -941,11 +1053,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
(<i>to</i> field) to use in send sms url
|
(<i>to</i> field) to use in send sms url
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-port</tt>
|
<tt>mms-port</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Integer
|
Integer
|
||||||
</td>
|
</td>
|
||||||
|
@ -956,11 +1073,17 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mm7-port</tt>
|
<tt>mm7-port</tt>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Integer
|
Integer
|
||||||
</td>
|
</td>
|
||||||
|
@ -975,6 +1098,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>allow-ip</tt>
|
<tt>allow-ip</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
List of IP
|
List of IP
|
||||||
addresses
|
addresses
|
||||||
|
@ -993,6 +1122,12 @@ lists all the configuration directives. Items in black are used by
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>deny-ip</tt>
|
<tt>deny-ip</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>ALL</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
List of IP
|
List of IP
|
||||||
addresses
|
addresses
|
||||||
|
@ -1005,10 +1140,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-client-msisdn-header</tt>
|
<tt>mms-client-msisdn-header</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1021,10 +1162,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
(default header name is <tt>X-WAP-Network-Client-MSISDN</tt>)
|
(default header name is <tt>X-WAP-Network-Client-MSISDN</tt>)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-client-ip-header</tt>
|
<tt>mms-client-ip-header</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1040,10 +1187,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>allow-ip-type</tt>
|
<tt>allow-ip-type</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Boolean
|
Boolean
|
||||||
</td>
|
</td>
|
||||||
|
@ -1052,10 +1205,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
senders identified by IP address (i.e. not by MSISDN). Default: True.
|
senders identified by IP address (i.e. not by MSISDN). Default: True.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>optimize-notification-size</tt>
|
<tt>optimize-notification-size</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Boolean
|
Boolean
|
||||||
</td>
|
</td>
|
||||||
|
@ -1065,10 +1224,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
fields. Default: false
|
fields. Default: false
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>content-adaptation</tt>
|
<tt>content-adaptation</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Boolean
|
Boolean
|
||||||
</td>
|
</td>
|
||||||
|
@ -1079,10 +1244,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>email2mms-relay-hosts</tt>
|
<tt>email2mms-relay-hosts</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Number list
|
Number list
|
||||||
</td>
|
</td>
|
||||||
|
@ -1100,10 +1271,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
queued, otherwise it is discarded.
|
queued, otherwise it is discarded.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>billing-library</tt>
|
<tt>billing-library</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1114,10 +1291,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
generation. See <tt>mms_billing.h</tt> for details.
|
generation. See <tt>mms_billing.h</tt> for details.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>billing-module-parameters</tt>
|
<tt>billing-module-parameters</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1128,10 +1311,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>resolver-library</tt>
|
<tt>resolver-library</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1145,10 +1334,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>mms_resolve.h</tt> for details.
|
<tt>mms_resolve.h</tt> for details.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>resolver-module-parameters</tt>
|
<tt>resolver-module-parameters</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1159,13 +1354,19 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>detokenizer-library</tt>
|
<tt>detokenizer-library</tt>
|
||||||
</td>
|
</td>
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Optional
|
Optional
|
||||||
library containing functions for finding MSISDN from request URL
|
library containing functions for finding MSISDN from request URL
|
||||||
|
@ -1176,10 +1377,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>mms_detokenize.h</tt> for details.
|
<tt>mms_detokenize.h</tt> for details.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>detokenizer-module-parameters</tt>
|
<tt>detokenizer-module-parameters</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1190,10 +1397,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>prov-server-notify-script</tt>
|
<tt>prov-server-notify-script</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1207,10 +1420,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
failed fetch provides a description of the error (e.g. message expired).
|
failed fetch provides a description of the error (e.g. message expired).
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>prov-server-sub-status-script</tt>
|
<tt>prov-server-sub-status-script</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
string
|
string
|
||||||
</td>
|
</td>
|
||||||
|
@ -1225,10 +1444,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>mmsrelay</tt> will deliver the message (see below).
|
<tt>mmsrelay</tt> will deliver the message (see below).
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
<tt>notify-unprovisioned</tt>
|
<tt>notify-unprovisioned</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Boolean
|
Boolean
|
||||||
</td>
|
</td>
|
||||||
|
@ -1238,23 +1463,35 @@ lists all the configuration directives. Items in black are used by
|
||||||
(e.g. SMS) when an MMS message is received for them.
|
(e.g. SMS) when an MMS message is received for them.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
<tt>mms-notify-text</tt>
|
<tt>mms-notify-text</tt>
|
||||||
</td>
|
</td>
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Message to send
|
Message to send
|
||||||
to device that does not support MMS, when a message is received for the user.
|
to device that does not support MMS, when a message is received for the user.
|
||||||
This message is sent as plain SMS via the Send SMS URL specified above.
|
This message is sent as plain SMS via the Send SMS URL specified above.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-notify-unprovisioned-text</tt>
|
<tt>mms-notify-unprovisioned-text</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top>
|
<td valign=top>
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1264,10 +1501,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
<tt>notify-unprovisioned</tt> is true).
|
<tt>notify-unprovisioned</tt> is true).
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-message-too-large-txt</tt>
|
<tt>mms-message-too-large-txt</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1279,10 +1522,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
part of an MMS message.
|
part of an MMS message.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-to-email-html</tt>
|
<tt>mms-to-email-html</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
string
|
string
|
||||||
</td>
|
</td>
|
||||||
|
@ -1296,10 +1545,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
is tagged at the bottom of the HTML.
|
is tagged at the bottom of the HTML.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #500000; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>mms-to-email-txt</tt>
|
<tt>mms-to-email-txt</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>MMSC</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
String
|
String
|
||||||
</td>
|
</td>
|
||||||
|
@ -1311,10 +1566,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr style="color: #001177; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>sendmms-port</tt>
|
<tt>sendmms-port</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>VAS GW</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
number
|
number
|
||||||
</td>
|
</td>
|
||||||
|
@ -1323,10 +1584,16 @@ lists all the configuration directives. Items in black are used by
|
||||||
requests. (Optional.)
|
requests. (Optional.)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="color: #001177; background: white">
|
<tr >
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
<tt>sendmms-port-ssl</tt>
|
<tt>sendmms-port-ssl</tt>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td valign=top >
|
||||||
|
<i>VAS GW</i>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td valign=top >
|
<td valign=top >
|
||||||
Boolean
|
Boolean
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -637,6 +637,7 @@ static int send2email(Octstr *to, Octstr *from, Octstr *subject,
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Octstr *tmp;
|
||||||
while (sendmail_cmd[i]) {
|
while (sendmail_cmd[i]) {
|
||||||
char c = sendmail_cmd[i];
|
char c = sendmail_cmd[i];
|
||||||
if (c == '%' && sendmail_cmd[i + 1])
|
if (c == '%' && sendmail_cmd[i + 1])
|
||||||
|
@ -649,22 +650,37 @@ static int send2email(Octstr *to, Octstr *from, Octstr *subject,
|
||||||
|
|
||||||
switch(sendmail_cmd[i+1]) {
|
switch(sendmail_cmd[i+1]) {
|
||||||
case 't':
|
case 't':
|
||||||
octstr_append(cmd, to);
|
tmp = octstr_duplicate(to);
|
||||||
|
escape_shell_chars(tmp);
|
||||||
|
octstr_append(cmd, tmp);
|
||||||
|
octstr_destroy(tmp);
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
if (append_hostname) {
|
if (append_hostname) {
|
||||||
Octstr *xfrom = octstr_duplicate(from);
|
Octstr *xfrom = octstr_duplicate(from);
|
||||||
addmmscname(xfrom, myhostname);
|
addmmscname(xfrom, myhostname);
|
||||||
|
escape_shell_chars(xfrom);
|
||||||
|
|
||||||
octstr_append(cmd, xfrom);
|
octstr_append(cmd, xfrom);
|
||||||
octstr_destroy(xfrom);
|
octstr_destroy(xfrom);
|
||||||
} else
|
} else {
|
||||||
octstr_append(cmd, from);
|
tmp = octstr_duplicate(from);
|
||||||
|
escape_shell_chars(tmp);
|
||||||
|
octstr_append(cmd, tmp);
|
||||||
|
octstr_destroy(tmp);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
|
tmp = octstr_duplicate(subject);
|
||||||
|
escape_shell_chars(tmp);
|
||||||
octstr_append(cmd, subject);
|
octstr_append(cmd, subject);
|
||||||
|
octstr_destroy(tmp);
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
|
tmp = octstr_duplicate(msgid);
|
||||||
|
escape_shell_chars(tmp);
|
||||||
octstr_append(cmd, msgid);
|
octstr_append(cmd, msgid);
|
||||||
|
octstr_destroy(tmp);
|
||||||
break;
|
break;
|
||||||
case '%':
|
case '%':
|
||||||
octstr_format_append(cmd, "%%");
|
octstr_format_append(cmd, "%%");
|
||||||
|
@ -1019,3 +1035,25 @@ int is_allowed_host(Octstr *host, Octstr *host_list)
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SHELLCHARS "'|\"()[]{}$&!?*><%`\n \t"
|
||||||
|
void escape_shell_chars(Octstr *str)
|
||||||
|
{
|
||||||
|
Octstr *tmp;
|
||||||
|
int i, n, prev;
|
||||||
|
|
||||||
|
octstr_strip_blanks(str);
|
||||||
|
|
||||||
|
tmp = octstr_duplicate(str);
|
||||||
|
octstr_delete(str, 0, octstr_len(str));
|
||||||
|
|
||||||
|
for (i = 0, prev=0, n = octstr_len(tmp); i < n; i++) {
|
||||||
|
int ch = octstr_get_char(tmp,i);
|
||||||
|
|
||||||
|
if (strchr(SHELLCHARS, ch) != NULL && prev != '\\')
|
||||||
|
octstr_append_char(str, '\\');
|
||||||
|
octstr_append_char(str, ch);
|
||||||
|
prev = ch;
|
||||||
|
}
|
||||||
|
octstr_destroy(tmp);
|
||||||
|
}
|
||||||
|
|
|
@ -143,6 +143,10 @@ void _mms_fixup_address(Octstr *address);
|
||||||
|
|
||||||
/* Check that host is one of hosts in semi-colon separated list in host_list */
|
/* Check that host is one of hosts in semi-colon separated list in host_list */
|
||||||
int is_allowed_host(Octstr *host, Octstr *host_list);
|
int is_allowed_host(Octstr *host, Octstr *host_list);
|
||||||
|
|
||||||
|
/* escape (backlash) special shell characters. */
|
||||||
|
void escape_shell_chars(Octstr *str);
|
||||||
|
|
||||||
#define MAXQTRIES 100
|
#define MAXQTRIES 100
|
||||||
#define BACKOFF_FACTOR 5*60 /* In seconds */
|
#define BACKOFF_FACTOR 5*60 /* In seconds */
|
||||||
#define QUEUERUN_INTERVAL 15*60 /* 15 minutes. */
|
#define QUEUERUN_INTERVAL 15*60 /* 15 minutes. */
|
||||||
|
|
Loading…
Reference in New Issue