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.
Merge pull request 2600hz#1305 from 2600hz/KAZOO-4165
KAZOO-4165 change default fax error templates to use firstof
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ | |
] | ||
)). | ||
|
||
-define(TEMPLATE_TEXT, <<"Error : {% firstof error.fax_info error.call_info \"unknown error\" %} \n\nCaller ID: {% firstof fax.remote_station_id caller_id.number \"unknown number\" %}\nCaller Name: {% firstof caller_id.name fax.remote_station_id caller_id.number \"unknown number\" %}\n\nCalled To: {{to.user}} (Originally dialed number)\nCalled On: {{fax.timestamp|date:\"l, F j, Y \\a\\t H:i\"}}\n\n\nFor help or questions about receiving faxes, please contact support at (415) 886-7900 or email [email protected].">>). | ||
-define(TEMPLATE_HTML, <<"<html><body><h3>Error : {% firstof error.fax_info error.call_info \"unknown error\" %} </h3><table><tr><td>Caller ID</td><td>{% firstof caller_id.name fax.remote_station_id caller_id.number \"unknown number\" %} ({% firstof fax.remote_station_id caller_id.number \"unknown number\" %})</td></tr><tr><td>Callee ID</td><td>{{to.user}} (originally dialed number)</td></tr><tr><td>Call received</td><td>{{fax.timestamp|date:\"l, F j, Y \\a\\t H:i\"}}</td></tr></table><p>For help or questions about receiving faxes, please contact (415) 886-7900 or email <a href=\"mailto:[email protected]\">Support</a></p><p style=\"font-size: 9px;color:#C0C0C0\">{{call_id}}</p></body></html>">>). | ||
-define(TEMPLATE_TEXT, <<"Error : {% firstof error.fax_info error.call_info \"unknown error\" %} \n\nCaller ID: {% firstof fax.remote_station_id caller_id.number \"unknown number\" %}\nCaller Name: {% firstof caller_id.name fax.remote_station_id caller_id.number \"unknown number\" %}\n\nCalled To: {{to.user}} (Originally dialed number)\nCalled On: {% firstof fax.timestamp|date:\"l, F j, Y \\a\\t H:i\" date_called|date:\"l, F j, Y \\a\\t H:i\"}\n\n\nFor help or questions about receiving faxes, please contact support at (415) 886-7900 or email [email protected].">>). | ||
-define(TEMPLATE_HTML, <<"<html><body><h3>Error : {% firstof error.fax_info error.call_info \"unknown error\" %} </h3><table><tr><td>Caller ID</td><td>{% firstof caller_id.name fax.remote_station_id caller_id.number \"unknown number\" %} ({% firstof fax.remote_station_id caller_id.number \"unknown number\" %})</td></tr><tr><td>Callee ID</td><td>{{to.user}} (originally dialed number)</td></tr><tr><td>Call received</td><td>{% firstof fax.timestamp|date:\"l, F j, Y \\a\\t H:i\" date_called|date:\"l, F j, Y \\a\\t H:i\"}</td></tr></table><p>For help or questions about receiving faxes, please contact (415) 886-7900 or email <a href=\"mailto:[email protected]\">Support</a></p><p style=\"font-size: 9px;color:#C0C0C0\">{{call_id}}</p></body></html>">>). | ||
-define(TEMPLATE_SUBJECT, <<"Error Receiving Fax from {% firstof caller_id.name fax.remote_station_id caller_id.number \"unknown number\" %} ({% firstof fax.remote_station_id caller_id.number \"unknown number\" %})">>). | ||
-define(TEMPLATE_CATEGORY, <<"fax">>). | ||
-define(TEMPLATE_NAME, <<"Inbound Fax Error to Email">>). | ||
|
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 |
---|---|---|
|
@@ -32,8 +32,8 @@ | |
] | ||
)). | ||
|
||
-define(TEMPLATE_TEXT, <<"Error : {% firstof error.fax_info error.call_info \"unknown error\" %} \n\nnCaller ID: {% firstof fax.remote_station_id callee_id.number \"unknown number\" %}\nCaller Name: {% firstof callee_id.name fax.remote_station_id callee_id.number \"unknown number\" %}\n\nCalled To: {{to.user}} (Originally dialed number)\nCalled On: {{fax.timestamp|date:\"l, F j, Y \\a\\t H:i\"}}\n\n\nFor help or questions about receiving faxes, please contact support at (415) 886-7900 or email [email protected].">>). | ||
-define(TEMPLATE_HTML, <<"<html><body><h3>Error : {% firstof error.fax_info error.call_info \"unknown error\" %} </h3><table><tr><td>Caller ID</td><td>{% firstof callee_id.name fax.remote_station_id callee_id.number \"unknown number\" %} ({% firstof fax.remote_station_id caller_id.number \"unknown number\" %})</td></tr><tr><td>Callee ID</td><td>{{to.user}} (originally dialed number)</td></tr><tr><td>Call received</td><td>{{fax.timestamp|date:\"l, F j, Y \\a\\t H:i\"}}</td></tr></table><p>For help or questions about receiving faxes, please contact (415) 886-7900 or email <a href=\"mailto:[email protected]\">Support</a></p><p style=\"font-size: 9px;color:#C0C0C0\">{{call_id}}</p></body></html>">>). | ||
-define(TEMPLATE_TEXT, <<"Error : {% firstof error.fax_info error.call_info \"unknown error\" %} \n\nnCaller ID: {% firstof fax.remote_station_id callee_id.number \"unknown number\" %}\nCaller Name: {% firstof callee_id.name fax.remote_station_id callee_id.number \"unknown number\" %}\n\nCalled To: {{to.user}} (Originally dialed number)\nCalled On: {% firstof fax.timestamp|date:\"l, F j, Y \\a\\t H:i\" date_called|date:\"l, F j, Y \\a\\t H:i\"}\n\n\nFor help or questions about receiving faxes, please contact support at (415) 886-7900 or email [email protected].">>). | ||
-define(TEMPLATE_HTML, <<"<html><body><h3>Error : {% firstof error.fax_info error.call_info \"unknown error\" %} </h3><table><tr><td>Caller ID</td><td>{% firstof callee_id.name fax.remote_station_id callee_id.number \"unknown number\" %} ({% firstof fax.remote_station_id caller_id.number \"unknown number\" %})</td></tr><tr><td>Callee ID</td><td>{{to.user}} (originally dialed number)</td></tr><tr><td>Call received</td><td>{% firstof fax.timestamp|date:\"l, F j, Y \\a\\t H:i\" date_called|date:\"l, F j, Y \\a\\t H:i\"}</td></tr></table><p>For help or questions about receiving faxes, please contact (415) 886-7900 or email <a href=\"mailto:[email protected]\">Support</a></p><p style=\"font-size: 9px;color:#C0C0C0\">{{call_id}}</p></body></html>">>). | ||
-define(TEMPLATE_SUBJECT, <<"Error Sending Fax to {% firstof callee_id.name fax.remote_station_id callee_id.number \"unknown number\" %} ({% firstof fax.remote_station_id callee_id.number \"unknown number\" %})">>). | ||
-define(TEMPLATE_CATEGORY, <<"fax">>). | ||
-define(TEMPLATE_NAME, <<"Outbound Fax Error to Email">>). | ||
|