Skip to content

Commit

Permalink
Merge pull request 2600hz#1305 from 2600hz/KAZOO-4165
Browse files Browse the repository at this point in the history
KAZOO-4165 change default fax error templates to use firstof
  • Loading branch information
fenollp committed Sep 16, 2015
2 parents 0b6fe96 + d0e7f1e commit bf5c1f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">>).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">>).
Expand Down

0 comments on commit bf5c1f2

Please sign in to comment.