vicigeeksimple guides
Browse
Operations

Running your system · Practical guide

VICIdial SVN upgrade: the 3968 to 4037 lab case

Study the recorded source and schema upgrade, identify what was actually verified, and build a version-specific rehearsal plan. The inspected revision 4037 installer’s --test flag does not prevent installation writes.

Start the guide

1. Separate the historical case from your own starting state

  1. The recorded November 2026 case started at SVN 3968 and database schema 1736 and ended at SVN 4037 and schema 1748. Those numbers describe that lab; they are not a target recommendation for another installation.
  2. In your actual source checkout, record svn info, svn status and a private svn diff. Inventory runtime-only customizations separately because they may not appear in the source working copy.
  3. Using the verified read-only database connection, run SELECT db_schema_version FROM system_settings;. Record Admin/API/Asterisk versions and the configured database name separately from SVN revision.
  4. Compare the exact target’s upgrade SQL and installer source with that baseline before writing the maintenance procedure. Do not run an installer merely to discover what its flags mean.
Before you use it
Use the actual working-copy path. This existing capture is the lab’s post-upgrade observation, not your baseline.
Historical lab working-copy revision
svn info --show-item revision /usr/src/astguiclient/trunk
Evidence · Recorded ViciBox 12 lab · SVN 4037 · read-only inspection

Captured demo response · 2026-11-04T08:36:23.981542Z. Any filtering, hidden values or test-only data are identified in the capture label. Select Replay transcript to read the recorded output.

Command output line: svn info --show-item revision /usr/src/astguiclient/trunk
4037
Success looks like
The lab returned 4037 at 08:36 UTC on November 4, 2026.
Stop if
If the path is not a working copy, locate the actual checkout before proceeding.

Observed SVN revision

Open to enlarge
Historical read-only lab command showing working-copy revision 4037; it does not prove schema or runtime deployment.
Rendered transcript of the exact read-only command executed on the ViciBox 12 lab, SVN 4037, 2026-11-04.
Capture detailsThis inspection does not establish a completed call or restore.

You should seeYour worksheet has distinct source, runtime, schema and service versions. A clean SVN revision does not prove that runtime files match the checkout.

Create and verify the read-only database connection

2. Treat revision 4037’s --test invocation as a change

  1. The clean lab install.pl at SVN revision 4037 was copied for read-only inspection on November 6, 2026. Its SHA-256 is 8ee133ad3f324b544f5d07b87e974433475a3498bef09174c656ec99de56609f. No installer was executed for this inspection.
  2. Its help advertises --test as not copying files, but parsing the flag only assigns $TEST and $T at line 276; neither variable is consulted later. Therefore --test --no-prompt is not a dry run in this pinned file.
  3. Inspect the exact file you plan to use. Read every configuration-write, file-copy, process-start and database-update path and the conditions controlling it. The installed configuration and other flags determine which paths are reached; the misleading test flag does not suppress them.
  4. Keep all installer invocations inside the approved change/rollback scope. For rehearsal, use an isolated clone and compare files, processes and database state before and after; do not run --test against the original host as a preflight.
What the inspected revision 4037 source can doScroll sideways to compare columns
Source locationEffectWhat the test flag changes
Lines 2669–2671Open the selected astguiclient configuration for writingNo later $TEST/$T guard prevents this.
Lines 2759–2930Create directories and copy application, AGI, sound and web files, subject to other flagsThe test flag is not consulted.
Lines 2879–2880Start the ip_relay control path when that branch is reachedThe test flag does not suppress it.
Lines 3046–3123Connect using configured DB credentials and attempt SVN version updates in servers/system_settingsSuccessful connectivity can lead to updates; the test flag is not consulted.

You should seeThe historical --test invocation is classified as a potentially mutating installer run, separate from syntax checks. The retained evidence does not isolate every write made by that one invocation.

Read the installation-methods source inspection

3. Write the rehearsal and rollback contract before execution

  1. Create the private database and file backup described in the backup guide. Include source, deployed runtime, configuration, recording scope and local customizations, then verify the artifacts and restore them in an isolated target.
  2. Identify the exact statements after your current db_schema_version marker through the approved target in extras/upgrade_2.14.sql. Rehearse that reviewed sequence against a clone with representative configuration; record errors and data/count comparisons.
  3. Rehearse the exact target installer as a mutating operation. Compare the configuration and deployed files before/after and check its database/process effects. PHP lint and perl -c are syntax-oriented checks, not proof that installation or application behavior is safe; Perl compilation can also load modules and BEGIN blocks.
  4. Define the maintenance drain, how new work stays stopped, acceptance tests and the rollback decision time. A zero-call observation alone does not prevent new calls from beginning.
  5. Pair the old source/runtime/configuration with the matching database recovery point. Reverting only SVN after a schema change is not a proven rollback.

You should seeA rehearsal is ready only when the exact source/schema changes, required tests and matching restore path are known. An archive checksum alone does not prove recoverability.

Create the scoped private backup

Plan a restore drill

4. Read the recorded sequence with its real change boundary

  1. The case record says the operator confirmed zero active calls, backed up source/runtime/configuration and the mostly MyISAM vicidb database, and preserved runtime-only API and Zoiper changes. The dump used --lock-all-tables with the required object/data options; that consistency choice can block writes.
  2. The operator updated the checkout with svn update -r4037 --accept=postpone and reviewed three API conflicts, combining the retained custom KPI behavior with upstream changes. The pending upgrade SQL after schema 1736 was reviewed and rehearsed on a clone.
  3. The record then lists PHP lint, perl -c and install.pl --test --no-prompt with the actual configuration before the pending SQL and a later install.pl --no-prompt invocation. The installer inspection above means the first --test invocation belongs to the change sequence; it must not be described as a harmless lint/dry-run step.
  4. The pending SQL and final installer invocation were followed by version, syntax and selected aggregate checks. This is the historical sequence, not a script to copy to another host. Unexpected conflicts, schema errors or installer writes must stop your own procedure at its agreed recovery decision.
What may transfer from the caseScroll sideways to compare columns
Case detailReusable lessonMust be re-derived
Three API conflictsReview each conflict and preserve intended behaviorYour changed files and merge decisions.
Schema 1736 → 1748Review only the appropriate version transitionYour starting marker, target marker and statements.
Mostly MyISAM dumpChoose consistency controls for actual table enginesYour engine inventory, downtime and backup method.
Two installer invocations, one labeled --testRead the flag’s implementation before treating it as safeYour exact installer source, flags, configuration and effects.

You should seeThe lab ended at schema 1748. The source inspection corrects the meaning of the test flag without inventing which individual files or rows changed during each historical invocation.

5. Distinguish observed checks from untested outcomes

  1. For your rehearsal, compare svn info, the deployed-file manifest and SELECT db_schema_version FROM system_settings; with the approved target. Check the Admin and API versions independently; do not substitute an SVN number for all three.
  2. Review API permission changes before exercising a protected function. In the recorded revision 4037 case, Agent API Access was required for protected Non-Agent API functions. The public version endpoint did not verify permission or an authenticated business operation.
  3. Run the planned synthetic application tests for the actual workflows affected by the upgrade. Record agent login, station registration, call/audio, disposition, recording/integration behavior and full restore as separate results; leave unperformed tests explicitly unverified.
  4. If any required acceptance check fails, keep the change in its maintenance state and use the agreed rollback decision. Do not resume production solely because lint or a version query passed.
Before you use it
Run only on the authorized Asterisk host. This capture is a single post-upgrade observation; calls can change immediately afterwards.
Historical lab active-call snapshot
asterisk -rx 'core show channels count'
Evidence · Recorded ViciBox 12 lab · SVN 4037 · read-only inspection

Captured demo response · 2026-11-04T08:36:24.006485Z. Any filtering, hidden values or test-only data are identified in the capture label. Select Replay transcript to read the recorded output.

Command output line: asterisk -rx 'core show channels count'
0 active channels
0 active calls
1739 calls processed
Success looks like
The lab returned zero active channels and calls at 08:36 UTC on November 4, 2026.
Stop if
If Asterisk is unreachable, the call state is unknown, not zero.

Observed active call count

Open to enlarge
Historical lab command showing zero active calls at the capture time; not an upgrade acceptance test.
Rendered transcript of the exact read-only command executed on the ViciBox 12 lab, SVN 4037, 2026-11-04.
Capture detailsThis inspection does not establish a completed call or restore.

You should seeThe case recorded SVN 4037, schema 1748, Admin 2.14-969a build 261102-0125, NonAgent API 2.14-212 and 73 passing PHP lint checks. The later zero-call image below does not verify live audio, application correctness or a full restore.

  • Source target and deployed runtime independently matched.
  • Schema transition and representative data checks passed.
  • Protected API behavior tested with intended permissions.
  • Required agent/call/audio/integration tests observed, not inferred from lint.
  • Matching source/runtime/database restore rehearsed or explicitly still unverified.

6. Leave a reviewable go/no-go record

  1. Complete the worksheet with your actual revision pair and test evidence. Keep paths, database dumps, patches and credentials in the private change record.
  2. If a required row is unknown or failed, name the owner and exact next check before approving execution. If all required rehearsal checks pass, the owner can approve that specific procedure and maintenance window.
Before you use it
This worksheet contains no execution command. Fill it from the actual target source and rehearsal, not the historical lab numbers.
Copy the version-specific upgrade record
Source revision: current → approved targetDeployed runtime/customizations inventoried:Schema marker: current → approved targetExact install.pl SHA-256 and reviewed flag effects:Pending SQL scope and clone result:Private backup set / matching restore result:Drain plan and how new work stays stopped:Required acceptance checks / evidence / owner:Rollback trigger, decision time and recovery set:Go / no-go / unresolved check:
Not executed · worksheet or reference text

This sample is a template or reading aid, not a terminal command. There is no output to show.

Success looks like
A reviewer can identify every intended mutation, required acceptance test and matching recovery point.
Stop if
An unreviewed installer flag, incomplete schema rehearsal or untested required restore is a no-go until resolved.

You should seeThe reader leaves with a case-informed upgrade contract whose mutations and evidence limits are explicit.

Checks and sources

What was checked

  • Revision 4037 install.pl was retrieved read-only from the lab working copy on November 6, 2026. svn status was clean; SHA-256 8ee133ad3f324b544f5d07b87e974433475a3498bef09174c656ec99de56609f pins the inspected bytes. The installer member of the official November 4, 2026 source archive has the identical hash. No installer invocation was executed for this review.
  • The test flags are assigned at line 276 and have no later uses in that file. Configuration writes, conditional copies/relay startup and database version-update paths are therefore not suppressed by --test.
  • The historical upgrade evidence records final version and syntax checks. It does not isolate every mutation of the earlier --test invocation or prove a full restore, agent call or two-way audio.

Primary references

Sources

  1. Subversion working copy basicsApache Subversion · accessed November 4, 2026
  2. VICIdial Non-Agent API referenceVICIdial Group · accessed November 4, 2026
  3. mariadb-dump referenceMariaDB · accessed November 4, 2026
  4. Official November 4, 2026 VICIdial source snapshotVICIdial Group · accessed November 6, 2026