You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This comment replaces the previous test plan: the tabs were redesigned and the video sources now support RTSP streams, gates and door phones.
Setup:
NethVoice instance updated to the latest PR testing image, wizard already completed; sign in with a member of domain admins (superadmin).
At least 3 profiles, 2 groups, users in each profile, and NethVoice CTI signed in with one of these users.
A reachable MySQL (or SQL Server) database with a contacts table, a CSV file of contacts with accented names, optionally an Infinity Zucchetti account.
An IP camera with an RTSP stream (with user and password), a camera or door phone that returns a still image over http(s), a Fanvil i-series door phone added in Devices and assigned to an extension; optionally a device with a self-signed certificate (rtsps:// or https://).
For Test Case 10 an instance installed with the previous stable release, with some http video sources.
An administrator with "Limited access" to Integrations only, granted from "Access control".
The new interface is at https://<voice host>/nethvoice/, page Integrations. Run every test case in dark and light theme and at least once at phone width (390 px).
Test Case 1 - Tabs
Integrations shows the tabs "Customer cards", "Video sources", "Phonebook" and "Parameterized URLs"; there is no "External services" tab and /nethvoice/integrations/external-services opens Integrations.
Reloading the page, or leaving Integrations and coming back from the side menu, opens the last tab used.
Test Case 2 - Customer cards: databases
Integrations opens on "Customer cards"; the tab shows the sections "Customer cards", "Templates" and "Databases".
"Databases": the database of the PBX is marked "Built-in" and has no "Edit" and no menu; every row shows a status ("Connected", "Not connected" or "Testing connection…") and "Used by" with the cards or "Not used".
"Add database" and press "Add" with empty fields: "Enter the name", "Enter the address", "Enter the username" and "Enter the password" are shown; nothing is added.
Choose "Type" PostgreSQL: "Port" stays empty with "Leave empty to use the default port of PostgreSQL (5432)."; enter 99999: "Enter a port between 1 and 65535".
Fill "Name" crm, "Address" crm-db.example.com, "Username", a wrong "Password", empty "Port", and press "Add": "Cannot connect to the database" with "The database cannot be reached with these data."; nothing is added ("Changes to the connection are saved only if the test succeeds.").
Enter the right password, "Test connection": "Connection verified"; "Add": "Database added" / "Database crm has been added."; the row becomes "Connected".
"Add database" again with the same address, port, username and name: "Another database has the same address, port, username and name".
"Edit crm": "Used by ." when it is used, "Password" empty with "Leave empty to keep the current password."; change "Username" and "Save" without the password: it is tested and saved.
"Edit crm" and change "Address" to 192.0.2.20: "Enter the password again to connect to a different server."; "Test connection" without the password shows "Enter the password".
Row menu of a database used by a card: only "Test connection"; of an unused one: "Test connection" and "Remove" > "Database will be removed from NethVoice. Its data on the database server won't change." > "Remove": "Database has been removed.".
Test Case 3 - Customer cards: templates
"Templates" lists name ("Built-in" badge on built-in ones), "Color" (a color, "Not set" or "Set in the code" for custom ones) and "Used by".
"Edit" a built-in template: only "Color" (preselected "Indigo" if not set) and "Preview" with "Shown with example results."; choose "Blue", "Save": "Template updated"; the preview follows the color.
Row menu of a built-in template > "Duplicate": "Create template" opens with name <name>copy and the same code; "Create": it is listed without "Built-in".
"Create template" and press "Create" with empty fields: "Enter the name" and "Enter the template code"; name open invoices: "Use letters and digits only"; name of an existing template in another case (e.g. Table): "Another template, built-in or custom, has the same name".
"Sample results" is prefilled; type <p><%= results[0].name %> Forlì</p> in "Code": the "Preview" updates while typing, accented characters included; "Open EJS documentation" opens ejs.co.
"Sample results" [{"name": "Anna",}]: "Enter valid JSON"; ["Anna"]: "Enter an object or a list of objects, one for each row"; empty: "Enter the sample results".
"Code" <%= missing %>: "Cannot show the preview" with "The template cannot be rendered with these results:" and the error.
Enter a valid name and "Create": "Template has been created." (the name is saved in lowercase).
"Edit" a custom template used by a card: "Name" is disabled ("The name of a template cannot be changed"), "Used by . Changes apply to this customer card too."; change "Code" and "Save".
Row menu of a custom template used by a card: only "Duplicate"; of an unused one: "Delete" > "Template will be permanently deleted." > "Delete": "Template has been deleted.".
Test Case 4 - Customer cards: cards
With no cards: "No customer cards configured" with "Create customer card".
"Create customer card" and press "Show preview" with empty fields: "Select a database", "Select a template" and "Enter the query"; press "Create": also "Enter the name" and "Select at least one profile"; nothing is created.
"Name" of an existing card in another case: "A customer card with this name already exists. Enter another name."; a name with an emoji: "Remove emoji and other symbols that the PBX cannot store".
"Database" lists each database as <address>:<port> · <type> (or "Not connected"); choose crm, a "Template" and a "Query" with $NUMBER (e.g. SELECT * FROM orders WHERE phone = '$NUMBER').
"Test number" (shown only when the query contains $NUMBER) abc + "Show preview": "Use digits only, optionally preceded by +"; 0555010123 + "Show preview": the card is rendered inside a tab named like the card, accented characters included; in dark theme "Shown on a light background, the one templates are designed for." is shown.
Change the query: the preview disappears; a query on a missing table + "Show preview": "Cannot run query" with "The database returned an error. Check the query." and the database message.
Choose "Profiles" and "Create": "Customer card has been created."; the row shows "Database", "Template" and "Profiles".
Row menu > "Duplicate": "Create customer card" opens with <name> (copy) and the same data; "Create" works.
"Edit" the card, change the name and press Esc: "Unsaved changes" with "Keep editing" / "Discard changes".
(NethVoice CTI) With a user of the chosen profiles open the customer card of 0555010123 (e.g. from an incoming call): a tab with the name of the card shows the data of the database next to General info; a user of another profile does not see it.
Row menu > "Delete": "Customer card will be permanently deleted. Users won't see it in NethVoice CTI anymore."; confirm: "Customer card has been deleted.".
With more than 5 cards, templates or databases change page and page size of each table, then reload: each table keeps its page and page size; reloading /nethvoice/integrations opens the last tab used.
Test Case 5 - Video sources: list and connection tests
"Video sources" shows "Show IP camera and intercom streams to users in NethVoice CTI."; with no sources: "No video sources" with "Create video source" and "Create from a door phone".
Each row shows name and extension (e.g. Main entrance (300)), gates, profiles and a status: every source is tested when the tab opens ("Testing connection…"), then "Connected" or "Not connected".
With 6 or more sources, open the browser developer tools (Network): at most two POST /freepbx/rest/cti/sources/test run at the same time; the list stays usable meanwhile.
Open another tab of Integrations and come back within 10 minutes: the statuses are shown at once and no new test starts; after a reload of the page every source is tested again.
Sign out while tests are still queued: the queued tests are not sent and no error appears.
"Filter video sources" finds sources by name or extension (e.g. parking (301); the "Profile" and "Status" filters combine; while tests are running a "Status" filter says "Testing the connection of N video sources: the Status filter shows them when the tests end.".
Row menu: "Preview", "Test connection", "Delete". "Test connection" on an unreachable source: "Connection failed" with "Cannot connect to video source . The device does not answer. Check the address and the firewall."; on a working one: "Video source is connected".
"Preview" of an RTSP source shows the live image in a dialog; of an unreachable one: "Video feed not available" with the reason.
Row menu > "Delete": "Video source will be permanently deleted. Users will no longer see it in NethVoice CTI."; confirm: "Video source has been deleted.".
At 390 px the list is shown as cards without horizontal scroll; stored passwords are never shown (not in the list, not in the drawers).
Test Case 6 - Video sources: create an RTSP camera with gates
"Create video source": "Step 1/2", the focus is on "Name", the Base profile is preselected; "Next" with empty fields: "Enter the name" and "Enter the URL".
"URL" ftp://192.0.2.52/stream1: "Enter a URL that starts with rtsp://, rtsps://, http:// or https://"; the name of an existing source in another case (e.g. parking gate!): "Another video source has the same name".
"URL" rtsp://127.0.0.1/live: "Loopback and link-local addresses cannot be used: enter the address of the device on the network".
"URL" with the private address of a camera that the PBX cannot reach: "The PBX cannot reach the device at this address" with "This is a private network address: ... Forward port 554 on the router of the device, allow it only from the public IP address of the PBX () and enter the public address of the device in the URL.".
"URL" of a reachable camera: "Checking the address…", then "The PBX reaches the device at this address.".
"Device type" "Fanvil i-series": "Video quality" offers "High (main stream)" and "Standard (sub stream, for slow connections)" and changes the URL path; "Other" leaves the URL as typed.
A wrong "Password" + "Next": "Cannot connect to the video source" with "The device rejected the username or password. Check the credentials." and "Show details" (the technical message); it stays on "Step 1/2".
Right credentials + "Next": "Step 2/2" with "Connection verified", the image of the camera and codec and resolution (e.g. "H264, 1280 × 720"); an H.265 camera shows "H.265 video plays only in some browsers. Configure the device to send H.264.".
"Add gate": the focus goes to its "Name"; "Create" with empty gate fields: "Enter the name" and "Enter the DTMF code"; "DTMF code" *1x: "Use only digits, *, #, + and the letters A to D".
Without an "Extension" in step 1, a DTMF gate shows "Select an extension to use DTMF gates".
Add a second gate of "Type" "URL": ftp://192.0.2.60/open shows "Enter a URL that starts with http:// or https://"; http://192.0.2.60/cgi-bin/open?door=1 with "Request method" "POST" is accepted; move it up with "Move up"; up to 10 gates ("You can add up to 10 gates").
"Previous" keeps the data of step 1; "Next" again does not lose the gates.
"Create": "Video source has been created."; the row shows the extension, the gates in their order and "Connected".
An http:// or https:// snapshot URL of a camera (JPEG or PNG) works the same way; a web page shows "The address does not return a supported video stream or a JPEG or PNG image.".
Test Case 7 - Video sources: create from a door phone
"Create from a door phone": "Door phones" lists the door phones of Devices with name, MAC address, IP address or "Not registered"; door phones that already have a source are not listed.
"Use ": "Name", "Extension", "Device type" "Fanvil i-series", "Video quality" and "URL" are filled in; there are no username and password fields; "New credentials: the door phone was asked to update its configuration. If the test fails, wait a minute or restart the door phone." and "The PBX reaches the device at this address.".
The profiles are preselected from the user of the door phone extension.
"Next": "Door phone relays" shows one gate per relay ("Door 1", "Door 2"); the "DTMF code" of a relay is read only ("Code of relay 1 of the door phone, set by its provisioning."); "Type" "URL" fills the relay URL and username ("Username and password of the web interface of the door phone."); "Add gate" is disabled when every relay has a gate.
"Create": "Video source has been created."; NethVoice CTI users of the chosen profiles see the source.
A door phone that is not registered: "URL" stays empty with "The door phone is not registered: enter the address the PBX uses to reach it.".
As the superadmin, change the URL of a door phone source to another address (e.g. the public address of its site) + "Next": "Unknown door phone address"; "Send password to " confirms it ("The PBX sends the password of the door phone to .") and the source is created; "Enter password" lets you type it instead.
When every door phone has a source, "Create from a door phone" is disabled with "All door phones already have a video source"; with no door phones: "No door phones in Devices".
Test Case 8 - Video sources: edit, password and certificates
"Edit" a source: no steps, the stored image and codec are shown, "Changes to the connection are saved only if the test succeeds.", "Password" empty with "Leave empty to keep the current password.".
Rename it: "Renaming a source also renames the permission that enables it in the profiles."; "Save": "Video source has been updated.".
Change the address of the device: "Enter the password again to connect to a different device."; "Save" without it: "Enter the password again: the device address has changed"; with the password the test runs and the source is saved only if it passes. Another path on the same device keeps the stored password.
Edit a door phone source: remove, add and move gates: each gate keeps the code of its relay.
Close the drawer with changes (Esc): "Unsaved changes" asks before discarding.
An rtsps:// or https:// device with a self-signed certificate: "The certificate of the device is not valid." with "If the device has a self-signed certificate, select Skip TLS certificate verification."; select it: the test passes and the certificate is pinned when saved.
Replace the certificate of that device: the row shows "Certificate changed" and the PBX refuses the device until the source is saved again.
Test Case 9 - Video sources in NethVoice CTI
Sign in to NethVoice CTI with a user of one of the chosen profiles (the profile has "Video sources panel" enabled) > Video sources: while a source connects it shows a loading state with "Loading video…", then the live video; a camera that needs time for the first frame shows "Waiting for the picture…"; after a network drop "Reconnecting…".
A source that cannot be reached shows "The video source is not reachable. Retrying…" and comes back by itself when the camera is back; a snapshot source that fails shows "Video feed not available".
"Expand" a source: it opens as a dialog over the page with the name of the source, its extension and a close button (tooltip "Close") that has the focus; Tab stays inside the dialog; Esc, the close button, "Collapse" or a click outside close it and the focus goes back to the page.
In the expanded view open a URL gate ("Open ", or "Choose what to open" with several gates): the toast "Command sent" / "The opening command was sent to " is shown above the dialog; the gate opens.
Open a DTMF gate without a call in progress: "Answer the call first. The opening code is sent during the call."; let the door phone call the user, answer and open: the gate opens.
"Call" from the expanded view closes it and calls the extension of the source.
A user whose profile does not have the source does not see it.
Test Case 10 - Instance updated from an older version
Update an instance installed with the previous stable release (with existing http snapshot video sources) to the PR testing image: the update completes; runagent -m <instance> env | grep MEDIAMTX shows the video gateway ports, and the RTP/SIP ports of the instance are unchanged.
Repeat on an instance whose TCP port range is full: the update still completes, reusing unused ports of the instance.
The existing sources are listed with their profiles, tested and still shown in NethVoice CTI; an existing source with an https:// address shows "Certificate not pinned" until it is saved again.
Create an RTSP source on the updated instance: it works in NethVoice CTI as on a new instance.
Test Case 11 - Phonebook: database source
With nothing configured: "No phonebook sources configured" with "Create phonebook source" and "No contacts imported" with "Import contacts".
"Create phonebook source": "Step 1/3", "Type" is "MySQL", "Query" is SELECT * FROM [table]; press "Next" with empty fields: "Enter a name", "Enter the name", "Enter the address", "Enter the username", "Enter the password" and "Replace [table] with the name of the table".
"Type" "MS SQL Server", "Address" erp-db\SQLEXPRESS: "Enter the address of the server, not the name of the instance. For a named instance, enter its port in Port."; name of an existing source in another case: "A phonebook source with this name already exists. Enter another name.".
Back to "MySQL", fill "Name", "Database name", "Address" crm-db.example.com, "Username", a wrong "Password", a "Query", then "Next": "Cannot connect to database" with "The server rejected the username or password. Check the credentials." and "Show details"; it stays on "Step 1/3". A wrong table: "Cannot run query" with "The database returned an error. Check the query.".
Right data and "Next": "Step 2/3" with "Field mapping" and "Preview" ("First 3 of rows."); columns named like a phonebook field are mapped by themselves; a field already chosen is not offered for another column; "Next" with a column without a field: "Select a field"; choose "Not imported".
Map no column to "Name": "No column for Name" with "Contacts will be imported without a name. Choose Name for the column with the names of the contacts."; it does not block "Next".
"Step 3/3": "Visible to" is "Everyone" and "Automatic sync" is "Enabled"; choose "Selected groups" and "Create": "Select at least one group"; choose a group and "Create": "Phonebook source has been created.", the row shows "Syncing…" and then "Today at ".
The row shows "Name", "Type" "MySQL", "Visible to" with the group, "Sync" "Every hour" and "Last sync"; a failed sync shows "Failed today at " with the cause in a tooltip.
"Edit" the source: no steps, "Type" disabled, "Password" empty with "Leave empty to keep the current password."; "Show preview" shows the rows; set "Automatic sync" to "Disabled", rename it and "Save" without the password: "Phonebook source has been updated.", "Sync" shows "-".
"Edit" and change "Address": "Enter the password again to connect to a different server.".
(NethVoice CTI) The contacts of the source appear in the phonebook only for the users of the chosen group and cannot be changed there.
Test Case 12 - Phonebook: CSV and Infinity Zucchetti sources, sync and delete
"Create phonebook source", "Type" "CSV": "File" offers "Download from a URL" and "Upload file"; URL file:///srv/contacts.csv: "Enter a URL starting with http:// or https://, without spaces"; https://intranet.example.com/contacts.csv + "Next" reads the file ("CSV file in UTF-8, with the column names in the first row. It's downloaded at every sync.").
"Upload file" + "Next" without a file: "Choose a file"; a .xlsx file: "Choose a .csv or .txt file"; a file larger than 8 MB: "The file is larger than 8 MB"; an empty file: "The file is empty".
Upload a CSV with accented names and "Next": the preview shows the accents; complete the steps and "Create": the source is created and synchronized.
"Edit" the uploaded CSV source: "Upload a file only to replace the current one.".
"Type" "Infinity Zucchetti": "URL" (e.g. https://example.infinity.zucchetti.com, "URL of the Infinity Zucchetti APIs."), "Username", "Password"; "Next" shows "The fields of Infinity Zucchetti go to these phonebook fields." with a fixed mapping and the preview. Wrong URL: "Cannot connect to Infinity Zucchetti".
Row menu: "Sync now" and "Delete"; "Sync now" on a source with "Automatic sync" disabled works too ("Syncing…", then the new "Last sync").
Row menu > "Delete": "Phonebook source will be permanently deleted. Its contacts will be removed from the phonebook and users won't see them in NethVoice CTI anymore."; confirm: "Phonebook source has been deleted.".
(NethVoice CTI) After the delete the contacts of the source are no longer in the phonebook.
Test Case 13 - Phonebook: import contacts
"Import contacts": "Step 1/3", "Next" without a file: "Choose a file"; a .xlsx file: "Choose a .csv or .txt file".
Choose a CSV with accented names, one row without a name, and "Next": "Step 2/3" with the mapping and the preview; "Owner ID" is not offered; with no column mapped to a name, "Next" shows "No column for Name" with "Contacts without a name cannot be imported. Choose Name, First name or Last name for the column with the names of the contacts." and stays on "Step 2/3".
Map the names and "Next": "Step 3/3" with "Visibility and owner", "1 row will be skipped" and "Rows without a name or not valid are skipped. The other contacts will be imported.".
"Import" without owner: "Select an owner"; "Owner" lists only users with an extension (e.g. <user> (201)), "The user who can change the contacts in NethVoice CTI."; choose one, "Visible to" "Everyone", "Import": "Contacts imported" / " contacts have been imported into the phonebook.".
The history under "Import contacts" shows date, "Owner", "File", " imported" with "1 row skipped" (tooltip "1 row has been skipped because it has no name or isn't valid") and "Visible to".
(NethVoice CTI) The imported contacts appear in the phonebook (accents included); the owner can change them, the other users cannot.
With more than 5 sources or imports change page and page size, reload: both tables keep them.
Test Case 14 - Parameterized URLs
With no URLs: "No parameterized URLs configured" with "Create parameterized URL".
"Create parameterized URL" and press "Create" with empty fields: "Enter a name", "Enter the URL" and "Select a profile"; name of an existing URL in another case: "A parameterized URL with this name already exists. Enter another name."; 51 characters: "Use at most 50 characters".
URL crm.example.com/open?number=: "Enter a URL that starts with http:// or https://, e.g. https://crm.example.com"; type https://crm.example.com/open?number= and click $CALLER_NUMBER under "Insert a placeholder": it is inserted where the cursor is.
"Profile" lists only the profiles without a URL ("Users with this profile open the URL in NethVoice CTI. Each profile can have one URL."); choose one, set "Queue calls only" to "Enabled" ("Open the URL only for calls that ring in a queue"), "Create": "Parameterized URL has been created."; the row shows "Name", "URL", "Profile" and "Queue calls only" (others "All calls").
Row menu > "Duplicate": "Create parameterized URL" with <name> (copy) and the same URL; choose another profile and change "Queue calls only": "Other profiles use this URL" with "Queue calls only will also change for ."; "Create" adds a row for the new profile.
When every profile has a URL: "Create parameterized URL" is disabled with "All profiles already have a parameterized URL" and the row menu has only "Delete".
"Filter parameterized URLs" matches name, URL, profile and calls (e.g. queue calls); a text that matches nothing: "No parameterized URLs found" with "Try different or fewer words." and "Clear filter".
Type a filter, change page, reload: filter and page are kept.
(NethVoice CTI) Call a user of the profile from 0555010123 through a queue: NethVoice CTI opens the URL with the caller number; a direct call does not open it while "Queue calls only" is enabled.
Row menu > "Delete": "Parameterized URL will be permanently deleted. Users with profile won't be able to open it in NethVoice CTI anymore."; confirm: "Parameterized URL has been deleted.".
Test Case 15 - Administrator that can open only Integrations: cards, phonebook and URLs
Sign in with the administrator that can open only Integrations: the side menu shows only "Integrations" and the tabs work.
Create, edit, duplicate and delete a parameterized URL, a customer card and a database not on the PBX: everything works as for admin.
"Templates": "Layouts of the customer cards, written in HTML and EJS. Only the superadmin can create, change or delete them."; no "Create template", no "Edit" and no row menu; "Show" opens "Template " with "Only the superadmin can change the templates.", "Code" read only, no "Preview" and only "Close".
"Databases": the databases of the PBX have no "Edit" and no menu and their status is "Unknown"; "Add database" with an address of the PBX (e.g. 127.0.0.1) + "Test connection": "Enter a server other than the PBX" on "Address".
"Create customer card": "Database" does not offer the databases of the PBX; "Edit" an existing card on a PBX database: "Query" is read only with "Only the superadmin can change the query and show the preview of a card on a database of the PBX.", "Show preview" is disabled; rename it and "Save": the query is kept.
"Phonebook": database sources on the PBX have no "Edit" (menu still "Sync now" / "Delete"); create a database source with "Address" 127.0.0.1 + "Next": "Enter a server other than the PBX"; CSV URL http://192.0.2.15/contacts.csv + "Next": "This URL cannot be used. Enter a public address starting with http:// or https://.".
"Edit" a database source not on the PBX and change "Query": "Enter the password again to change the database, the user or the query."; "Save" without it: "Enter the password"; with it the source is saved.
Create a CSV source with "Upload file" and "Import contacts": both work as for admin.
Test Case 16 - Administrator that can open only Integrations: video sources
Create, test, edit and delete a camera source: everything works as for the superadmin.
Use an address of the PBX in the URL (or in a URL gate): "This is an address of the PBX: enter the address of the device" on the field, before any test.
A source that points to the PBX node is listed without "Edit".
A door phone source moved to another address asks for the door phone password ("Only the superadmin can confirm another address of the door phone: enter the password to use this address").
Activity
AmaLuci commentedon Nov 19, 2026
Video sources
Mockups ready in Figma here
AmaLuci commentedon Nov 19, 2026
Customer cards
Mockups ready in Figma here
tonyco97 commentedon Nov 20, 2026
Test
PR: nethesis/ns8-nethvoice#1201 (testing image
ghcr.io/nethesis/nethvoice:pr-1201.*)This comment replaces the previous test plan: the tabs were redesigned and the video sources now support RTSP streams, gates and door phones.
Setup:
domain admins(superadmin).rtsps://orhttps://).https://<voice host>/nethvoice/, page Integrations. Run every test case in dark and light theme and at least once at phone width (390 px).Test Case 1 - Tabs
/nethvoice/integrations/external-servicesopens Integrations.Test Case 2 - Customer cards: databases
99999: "Enter a port between 1 and 65535".crm, "Address"crm-db.example.com, "Username", a wrong "Password", empty "Port", and press "Add": "Cannot connect to the database" with "The database cannot be reached with these data."; nothing is added ("Changes to the connection are saved only if the test succeeds.").192.0.2.20: "Enter the password again to connect to a different server."; "Test connection" without the password shows "Enter the password".Test Case 3 - Customer cards: templates
<name>copyand the same code; "Create": it is listed without "Built-in".open invoices: "Use letters and digits only"; name of an existing template in another case (e.g.Table): "Another template, built-in or custom, has the same name".<p><%= results[0].name %> Forlì</p>in "Code": the "Preview" updates while typing, accented characters included; "Open EJS documentation" opens ejs.co.[{"name": "Anna",}]: "Enter valid JSON";["Anna"]: "Enter an object or a list of objects, one for each row"; empty: "Enter the sample results".<%= missing %>: "Cannot show the preview" with "The template cannot be rendered with these results:" and the error.Test Case 4 - Customer cards: cards
<address>:<port> · <type>(or "Not connected"); choosecrm, a "Template" and a "Query" with$NUMBER(e.g.SELECT * FROM orders WHERE phone = '$NUMBER').$NUMBER)abc+ "Show preview": "Use digits only, optionally preceded by +";0555010123+ "Show preview": the card is rendered inside a tab named like the card, accented characters included; in dark theme "Shown on a light background, the one templates are designed for." is shown.<name> (copy)and the same data; "Create" works.0555010123(e.g. from an incoming call): a tab with the name of the card shows the data of the database next to General info; a user of another profile does not see it./nethvoice/integrationsopens the last tab used.Test Case 5 - Video sources: list and connection tests
Main entrance (300)), gates, profiles and a status: every source is tested when the tab opens ("Testing connection…"), then "Connected" or "Not connected".POST /freepbx/rest/cti/sources/testrun at the same time; the list stays usable meanwhile.parking (301); the "Profile" and "Status" filters combine; while tests are running a "Status" filter says "Testing the connection of N video sources: the Status filter shows them when the tests end.".Test Case 6 - Video sources: create an RTSP camera with gates
ftp://192.0.2.52/stream1: "Enter a URL that starts with rtsp://, rtsps://, http:// or https://"; the name of an existing source in another case (e.g.parking gate!): "Another video source has the same name".rtsp://127.0.0.1/live: "Loopback and link-local addresses cannot be used: enter the address of the device on the network".*1x: "Use only digits, *, #, + and the letters A to D".ftp://192.0.2.60/openshows "Enter a URL that starts with http:// or https://";http://192.0.2.60/cgi-bin/open?door=1with "Request method" "POST" is accepted; move it up with "Move up"; up to 10 gates ("You can add up to 10 gates").http://orhttps://snapshot URL of a camera (JPEG or PNG) works the same way; a web page shows "The address does not return a supported video stream or a JPEG or PNG image.".Test Case 7 - Video sources: create from a door phone
Test Case 8 - Video sources: edit, password and certificates
rtsps://orhttps://device with a self-signed certificate: "The certificate of the device is not valid." with "If the device has a self-signed certificate, select Skip TLS certificate verification."; select it: the test passes and the certificate is pinned when saved.Test Case 9 - Video sources in NethVoice CTI
Test Case 10 - Instance updated from an older version
runagent -m <instance> env | grep MEDIAMTXshows the video gateway ports, and the RTP/SIP ports of the instance are unchanged.https://address shows "Certificate not pinned" until it is saved again.Test Case 11 - Phonebook: database source
SELECT * FROM [table]; press "Next" with empty fields: "Enter a name", "Enter the name", "Enter the address", "Enter the username", "Enter the password" and "Replace [table] with the name of the table".erp-db\SQLEXPRESS: "Enter the address of the server, not the name of the instance. For a named instance, enter its port in Port."; name of an existing source in another case: "A phonebook source with this name already exists. Enter another name.".crm-db.example.com, "Username", a wrong "Password", a "Query", then "Next": "Cannot connect to database" with "The server rejected the username or password. Check the credentials." and "Show details"; it stays on "Step 1/3". A wrong table: "Cannot run query" with "The database returned an error. Check the query.".Test Case 12 - Phonebook: CSV and Infinity Zucchetti sources, sync and delete
file:///srv/contacts.csv: "Enter a URL starting with http:// or https://, without spaces";https://intranet.example.com/contacts.csv+ "Next" reads the file ("CSV file in UTF-8, with the column names in the first row. It's downloaded at every sync.")..xlsxfile: "Choose a .csv or .txt file"; a file larger than 8 MB: "The file is larger than 8 MB"; an empty file: "The file is empty".https://example.infinity.zucchetti.com, "URL of the Infinity Zucchetti APIs."), "Username", "Password"; "Next" shows "The fields of Infinity Zucchetti go to these phonebook fields." with a fixed mapping and the preview. Wrong URL: "Cannot connect to Infinity Zucchetti".Test Case 13 - Phonebook: import contacts
.xlsxfile: "Choose a .csv or .txt file".<user> (201)), "The user who can change the contacts in NethVoice CTI."; choose one, "Visible to" "Everyone", "Import": "Contacts imported" / " contacts have been imported into the phonebook.".Test Case 14 - Parameterized URLs
crm.example.com/open?number=: "Enter a URL that starts with http:// or https://, e.g. https://crm.example.com"; typehttps://crm.example.com/open?number=and click$CALLER_NUMBERunder "Insert a placeholder": it is inserted where the cursor is.<name> (copy)and the same URL; choose another profile and change "Queue calls only": "Other profiles use this URL" with "Queue calls only will also change for ."; "Create" adds a row for the new profile.queue calls); a text that matches nothing: "No parameterized URLs found" with "Try different or fewer words." and "Clear filter".0555010123through a queue: NethVoice CTI opens the URL with the caller number; a direct call does not open it while "Queue calls only" is enabled.Test Case 15 - Administrator that can open only Integrations: cards, phonebook and URLs
127.0.0.1) + "Test connection": "Enter a server other than the PBX" on "Address".127.0.0.1+ "Next": "Enter a server other than the PBX"; CSV URLhttp://192.0.2.15/contacts.csv+ "Next": "This URL cannot be used. Enter a public address starting with http:// or https://.".Test Case 16 - Administrator that can open only Integrations: video sources
AmaLuci commentedon Nov 20, 2026
Parameterized URLs
Mockups ready in Figma here
AmaLuci commentedon Nov 20, 2026
Phonebook sources
Mockups ready in Figma here