vicigeeksimple guides
Browse
Beginner course

Phone system (Asterisk) · Beginner course · Lab preparation

Prepare the internal practice destination

Check the browser-phone transport, add the exact internal Echo route and prove its effective dialplan before activating a practice campaign.

Start this lesson

1. Define exactly what the lab may call

Use synthetic lead number 9001001 with phone code 1. With campaign Dial Prefix x and empty Manual Dial Prefix the intended dial string is19001001. Do not substitute a public phone number, carrier test number or an unreviewed extension.

The course fixture is group LABTEAM, user learner1, station 8001, MANUAL campaign LAB01 and list 90001. Existing IDs must be identified before reuse. Keep LAB01 inactive while creating the list, importing leads and checking the route.

On a carrier-free lab, confirm no external carrier has been configured. On an explicitly authorized shared lab, inspect the effective route and preserve existing phones, carrier settings and agent sessions. A carrier database pattern alone cannot establish the order or contents of Asterisk’s generated includes.

2. Check HTTPS and the actual SIP stack

Open the lab using its valid HTTPS hostname. In Admin → System Settings inspect Webphone URL, then inspect Admin → Templates and Settings Containers. The inspected ViciBox 12 system has VICIphoneSIP, VICIphonePJSIP and VICIPHONE_SETTINGS; WEBRTC_PJSIP is not present. Use the template for the actual channel driver.

For the exercised branch, chan_sip owns WebSocket. Station8001 uses Client Protocol SIP with the course-only LABSIP8001 copy of VICIphoneSIP, adding context=default. The browser still needs secure WebSocket and encrypted media. The presence of PJSIP in a dropdown does not prove its WebSocket transport works.

The official PJSIP document includes older port-switch/reboot instructions despite its ViciBox 12 introduction. Do not apply those to an existing shared server just to complete this course. A transport ownership change requires separate planning and is outside this exercise.

  1. On the dialer run asterisk -rx "http show status". Confirm the intended HTTPS listener and /ws URI. A listener proves service exposure only; the browser must later connect and register.
  2. Compare the configured browser-phone host and certificate to the hostname used by the browser. Do not bypass a certificate failure and call the check passed.
  3. Inspect the selected phone template’s certificate/key paths without printing the private key. Confirm the files exist and the service can use them.
  4. For this SIP branch, inspect the existing chan_sip WebSocket setting and use the phone lesson’s complete VICIphoneSIP and VICIPHONE_SETTINGS recipes. Preserve existing working templates.

You should seeYou know the working HTTPS/WebSocket stack and the matching template. A later registration check still has to pass.

Create the template/container and station 8001

Certificate troubleshooting

3. Save the exact internal destination

First record the current active-call count and the complete System Settings Custom Dialplan Entry privately. If19001001 already exists, inspect its owner and behavior; do not overwrite it. Check the local call-log listener with ss -ltn '( sport = :4577 )'. A listener is required for the logging step but is not proof that a call will be logged.

Open Admin → System Settings → Custom Dialplan Entry. Append the four lines below to the existing text, preserving every prior line. SUBMIT, reopen System Settings, and compare the saved text. This is an authorized configuration change, not a read-only check.

Before you use it
Record the complete existing field, confirm the ID is unused and keep LAB01 inactive.
Exact internal Echo entry
exten => 19001001,1,AGI(agi://127.0.0.1:4577/call_log)exten => 19001001,n,Answer()exten => 19001001,n,Echo()exten => 19001001,n,Hangup()
Success looks like
Reopening the field shows all four appended lines unchanged.
Stop if
A validation error, lost prior text or existing conflicting route means stop and restore the recorded state.

Inspect custom-dialplan permission

Duration 0:04
Native inspection · no submitted change

The native custom-dialplan permission is shown without a submitted change or route generation.

Steps and result2 steps

The native custom-dialplan permission is shown without a submitted change or route generation. The frames come from the actual pinned VICIdial demo, not a recreated form.

Observed scopeThe native custom-dialplan permission is shown without a submitted change or route generation.

Read the chapter notes
  1. Inspect the saved native field

    The native custom-dialplan permission is shown without a submitted change or route generation.

  2. Observe the field without submitting

    The brief focus inspection does not save a setting, place a call or establish runtime acceptance.

November 7, 2026 · ViciBox 12 / Asterisk 18.26.4-vici; read-only native Admin. The native custom-dialplan permission is shown without a submitted change or route generation. Use fullscreen to read the original field labels.

View a still screenshot

Permission for native custom dialplan entries

Open to enlarge
Permission for native custom dialplan entries
Actual System Settings control Allow Custom Dialplan Entries is 1 on the checked build.
Capture detailsThis permission is separate from saving or generating a particular route.

You should seeThe route text is saved. It is not ready for a call until the generated effective dialplan is checked.

4. Wait for configuration generation, then inspect

On the inspected installation, saving Custom Dialplan Entry alone did not regenerate the route. Reopen Admin → System Settings, confirm the saved four lines, set Reload Dialplan On Servers to 1 and SUBMIT as an authorized normal configuration reload. This control requests generation on eligible dialers; review the scope before using it on a cluster.

The existing scheduled generator runs once a minute and writes the system-wide context vicidial-auto-system-setting-custom. Wait for that pass, then inspect the effective dialplan below. Do not overwrite generated files, restart Asterisk or reboot to substitute for this check. If the route remains absent, inspect the generator’s configuration/logs and keep LAB01 inactive.

5. Verify the effective route and its order

Run asterisk -rx 'dialplan show 19001001@default'. Inspect every returned matching context and its include order. You need the local call_log AGI, Answer, Echo and Hangup for this exact destination, with no earlier provider Dial branch.

If Asterisk says “There is no existence of 19001001@default extension”, the route is absent. That was the actual initial November 6 stop state. Do not activate LAB01 or dial repeatedly. Return to the saved text and generator checks.

Check installed behavior using asterisk -rx 'core show application Echo'. The inspected18.26.4-vici build says Echo does not answer automatically and exits on#. That is why Answer precedes Echo and the listening exercise avoids#.

Before you use it
Run on the dialer handling the course station after the saved route has been generated.
Inspect the exact effective route
asterisk -rx 'dialplan show 19001001@default'
Success looks like
The exact destination has the four intended local priorities and no earlier provider match. The approved prepared-state output was inspected before activation.
Stop if
No existence of 19001001 means stop. After the documented rollback, absence is expected; repeat preparation only in your authorized lab.

You should seePassing these checks permits the authorized internal attempt; it does not prove registration, audio or a saved report.

  • The effective exact destination is19001001, with the intended local application sequence.
  • No provider route is selected before the custom entry.
  • The campaign uses no prefix (x), Omit Phone Code N and the expected synthetic number.
  • The local logging listener is available; successful logging still requires the later report check.

6. Use the failure as a specific next step

  1. No /ws listener or certificate mismatch: finish browser-phone infrastructure before creating a call. Use the certificate guide; do not change SIP transport ownership on a shared server without a separate approved plan.
  2. Template absent: use the phone lesson’s complete template/container recipes for the matching SIP branch. A similarly named PJSIP template is not interchangeable.
  3. Saved text exists but route is absent: inspect generation on the same server that will handle the call. Keep the campaign inactive.
  4. Another route handles19001001 first: stop and use a separately isolated practice environment or a reviewed scoped plan. Do not disable the existing carrier to make the test pass.
  5. Route passes but registration or audio fails: follow the first-call failure branch; route existence is only one prerequisite.

Start the internal call acceptance exercise

Return to practice-system checks

7. Restore the recorded configuration without deleting evidence

After the exercise, hang up and log out only your session and set LAB01 inactive. Restore recorded campaign settings. Compare Custom Dialplan Entry with the before-copy, remove only the course lines, save the restored entry, and request the normal generation using Reload Dialplan On Servers = 1 as in setup. Wait for the one-shot request to clear and inspect the effective route: the course route must be absent. Preserve intervening authorized changes.

Disable the temporary course phone/user and remove the temporary course-only group access created for this exercise. Retain the synthetic list, call history, disposition and evidence worksheet. Do not delete records to hide a failed test or overwrite a shared setting with a guessed default.

Inspect the native dialplan reload control

Duration 0:04
Native inspection · no submitted change

Read-only System Settings inspection. Value0 is the restored baseline; no reload was requested in this recording.

Steps and result2 steps

Read-only System Settings inspection. Value0 is the restored baseline; no reload was requested in this recording. The frames come from the actual pinned VICIdial demo, not a recreated form.

Observed scopeRead-only System Settings inspection. Value0 is the restored baseline; no reload was requested in this recording.

Read the chapter notes
  1. Inspect the saved native field

    Read-only System Settings inspection. Value0 is the restored baseline; no reload was requested in this recording.

  2. Observe the field without submitting

    The brief focus inspection does not save a setting, place a call or establish runtime acceptance.

November 7, 2026 · ViciBox 12 / Asterisk 18.26.4-vici; read-only native Admin. Read-only System Settings inspection. Value0 is the restored baseline; no reload was requested in this recording. Use fullscreen to read the original field labels.

View a still screenshot

Find Reload Dialplan On Servers

Open to enlarge
Find Reload Dialplan On Servers
Actual native System Settings field, captured read-only on November 7.
Capture detailsValue 0 means no reload is requested by this control at capture. The guide explains when a separately approved change needs a request and independent route verification.

You should seeThe campaign is inactive, temporary routing is restored, and the evidence record preserves what actually happened.

Checks and sources

What was checked

  • On November 6, 2026 the approved lab setup created a course-only LABSIP8001 SIP/WebRTC template and station 8001, then saved the exact internal Echo route. Native Reload Dialplan On Servers=1 requested the existing generator; no daemon restart, reboot or transport switch was performed.
  • Before activation, Asterisk 18.26.4-vici showed exactly one matching19001001 extension with local call_log, Answer, Echo and Hangup; station 8001 had context default. One internal attempt followed. Its limited received-tone evidence and unresolved zero-duration report are documented in the first-call lesson.
  • Afterward the captured prior campaign/custom-route settings were restored exactly, new user/phone disabled, template unassigned and course group access removed. Synthetic records were retained. The inspected host had one pre-existing carrier/live agent; neither was changed.

Primary references

Sources

  1. ViciBox 12 Express installation checksViciBox · accessed November 6, 2026
  2. VICIdial PJSIP support and version constraintsVICIdial · accessed November 6, 2026
  3. Echo application reference for Asterisk 20; compare installed18 helpAsterisk · accessed November 6, 2026
  4. VICIdial official source snapshotsVICIdial · accessed November 6, 2026