forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove duplicated system alert kapps_call_command:store_file already does this. * add support for mod_kazoo 1.4 * update system default templates adds http_headers processing * unneeded / unwanted loop running_apps if the env KAZOO_APPS= then it will keep displaying log messages about initializing from env * fix subject in system_report * groups reply_headers into http_headers for template processing * catch restore_system_template error
- Loading branch information
Showing
8 changed files
with
142 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,123 @@ | ||
<html><head><meta charset="utf-8" /></head><body><h2>Alert</h2><p>{{message}}</p>{% if request %}<h2>Producer</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in request %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if details %}<h2>Details</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in details %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if callflow %}<h2>Callflow</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in callflow %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if error_details %}<h2>Error Details</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in error_details %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if key_store %}<h2>Key Value Store</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in key_store %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if channel_vars %}<h2>Channel Vars</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in channel_vars %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if sip_headers %}<h2>SIP Headers</h2><table cellpadding="4" cellspacing="0" border="0">{% for key, value in sip_headers %}<tr><td>{{ key }}: </td><td>{{ value }}</td></tr>{% endfor %}</table>{% endif %}{% if account %}<h2>Account</h2><table cellpadding="4" cellspacing="0" border="0"><tr><td>Account ID: </td><td>{{account.id}}</td></tr><tr><td>Account Name: </td><td>{{account.name}}</td></tr><tr><td>Account Realm: </td><td>{{account.realm}}</td></tr></table>{% endif %}{% if user %}<h2>Admin</h2><table cellpadding="4" cellspacing="0" border="0"><tr><td>Name: </td><td>{{user.first_name}} {{user.last_name}}</td></tr><tr><td>Email: </td><td>{{user.email}}</td></tr><tr><td>Timezone: </td><td>{{user.timezone}}</td></tr></table>{% endif %}{% if account.pvt_wnm_numbers %}<h2>Phone Numbers</h2><ul>{% for number in account.pvt_wnm_numbers %}<li>{{number}}</li>{% endfor %}</ul>{% endif %}</body></html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<h2>Alert</h2> | ||
<p>{{message}}</p> | ||
{% if request %} | ||
<h2>Producer</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in request %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if details %} | ||
<h2>Details</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in details %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if callflow %} | ||
<h2>Callflow</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in callflow %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if error_details %} | ||
<h2>Error Details</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in error_details %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if http_headers %} | ||
<h2>HTTP Headers</h2> | ||
{% for header in http_headers %} | ||
<li>{{ header }}</li> | ||
{% endfor %} | ||
{% endif %}{% if key_store %} | ||
<h2>Key Value Store</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in key_store %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if channel_vars %} | ||
<h2>Channel Vars</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in channel_vars %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if sip_headers %} | ||
<h2>SIP Headers</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
{% for key, value in sip_headers %} | ||
<tr> | ||
<td>{{ key }}:</td> | ||
<td>{{ value }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% endif %}{% if account %} | ||
<h2>Account</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
<tr> | ||
<td>Account ID:</td> | ||
<td>{{account.id}}</td> | ||
</tr> | ||
<tr> | ||
<td>Account Name:</td> | ||
<td>{{account.name}}</td> | ||
</tr> | ||
<tr> | ||
<td>Account Realm:</td> | ||
<td>{{account.realm}}</td> | ||
</tr> | ||
</table> | ||
{% endif %}{% if user %} | ||
<h2>Admin</h2> | ||
<table cellpadding="4" cellspacing="0" border="0"> | ||
<tr> | ||
<td>Name:</td> | ||
<td>{{user.first_name}} {{user.last_name}}</td> | ||
</tr> | ||
<tr> | ||
<td>Email:</td> | ||
<td>{{user.email}}</td> | ||
</tr> | ||
<tr> | ||
<td>Timezone:</td> | ||
<td>{{user.timezone}}</td> | ||
</tr> | ||
</table> | ||
{% endif %}{% if account.pvt_wnm_numbers %} | ||
<h2>Phone Numbers</h2> | ||
<ul> | ||
{% for number in account.pvt_wnm_numbers %} | ||
<li>{{number}}</li>{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters