Ctrl K
ring2all.com

Fax Viewer Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Log Fields Reference
  5. Common Scenarios & Examples
  6. Limitations & Important Notes
  7. Troubleshooting Tips
  8. Glossary

---

1. Module Overview (Technical)

What Is Fax Viewer?

Fax Viewer is a log viewing interface that displays all inbound and outbound fax transmissions. It provides searchable access to fax history, status information, and the ability to view or download fax documents.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│                    Fax Viewer Architecture                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Admin Panel                                                    │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        FaxViewerPage.tsx                                 │   │
│  │                                                          │   │
│  │  ┌─────────────────────────────────────────────────────┐ │   │
│  │  │ Date       │ Dir   │ Device │ Remote   │ Pages │ Status│ │   │
│  │  ├─────────────────────────────────────────────────────┤ │   │
│  │  │ 2026-01-16 │ ← IN  │ Main   │ +1555123 │  3    │ ✓    │ │   │
│  │  │ 2026-01-16 │ → OUT │ Sales  │ +1555456 │  2    │ ✓    │ │   │
│  │  │ 2026-01-15 │ ← IN  │ Main   │ +1555789 │  1    │ ✗    │ │   │
│  │  └─────────────────────────────────────────────────────┘ │   │
│  │                                                          │   │
│  │  [View] [Download] [Delete]                              │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ API Query                                               │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Backend API                                       │   │
│  │                                                          │   │
│  │  SELECT * FROM public.fax_logs                           │   │
│  │  WHERE domain_id = ?                                     │   │
│  │  ORDER BY created_at DESC                                │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.fax_logsFax transmission history
public.fax_devicesDevice reference

Key Files

FileDescription
modules/faxViewer/FaxViewerPage.tsxMain viewer page
modules/faxViewer/api/faxViewerApi.tsAPI calls
modules/faxViewer/hooks/useFaxLogs.tsData hook
---

2. Module Overview (Commercial/Business)

Business Value

Fax Viewer provides complete fax history:

Without Fax ViewerWith Fax Viewer
No transmission historyFull audit trail
Unknown statusSuccess/failure visible
No document accessView/download documents
Manual trackingSearchable logs

Use Cases

  1. Audit Trail
- Track all fax activity

- Compliance documentation

  1. Troubleshooting
- Identify failed transmissions

- Review error messages

  1. Document Retrieval
- Find past faxes

- Download for records

  1. Status Monitoring
- Check delivery status

- Confirm receipt

Feature Highlights

FeatureBenefit
SearchFind faxes quickly
Direction FilterInbound/Outbound
Status DisplaySuccess/Failed
Document ViewPreview faxes
DownloadSave to local
DeleteClean up history
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • View all fax transmissions
  • Search by number or caller ID
  • Filter by direction
  • View document content
  • Download fax files
  • Delete old logs

Fax Viewer Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Fax Viewer                                         │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  🔍 [Search faxes by number or caller ID...        ]           │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Date        │ Dir      │ Device   │ Remote     │Pgs│Status│  │
│  ├─────────────┼──────────┼──────────┼────────────┼───┼──────┤  │
│  │ 01/16 10:30 │ Received │ Main Fax │+15551234567│ 3 │  ✓   │  │
│  │ 01/16 09:15 │ Sent     │ Sales    │+15559876543│ 2 │  ✓   │  │
│  │ 01/15 16:45 │ Received │ Main Fax │+15555551234│ 1 │  ✗   │  │
│  │ 01/15 14:20 │ Sent     │ Support  │+15557771234│ 4 │  ✓   │  │
│  │ 01/15 11:00 │ Received │ Main Fax │+15558881234│ 2 │  ✓   │  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  Row Actions: [👁️ View] [⬇️ Download] [🗑️ Delete]               │
│                                                                 │
│  Showing 1-10 of 156 faxes                                      │
│  [< Previous] [Next >]                                          │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Search: Search by phone number or remote caller ID.
TIP
Download PDF: Successfully received faxes can be downloaded as PDF.
CAUTION
Delete: Deleting a log removes the document permanently.

---

4. Log Fields Reference

Display Columns

ColumnDescription
DateTransmission date/time
DirectionReceived (inbound) or Sent (outbound)
DeviceFax device used
RemoteRemote fax number
PagesNumber of pages
StatusSuccess or Failed
SizeFile size

Direction Types

DirectionIconDescription
ReceivedInbound fax
SentOutbound fax

Status Types

StatusDescription
SuccessTransmission completed
FailedTransmission failed

Available Actions

ActionDescription
ViewOpen fax document
DownloadSave file locally
DeleteRemove log and file
---

5. Common Scenarios & Examples

Scenario 1: Find Recent Fax

  1. Open Fax Viewer
  2. Look at recent entries
  3. Click View to preview
  4. Download if needed

Scenario 2: Search for Specific Sender

  1. Enter phone number in search
  2. Results filter automatically
  3. View matching faxes

Scenario 3: Check Failed Transmissions

  1. Look for failed status entries
  2. Review error details
  3. Retry if outbound

Scenario 4: Archive Faxes

  1. Download important faxes
  2. Save to local storage
  3. Delete from system

---

6. Limitations & Important Notes

Technical Notes

NOTE
Read-Only Logs: This module views logs only. Sending is done via Send Fax module.
NOTE
File Storage: Documents stored on server filesystem.
WARNING
Delete Permanent: Deleting removes both log and document file.

Best Practices

  1. Regular Review: Check for failed transmissions
  2. Archive Important: Download critical faxes
  3. Clean Up: Delete old unnecessary logs
  4. Search Smart: Use full phone numbers

---

7. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
No logs shownNo fax activityWait for fax transmissions
View failsFile deletedFile may have been cleaned up
Download failsFile missingCheck storage path
Search no resultsWrong formatTry full number with country code

Diagnostic SQL

View recent fax logs:

Sql
SELECT 
  fl.direction,
  fl.remote_number,
  fl.pages,
  fl.success,
  fl.result_text,
  fl.file_path,
  fd.name as device_name,
  fl.created_at
FROM public.fax_logs fl
JOIN public.fax_devices fd ON fl.fax_device_id = fd.id
WHERE fl.domain_id = [domain_id]
ORDER BY fl.created_at DESC
LIMIT 20;

Count by status:

Sql
SELECT 
  success,
  COUNT(*) as count
FROM public.fax_logs
WHERE domain_id = [domain_id]
GROUP BY success;

---

8. Glossary

TermDefinition
Fax LogRecord of fax transmission
InboundReceived fax
OutboundSent fax
Remote NumberOther party's fax number
PagesDocument page count
TIFFFax document format
---

Lua Script Status ℹ️

No Lua Handler Required

ComponentStatus
Fax Viewerℹ️ Frontend-only module - reads from public.fax_logs via API
Fax Viewer is a React-based frontend module. Logs are queried via the backend API. No Lua handlers are used - fax logging is done by fax_receive.lua and fax_send.lua.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?