<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.voip.ms/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.voip.ms/w/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages</id>
		<title>VoIP.ms Wiki - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.voip.ms/w/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages"/>
		<link rel="alternate" type="text/html" href="https://wiki.voip.ms/article/Special:NewPages"/>
		<updated>2026-11-23T21:21:06Z</updated>
		<subtitle>From VoIP.ms Wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>https://wiki.voip.ms/article/SipWarp</id>
		<title>SipWarp</title>
		<link rel="alternate" type="text/html" href="https://wiki.voip.ms/article/SipWarp"/>
				<updated>2026-10-23T15:18:07Z</updated>
		
		<summary type="html">&lt;p&gt;Scomtois: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:SipWarp-Logo.png|right|80px|thumb|SipWarp Logo]]&lt;br /&gt;
'''SipWarp''' is a free, lightweight SIP softphone for Windows that allows users to make and receive telephone calls directly from their computers using a compatible Voice over IP (VoIP) provider such as '''VoIP.ms'''.&lt;br /&gt;
&lt;br /&gt;
Developed using Rust, C, and Slint, SipWarp offers a modern and resource-efficient desktop interface designed for everyday VoIP communications.&lt;br /&gt;
&lt;br /&gt;
The application can operate in the Windows system tray, allowing users to remain available for incoming calls while working with other applications.&lt;br /&gt;
&lt;br /&gt;
SipWarp supports several features, including:&lt;br /&gt;
&lt;br /&gt;
* SIP-based incoming and outgoing calls.&lt;br /&gt;
* Support for multiple audio codecs, including G.711, G.722, and Opus.&lt;br /&gt;
* CardDAV contact synchronization.&lt;br /&gt;
* CSV and VCF contact importing and exporting.&lt;br /&gt;
* Manual and automatic call recording.&lt;br /&gt;
* Custom WAV ringtones.&lt;br /&gt;
* Configurable microphones, speakers, and headsets.&lt;br /&gt;
* Call history and contact management.&lt;br /&gt;
* Windows system tray operation.&lt;br /&gt;
&lt;br /&gt;
'''Official Website:''' [https://sipwarp.com/ SipWarp]&lt;br /&gt;
'''Supported Operating System:''' Windows&lt;br /&gt;
'''Application Type:''' SIP Softphone&lt;br /&gt;
'''Cost:''' Free&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Before configuring SipWarp with VoIP.ms, ensure that you have the following:&lt;br /&gt;
&lt;br /&gt;
* An active [https://voip.ms/ VoIP.ms account].&lt;br /&gt;
* A SIP subaccount configured in the VoIP.ms Customer Portal.&lt;br /&gt;
* SipWarp installed on a Windows computer.&lt;br /&gt;
* A stable internet connection.&lt;br /&gt;
* A microphone and speakers, or a compatible headset.&lt;br /&gt;
* An active DID (telephone number) if you intend to receive incoming calls from the public telephone network.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' A DID is not required for outgoing calls. However, you must configure a valid and authorized outbound Caller ID.&lt;br /&gt;
&lt;br /&gt;
== Step 1 - Download and Install SipWarp ==&lt;br /&gt;
&lt;br /&gt;
# Visit the official SipWarp website at [https://sipwarp.com/ sipwarp.com].&lt;br /&gt;
# Click '''Download for Windows'''.&lt;br /&gt;
# Download the latest available version.&lt;br /&gt;
# Install or launch SipWarp according to the instructions provided with the download.&lt;br /&gt;
# Open the application.&lt;br /&gt;
&lt;br /&gt;
Once launched, SipWarp displays its main telephone interface, which includes a dial pad and call controls.&lt;br /&gt;
: [[File:SipWarp-Main-Interface.png|right|350px|SipWarp main interface showing the dial pad and call controls.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step 2 - Create a VoIP.ms Subaccount ==&lt;br /&gt;
&lt;br /&gt;
It is recommended to use a dedicated VoIP.ms SIP subaccount for SipWarp instead of configuring the primary account.&lt;br /&gt;
&lt;br /&gt;
This allows you to manage the application's credentials, Caller ID, and calling permissions independently from other devices.&lt;br /&gt;
&lt;br /&gt;
# Log in to the [https://voip.ms/m/login.php VoIP.ms Customer Portal].&lt;br /&gt;
# Navigate to '''Sub Accounts → Create Sub Account'''.&lt;br /&gt;
# Enter a descriptive username, such as &amp;lt;code&amp;gt;sipwarp&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Select '''SIP''' as the protocol.&lt;br /&gt;
# Select '''User/Password Authentication'''.&lt;br /&gt;
# Enter a strong and unique SIP password.&lt;br /&gt;
# Configure the appropriate '''Device Type''' and '''Caller ID Number'''.&lt;br /&gt;
# Review any required calling permissions.&lt;br /&gt;
# Save the subaccount.&lt;br /&gt;
&lt;br /&gt;
Your complete SIP username follows this format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
123456_sipwarp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;123456&amp;lt;/code&amp;gt; represents your VoIP.ms main account username.&lt;br /&gt;
* &amp;lt;code&amp;gt;sipwarp&amp;lt;/code&amp;gt; represents the name of your subaccount.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' The full SIP username, including the underscore and subaccount name, must be entered in SipWarp.&lt;br /&gt;
&lt;br /&gt;
The SIP password is the password assigned to your subaccount, not the password used to access the VoIP.ms Customer Portal.&lt;br /&gt;
&lt;br /&gt;
For more information, refer to [[Sub Accounts|VoIP.ms Subaccounts]].&lt;br /&gt;
&lt;br /&gt;
== Step 3 - Select a VoIP.ms Server ==&lt;br /&gt;
&lt;br /&gt;
VoIP.ms operates multiple Points of Presence (POPs) across North America and internationally.&lt;br /&gt;
&lt;br /&gt;
For optimal performance, select a server geographically close to your location or the server already assigned to your DID.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
montreal.voip.ms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other examples include:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;toronto.voip.ms&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;newyork.voip.ms&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;chicago.voip.ms&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the complete list of available servers, refer to [[Servers|VoIP.ms Servers]].&lt;br /&gt;
&lt;br /&gt;
'''Important:''' The VoIP.ms server used for SIP registration must match the POP assigned to your DID for incoming calls to reach your device correctly.&lt;br /&gt;
&lt;br /&gt;
=== SIP Server Information ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Value&lt;br /&gt;
|-&lt;br /&gt;
| SIP Server / Registrar&lt;br /&gt;
| Your selected VoIP.ms POP&lt;br /&gt;
|-&lt;br /&gt;
| SIP Port&lt;br /&gt;
| 5060&lt;br /&gt;
|-&lt;br /&gt;
| Transport Protocol&lt;br /&gt;
| UDP&lt;br /&gt;
|-&lt;br /&gt;
| SIP Username&lt;br /&gt;
| 123456_sipwarp&lt;br /&gt;
|-&lt;br /&gt;
| Authentication Username&lt;br /&gt;
| 123456_sipwarp&lt;br /&gt;
|-&lt;br /&gt;
| SIP Password&lt;br /&gt;
| Your subaccount SIP password&lt;br /&gt;
|-&lt;br /&gt;
| SIP Domain&lt;br /&gt;
| Same as SIP Server&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Note:''' VoIP.ms also supports alternative SIP ports for compatible configurations. The default UDP port 5060 is sufficient for this guide.&lt;br /&gt;
&lt;br /&gt;
== Step 4 - Configure the SIP Account in SipWarp ==&lt;br /&gt;
&lt;br /&gt;
After creating your VoIP.ms subaccount, open SipWarp and configure the SIP registration settings.&lt;br /&gt;
&lt;br /&gt;
# Open '''SipWarp'''.&lt;br /&gt;
# Click '''Account''' at the bottom of the application window.&lt;br /&gt;
# Enter your VoIP.ms SIP credentials.&lt;br /&gt;
# Configure the SIP server and connection settings.&lt;br /&gt;
# Click '''Save account'''.&lt;br /&gt;
# Wait for the registration status to change to '''Online'''.&lt;br /&gt;
&lt;br /&gt;
=== Account Configuration ===&lt;br /&gt;
&lt;br /&gt;
Use the following configuration as an example:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! SipWarp Field&lt;br /&gt;
! Configuration&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| '''Server'''&lt;br /&gt;
| montreal.voip.ms&lt;br /&gt;
| The VoIP.ms POP selected for your account.&lt;br /&gt;
|-&lt;br /&gt;
| '''Domain'''&lt;br /&gt;
| montreal.voip.ms&lt;br /&gt;
| Use the same hostname as the SIP server.&lt;br /&gt;
|-&lt;br /&gt;
| '''Username'''&lt;br /&gt;
| 123456_sipwarp&lt;br /&gt;
| Your complete VoIP.ms SIP subaccount username.&lt;br /&gt;
|-&lt;br /&gt;
| '''Password'''&lt;br /&gt;
| Your SIP subaccount password&lt;br /&gt;
| Password configured in the VoIP.ms Customer Portal.&lt;br /&gt;
|-&lt;br /&gt;
| '''Display Name'''&lt;br /&gt;
| Your name or business name&lt;br /&gt;
| Name used to identify the SIP account.&lt;br /&gt;
|-&lt;br /&gt;
| '''Port'''&lt;br /&gt;
| 5060 or 0&lt;br /&gt;
| Port 0 allows SipWarp to use its default SIP port.&lt;br /&gt;
|-&lt;br /&gt;
| '''Transport'''&lt;br /&gt;
| udp&lt;br /&gt;
| Standard SIP transport for this configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Replace the example values with your own VoIP.ms account information.&lt;br /&gt;
&lt;br /&gt;
When registration succeeds, SipWarp displays:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Online&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This indicates that the application has successfully registered with the VoIP.ms SIP server.&lt;br /&gt;
&lt;br /&gt;
If the application remains on '''Registering''', verify the SIP server address, username, password, and internet connectivity.&lt;br /&gt;
&lt;br /&gt;
:[[File:SipWarp-Account-Settings.png|none|450px]] [[File:SipWarp-Account-Settings2.png|none|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Step 5 - Configure Audio Devices ==&lt;br /&gt;
&lt;br /&gt;
SipWarp allows you to select different audio devices for conversations and incoming call notifications.&lt;br /&gt;
&lt;br /&gt;
To configure your audio devices:&lt;br /&gt;
&lt;br /&gt;
# Open '''Settings'''.&lt;br /&gt;
# Select '''Devices'''.&lt;br /&gt;
# Choose the microphone you want to use.&lt;br /&gt;
# Select your preferred speaker or headset.&lt;br /&gt;
# Configure the device used for incoming call notifications.&lt;br /&gt;
# Save your configuration.&lt;br /&gt;
&lt;br /&gt;
=== Audio Device Settings ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Setting&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| '''Microphone'''&lt;br /&gt;
| Selects the microphone used during calls.&lt;br /&gt;
|-&lt;br /&gt;
| '''Speaker / Headphones'''&lt;br /&gt;
| Selects the device used to hear the other party.&lt;br /&gt;
|-&lt;br /&gt;
| '''Ring Device'''&lt;br /&gt;
| Selects the device that plays incoming call notifications.&lt;br /&gt;
|-&lt;br /&gt;
| '''Ringtone File'''&lt;br /&gt;
| Allows you to select a custom WAV ringtone.&lt;br /&gt;
|-&lt;br /&gt;
| '''Local DTMF'''&lt;br /&gt;
| Plays a local keypad tone when pressing a digit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
SipWarp allows you to use separate devices for the ringtone and call audio.&lt;br /&gt;
&lt;br /&gt;
For example, incoming calls can ring through the computer speakers while conversations are handled through a USB headset.&lt;br /&gt;
&lt;br /&gt;
'''Recommendation:''' Using a USB headset can help reduce echo and background noise.&lt;br /&gt;
&lt;br /&gt;
: SipWarp-Audio-Settings.png|none|450px|SipWarp audio device configuration.]]&lt;br /&gt;
&lt;br /&gt;
== Step 6 - Configure Network Settings ==&lt;br /&gt;
&lt;br /&gt;
SipWarp provides configurable RTP and STUN options to assist with SIP communications across networks using Network Address Translation (NAT).&lt;br /&gt;
&lt;br /&gt;
Navigate to:&lt;br /&gt;
&lt;br /&gt;
'''Settings → Network'''&lt;br /&gt;
&lt;br /&gt;
=== Recommended Network Configuration ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Recommended Value&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| '''RTP Minimum Port'''&lt;br /&gt;
| 10001&lt;br /&gt;
| Starting UDP port for RTP audio.&lt;br /&gt;
|-&lt;br /&gt;
| '''RTP Maximum Port'''&lt;br /&gt;
| 20000&lt;br /&gt;
| Ending UDP port for RTP audio.&lt;br /&gt;
|-&lt;br /&gt;
| '''STUN'''&lt;br /&gt;
| Enabled&lt;br /&gt;
| Assists with identifying the public network address.&lt;br /&gt;
|-&lt;br /&gt;
| '''STUN Server'''&lt;br /&gt;
| stun.voip.ms&lt;br /&gt;
| STUN server recommended for VoIP.ms.&lt;br /&gt;
|-&lt;br /&gt;
| '''rport'''&lt;br /&gt;
| Enabled&lt;br /&gt;
| Helps SIP responses reach the correct network address and port.&lt;br /&gt;
|-&lt;br /&gt;
| '''DNS SRV'''&lt;br /&gt;
| Disabled&lt;br /&gt;
| Not normally required when using a specific VoIP.ms POP hostname.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Understanding RTP ===&lt;br /&gt;
&lt;br /&gt;
SIP signaling is used to establish and manage telephone calls. The audio itself is carried separately using RTP (Real-time Transport Protocol).&lt;br /&gt;
&lt;br /&gt;
If an outgoing call connects but one or both parties cannot hear audio, the issue may be related to RTP connectivity.&lt;br /&gt;
&lt;br /&gt;
=== Understanding STUN ===&lt;br /&gt;
&lt;br /&gt;
STUN (Session Traversal Utilities for NAT) allows SipWarp to discover the public-facing address used by the network.&lt;br /&gt;
&lt;br /&gt;
This can help resolve audio issues when the computer is located behind a router.&lt;br /&gt;
&lt;br /&gt;
The recommended STUN server is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
stun.voip.ms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note:''' STUN does not resolve every type of NAT or firewall issue.&lt;br /&gt;
&lt;br /&gt;
=== Firewall and Port Forwarding ===&lt;br /&gt;
&lt;br /&gt;
Port forwarding is generally unnecessary when calls are working correctly.&lt;br /&gt;
&lt;br /&gt;
If calls connect but audio is missing, review the local firewall, router configuration, and RTP traffic.&lt;br /&gt;
&lt;br /&gt;
Avoid exposing unnecessary ports to the public internet. Any firewall or port-forwarding changes should be limited to what is required for the installation.&lt;br /&gt;
&lt;br /&gt;
For additional details, refer to the [https://sipwarp.com/help/network.htm SipWarp Network Configuration Guide].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- SCREENSHOT REQUIRED:&lt;br /&gt;
Suggested filename: SipWarp-Network-Settings.png&lt;br /&gt;
&lt;br /&gt;
[[File:SipWarp-Network-Settings.png|450px|SipWarp RTP and STUN configuration.]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 7 - Configure Audio Codecs ==&lt;br /&gt;
&lt;br /&gt;
SipWarp supports several audio codecs that determine how voice is encoded and transmitted during calls.&lt;br /&gt;
&lt;br /&gt;
The application negotiates a compatible codec with the remote SIP endpoint based on the enabled codecs and their configured priority.&lt;br /&gt;
&lt;br /&gt;
For VoIP.ms, G.711u (PCMU) is recommended as the first codec.&lt;br /&gt;
&lt;br /&gt;
=== Recommended Codec Priority ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Priority&lt;br /&gt;
! Codec&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| '''G.711u (PCMU)'''&lt;br /&gt;
| Recommended for regular telephone calls in North America.&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| '''G.722'''&lt;br /&gt;
| HD Call - Wideband audio for compatible SIP-to-SIP connections.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Both endpoints must support the negotiated codec.&lt;br /&gt;
&lt;br /&gt;
G.722 may provide improved audio quality on compatible SIP calls. However, it is not generally available for ordinary calls to the public telephone network.&lt;br /&gt;
&lt;br /&gt;
Opus support in SipWarp does not guarantee Opus interoperability with VoIP.ms.&lt;br /&gt;
&lt;br /&gt;
=== Additional Codec Options ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Setting&lt;br /&gt;
! Recommended Value&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| '''VAD'''&lt;br /&gt;
| Disabled&lt;br /&gt;
| Prevents speech clipping caused by voice activity detection.&lt;br /&gt;
|-&lt;br /&gt;
| '''Echo Cancellation'''&lt;br /&gt;
| Enabled&lt;br /&gt;
| Helps reduce echo during conversations.&lt;br /&gt;
|-&lt;br /&gt;
| '''Opus Stereo'''&lt;br /&gt;
| Disabled&lt;br /&gt;
| Stereo audio is generally unnecessary for telephone calls.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Other available codecs may be left disabled unless specifically required.&lt;br /&gt;
&lt;br /&gt;
For additional details, refer to the [https://sipwarp.com/help/codecs.htm SipWarp Codec Documentation].&lt;br /&gt;
: [[File:SipWarp-Codecs.png|none|450px|Recommended audio codec configuration for SipWarp.]]&lt;br /&gt;
&lt;br /&gt;
== Step 8 - Configure Incoming Calls ==&lt;br /&gt;
&lt;br /&gt;
To receive incoming calls through SipWarp, a VoIP.ms DID must be routed to the SIP subaccount configured in the application.&lt;br /&gt;
&lt;br /&gt;
# Log in to the '''VoIP.ms Customer Portal'''.&lt;br /&gt;
# Navigate to '''DID Numbers → Manage DID(s)'''.&lt;br /&gt;
# Locate the DID you want to configure.&lt;br /&gt;
# Click the edit icon.&lt;br /&gt;
# Under '''Routing''', select '''SIP/IAX'''.&lt;br /&gt;
# Choose the SIP subaccount associated with SipWarp.&lt;br /&gt;
# Verify that the DID's POP matches the SIP server configured in SipWarp.&lt;br /&gt;
# Save your changes.&lt;br /&gt;
&lt;br /&gt;
Once the DID is properly routed and SipWarp is registered, incoming calls should be delivered to the application.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' If you intend to receive calls on multiple devices simultaneously, use separate SIP subaccounts and configure a VoIP.ms [[Ring Groups|Ring Group]].&lt;br /&gt;
&lt;br /&gt;
Registering multiple devices with the same SIP credentials is not recommended because it can cause registration conflicts.&lt;br /&gt;
&lt;br /&gt;
== Step 9 - Configure Outgoing Calls ==&lt;br /&gt;
&lt;br /&gt;
To place an outgoing call:&lt;br /&gt;
&lt;br /&gt;
# Open SipWarp.&lt;br /&gt;
# Enter the destination telephone number using the dial pad.&lt;br /&gt;
# Click '''Call'''.&lt;br /&gt;
# Wait for the call to connect.&lt;br /&gt;
&lt;br /&gt;
=== North American Dialing Format ===&lt;br /&gt;
&lt;br /&gt;
For calls to telephone numbers within the North American Numbering Plan, the following dialing format is recommended:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1 + Area Code + Telephone Number&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
13125551212&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For international calls, consult the [[Dialing Codes|VoIP.ms Dialing Codes]] documentation.&lt;br /&gt;
&lt;br /&gt;
=== Outbound Caller ID ===&lt;br /&gt;
&lt;br /&gt;
The outbound Caller ID is generally configured through the VoIP.ms Customer Portal.&lt;br /&gt;
&lt;br /&gt;
When using a dedicated SIP subaccount:&lt;br /&gt;
&lt;br /&gt;
# Navigate to '''Sub Accounts → Manage Sub Accounts'''.&lt;br /&gt;
# Edit the SipWarp subaccount.&lt;br /&gt;
# Locate the '''CallerID Number''' setting.&lt;br /&gt;
# Select or configure an authorized outbound Caller ID.&lt;br /&gt;
# Save your changes.&lt;br /&gt;
&lt;br /&gt;
SipWarp may also send Caller ID information from the application, but this requires the appropriate configuration on the VoIP.ms subaccount.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Only telephone numbers you own or are authorized to use should be configured as outbound Caller ID.&lt;br /&gt;
&lt;br /&gt;
== Step 10 - Test Your Configuration ==&lt;br /&gt;
&lt;br /&gt;
After completing the configuration, perform the following tests to confirm proper operation.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Test&lt;br /&gt;
! Expected Result&lt;br /&gt;
|-&lt;br /&gt;
| SIP Registration&lt;br /&gt;
| SipWarp displays '''Online'''.&lt;br /&gt;
|-&lt;br /&gt;
| Outgoing Call&lt;br /&gt;
| Calls connect successfully.&lt;br /&gt;
|-&lt;br /&gt;
| Incoming Call&lt;br /&gt;
| The assigned DID rings SipWarp.&lt;br /&gt;
|-&lt;br /&gt;
| Two-Way Audio&lt;br /&gt;
| Both parties can hear each other.&lt;br /&gt;
|-&lt;br /&gt;
| DTMF&lt;br /&gt;
| Keypad tones are properly recognized.&lt;br /&gt;
|-&lt;br /&gt;
| Caller ID&lt;br /&gt;
| The authorized outbound number is displayed.&lt;br /&gt;
|-&lt;br /&gt;
| Audio Devices&lt;br /&gt;
| The microphone and headset operate correctly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== VoIP.ms Test Numbers ===&lt;br /&gt;
&lt;br /&gt;
VoIP.ms provides test numbers that can help verify your configuration.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Number&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| '''4443'''&lt;br /&gt;
| Echo test. Allows you to verify audio transmission and reception.&lt;br /&gt;
|-&lt;br /&gt;
| '''822'''&lt;br /&gt;
| Caller ID test.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The echo test is useful for identifying missing audio, one-way audio, or microphone-related issues.&lt;br /&gt;
&lt;br /&gt;
== Additional Features ==&lt;br /&gt;
&lt;br /&gt;
=== Contact Management ===&lt;br /&gt;
&lt;br /&gt;
SipWarp includes contact management functionality.&lt;br /&gt;
&lt;br /&gt;
Contacts can be stored locally and imported or exported using common file formats.&lt;br /&gt;
&lt;br /&gt;
Supported formats include:&lt;br /&gt;
&lt;br /&gt;
* CSV (Comma-Separated Values)&lt;br /&gt;
* VCF (vCard)&lt;br /&gt;
&lt;br /&gt;
These features allow users to migrate contacts between compatible applications.&lt;br /&gt;
&lt;br /&gt;
=== CardDAV Synchronization ===&lt;br /&gt;
&lt;br /&gt;
SipWarp supports CardDAV, a protocol used to synchronize contact information between devices and applications.&lt;br /&gt;
&lt;br /&gt;
To configure CardDAV:&lt;br /&gt;
&lt;br /&gt;
# Open '''Settings → CardDAV'''.&lt;br /&gt;
# Enter the CardDAV server URL.&lt;br /&gt;
# Enter the username and password associated with the CardDAV service.&lt;br /&gt;
# Click '''Test''' to verify connectivity.&lt;br /&gt;
# Save the configuration.&lt;br /&gt;
&lt;br /&gt;
Example CardDAV server URL:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
https://contacts.example.com&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note:''' CardDAV credentials are separate from your VoIP.ms SIP credentials.&lt;br /&gt;
&lt;br /&gt;
For additional details, refer to the [https://sipwarp.com/help/carddav.htm SipWarp CardDAV Documentation].&lt;br /&gt;
&lt;br /&gt;
=== Call Recording ===&lt;br /&gt;
&lt;br /&gt;
SipWarp supports manual and automatic call recording.&lt;br /&gt;
&lt;br /&gt;
To record an individual call, use the '''REC''' button during an active conversation.&lt;br /&gt;
&lt;br /&gt;
To enable automatic call recording:&lt;br /&gt;
&lt;br /&gt;
# Open '''Settings → Devices'''.&lt;br /&gt;
# Locate '''Record all calls automatically'''.&lt;br /&gt;
# Enable the option.&lt;br /&gt;
# Save your changes.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Users are responsible for complying with applicable call recording, privacy, and consent requirements in their jurisdiction.&lt;br /&gt;
&lt;br /&gt;
=== Custom Ringtones ===&lt;br /&gt;
&lt;br /&gt;
SipWarp allows users to configure a custom WAV ringtone.&lt;br /&gt;
&lt;br /&gt;
# Open '''Settings → Devices'''.&lt;br /&gt;
# Locate '''Ringtone File'''.&lt;br /&gt;
# Select the desired WAV file.&lt;br /&gt;
# Save your configuration.&lt;br /&gt;
&lt;br /&gt;
If no custom ringtone is configured, SipWarp uses its built-in ringtone.&lt;br /&gt;
&lt;br /&gt;
=== Background Operation ===&lt;br /&gt;
&lt;br /&gt;
SipWarp can continue running in the Windows system tray after its main window is closed.&lt;br /&gt;
&lt;br /&gt;
This allows the application to remain available for incoming calls.&lt;br /&gt;
&lt;br /&gt;
To reopen SipWarp, double-click its system tray icon.&lt;br /&gt;
&lt;br /&gt;
To completely close the application, right-click the system tray icon and select '''Exit'''.&lt;br /&gt;
&lt;br /&gt;
=== Launch at Windows Startup ===&lt;br /&gt;
&lt;br /&gt;
To start SipWarp automatically when signing in to Windows:&lt;br /&gt;
&lt;br /&gt;
# Open '''Settings → App'''.&lt;br /&gt;
# Enable '''Run at startup'''.&lt;br /&gt;
# Save the configuration.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
The following table lists common issues and recommended troubleshooting steps.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Issue&lt;br /&gt;
! Possible Cause&lt;br /&gt;
! Recommended Solution&lt;br /&gt;
|-&lt;br /&gt;
| '''Registration remains on Registering'''&lt;br /&gt;
| Incorrect SIP credentials or server.&lt;br /&gt;
| Verify the SIP username, password, server hostname, and port.&lt;br /&gt;
|-&lt;br /&gt;
| '''Cannot receive incoming calls'''&lt;br /&gt;
| Incorrect DID routing or POP mismatch.&lt;br /&gt;
| Verify that the DID routes to the correct subaccount and uses the same POP.&lt;br /&gt;
|-&lt;br /&gt;
| '''Outgoing calls fail'''&lt;br /&gt;
| Incorrect dialing format or Caller ID configuration.&lt;br /&gt;
| Verify the destination number, Caller ID, and account balance.&lt;br /&gt;
|-&lt;br /&gt;
| '''No audio'''&lt;br /&gt;
| Incorrect audio device or blocked RTP traffic.&lt;br /&gt;
| Verify the microphone, speaker, firewall, and RTP settings.&lt;br /&gt;
|-&lt;br /&gt;
| '''One-way audio'''&lt;br /&gt;
| NAT or firewall issue.&lt;br /&gt;
| Review STUN configuration and RTP connectivity.&lt;br /&gt;
|-&lt;br /&gt;
| '''Poor audio quality'''&lt;br /&gt;
| Network instability or audio device issues.&lt;br /&gt;
| Check latency, packet loss, and audio device settings.&lt;br /&gt;
|-&lt;br /&gt;
| '''DTMF not working'''&lt;br /&gt;
| Incompatible DTMF configuration.&lt;br /&gt;
| Verify the DTMF settings on both the subaccount and the application.&lt;br /&gt;
|-&lt;br /&gt;
| '''Registration disconnects'''&lt;br /&gt;
| Network instability or SIP connectivity issue.&lt;br /&gt;
| Check internet connectivity, firewall rules, and SIP registration settings.&lt;br /&gt;
|-&lt;br /&gt;
| '''No incoming ringtone'''&lt;br /&gt;
| Incorrect ring device.&lt;br /&gt;
| Verify the Ring Device under Settings → Devices.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Verify Registration Status ===&lt;br /&gt;
&lt;br /&gt;
You can verify whether your subaccount is registered through the VoIP.ms Customer Portal.&lt;br /&gt;
&lt;br /&gt;
If SipWarp displays '''Online''' but incoming calls do not arrive, review the DID routing configuration and POP assignment.&lt;br /&gt;
&lt;br /&gt;
=== Verify Firewall and NAT Settings ===&lt;br /&gt;
&lt;br /&gt;
If SIP registration is successful but audio is missing, investigate possible firewall or NAT issues.&lt;br /&gt;
&lt;br /&gt;
The problem may involve RTP traffic rather than SIP registration itself.&lt;br /&gt;
&lt;br /&gt;
Review the network configuration before making changes to firewall rules.&lt;br /&gt;
&lt;br /&gt;
== Security Recommendations ==&lt;br /&gt;
&lt;br /&gt;
For improved security, the following practices are recommended:&lt;br /&gt;
&lt;br /&gt;
* Use a dedicated SIP subaccount for SipWarp.&lt;br /&gt;
* Configure a strong and unique SIP password.&lt;br /&gt;
* Avoid sharing SIP credentials between devices.&lt;br /&gt;
* Restrict international calling when it is not required.&lt;br /&gt;
* Enable appropriate security restrictions in the VoIP.ms Customer Portal.&lt;br /&gt;
* Keep SipWarp and Windows updated.&lt;br /&gt;
* Protect locally stored SIP account information.&lt;br /&gt;
* Use encrypted SIP signaling and media only when both the application and provider are configured to support the selected encryption methods.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' VoIP.ms supports SIP-TLS and SRTP. However, encrypted call functionality must be confirmed as compatible with the installed SipWarp version before enabling encryption on the VoIP.ms subaccount.&lt;br /&gt;
&lt;br /&gt;
Enabling mandatory encrypted SIP traffic on the subaccount without a compatible client configuration may prevent successful registration or calling.&lt;br /&gt;
&lt;br /&gt;
For more information, refer to [[Call Encryption - TLS/SRTP|VoIP.ms Call Encryption]].&lt;br /&gt;
&lt;br /&gt;
=== Local Application Data ===&lt;br /&gt;
&lt;br /&gt;
SipWarp stores its application configuration and related data in the following Windows directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
%APPDATA%\SipWarp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This directory may remain on the computer after the application is uninstalled.&lt;br /&gt;
&lt;br /&gt;
If removing SipWarp permanently, review this directory for any configuration files, contacts, or other application data that should be backed up or deleted.&lt;br /&gt;
&lt;br /&gt;
== Additional Resources ==&lt;br /&gt;
&lt;br /&gt;
* [https://sipwarp.com/ SipWarp Official Website]&lt;br /&gt;
* [https://sipwarp.com/help/voipms.htm SipWarp - Connecting a SIP Account]&lt;br /&gt;
* [https://sipwarp.com/help/network.htm SipWarp - RTP and STUN Configuration]&lt;br /&gt;
* [https://sipwarp.com/help/codecs.htm SipWarp - Audio Codecs]&lt;br /&gt;
* [https://sipwarp.com/help/carddav.htm SipWarp - CardDAV Configuration]&lt;br /&gt;
* [https://sipwarp.com/help/sound.htm SipWarp - Audio Device Settings]&lt;br /&gt;
* [https://sipwarp.com/help/calls.htm SipWarp - Calls and Logs]&lt;br /&gt;
* [[Sub Accounts|VoIP.ms Subaccounts]]&lt;br /&gt;
* [[Servers|VoIP.ms Servers]]&lt;br /&gt;
* [[Call Encryption - TLS/SRTP|VoIP.ms Call Encryption]]&lt;br /&gt;
* [[Softphones|VoIP.ms Softphones]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Softphones]]&lt;br /&gt;
[[Category:Windows]]&lt;/div&gt;</summary>
		<author><name>Scomtois</name></author>	</entry>

	<entry>
		<id>https://wiki.voip.ms/article/VTScada</id>
		<title>VTScada</title>
		<link rel="alternate" type="text/html" href="https://wiki.voip.ms/article/VTScada"/>
				<updated>2026-09-28T19:19:03Z</updated>
		
		<summary type="html">&lt;p&gt;Scomtois: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:VTScada-logo-Wiki.png|right|200px]]&lt;br /&gt;
&lt;br /&gt;
'''VTScada''' is an industrial automation and SCADA platform developed by Trihedral. Among its alarm notification features, VTScada can use SIP-based Voice over IP (VoIP) services to place automated voice calls and, when supported, exchange SMS messages with alarm recipients.&lt;br /&gt;
&lt;br /&gt;
This article describes how to configure '''VTScada''' for use with [[VoIP.ms]].&lt;br /&gt;
&lt;br /&gt;
The configuration presented in this guide uses a dedicated VoIP.ms [[Sub Accounts|Sub Account]]. Although the Main Account may also be used, a dedicated Sub Account is recommended when possible because it provides separate SIP credentials and prevents registration conflicts with other SIP devices or applications.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' VTScada is a third-party application and is not developed or maintained by VoIP.ms. Menu names and available options may vary between VTScada versions.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
Before configuring VTScada, you should have:&lt;br /&gt;
&lt;br /&gt;
:* An active [[VoIP.ms]] account with available balance.&lt;br /&gt;
:* A VoIP.ms SIP account or preferably a dedicated [[Sub Accounts|Sub Account]].&lt;br /&gt;
:* A VoIP.ms [[Choosing Server|POP server]] selected for the connection.&lt;br /&gt;
:* A valid outbound Caller ID.&lt;br /&gt;
:* A DID number if incoming calls or SMS functionality will be used.&lt;br /&gt;
:* VTScada installed and configured with the Alarm Notification System.&lt;br /&gt;
:* Internet access from the VTScada workstation to the selected VoIP.ms POP.&lt;br /&gt;
&lt;br /&gt;
If SMS notifications or SMS acknowledgement will be used:&lt;br /&gt;
&lt;br /&gt;
:* The DID must support SMS.&lt;br /&gt;
:* SMS/MMS must be enabled for the DID.&lt;br /&gt;
:* Incoming SMS messages must be routed to the SIP account used by VTScada.&lt;br /&gt;
&lt;br /&gt;
== Creating a VoIP.ms Sub Account ==&lt;br /&gt;
&lt;br /&gt;
Although VTScada can be configured with the VoIP.ms Main Account, using a dedicated Sub Account is recommended.&lt;br /&gt;
&lt;br /&gt;
To create one:&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the VoIP.ms Customer Portal.&lt;br /&gt;
&lt;br /&gt;
:2. Navigate to:&lt;br /&gt;
&lt;br /&gt;
::'''Sub Accounts → Create Sub Account'''&lt;br /&gt;
:: [[File:VTScada-VoIP-CreateSubAccountMenu.png|none]]&lt;br /&gt;
&lt;br /&gt;
:3. Configure the following basic options:&lt;br /&gt;
&lt;br /&gt;
::* '''Protocol:''' SIP&lt;br /&gt;
::* '''Authentication Type:''' User/Password Authentication&lt;br /&gt;
::* '''Username:''' Enter a name that identifies the VTScada system, for example:&lt;br /&gt;
:::&amp;lt;pre&amp;gt;vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
::* '''Password:''' Enter a strong and unique SIP password.&lt;br /&gt;
::* '''Caller ID Number:''' Select the DID or verified Caller ID that VTScada should present for outbound calls.&lt;br /&gt;
::* '''Encrypted SIP Traffic:''' Yes&lt;br /&gt;
The resulting SIP username will use the following format:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;123456_vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
:* '''123456''' represents your VoIP.ms account number.&lt;br /&gt;
:* '''vtscada''' represents the Sub Account username.&lt;br /&gt;
:: [[File:VTScada-VoIP-CreateSubAccount.png|none]]&lt;br /&gt;
Click '''Create Account''' to save the configuration.&lt;br /&gt;
&lt;br /&gt;
For additional information regarding Sub Accounts, refer to [[Sub Accounts]].&lt;br /&gt;
&lt;br /&gt;
== Selecting a VoIP.ms POP Server ==&lt;br /&gt;
&lt;br /&gt;
VTScada must register to one of the VoIP.ms SIP servers.&lt;br /&gt;
&lt;br /&gt;
Select a server that is geographically appropriate for the VTScada installation. For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The same server should also be selected as the '''POP''' for any DID that will be routed directly to the VTScada SIP account.&lt;br /&gt;
&lt;br /&gt;
For more information about available servers, refer to [[Choosing Server|Choosing a Server]].&lt;br /&gt;
&lt;br /&gt;
'''Important:''' If the DID is configured on a different POP than the server used by VTScada, incoming calls may not reach the application correctly.&lt;br /&gt;
&lt;br /&gt;
== Configuring the DID ==&lt;br /&gt;
&lt;br /&gt;
A DID is not necessarily required when VTScada will only place outbound voice calls.&lt;br /&gt;
&lt;br /&gt;
A DID is required when the installation will use features such as:&lt;br /&gt;
&lt;br /&gt;
:* Receiving calls through the VoIP.ms number.&lt;br /&gt;
:* Sending SMS from a VoIP.ms number.&lt;br /&gt;
:* Receiving SMS messages.&lt;br /&gt;
:* Alarm acknowledgement through SMS.&lt;br /&gt;
&lt;br /&gt;
To configure the DID:&lt;br /&gt;
&lt;br /&gt;
:1. From the VoIP.ms Customer Portal, navigate to:&lt;br /&gt;
&lt;br /&gt;
::'''DID Numbers → Manage DID(s)'''&lt;br /&gt;
:: [[File:VTScada-VoIP-ManageDID.png]]&lt;br /&gt;
&lt;br /&gt;
:2. Locate the DID and click the '''Edit''' icon.&lt;br /&gt;
:: [[File:VTScada-VoIP-EditDID.png]]&lt;br /&gt;
&lt;br /&gt;
=== DID POP ===&lt;br /&gt;
&lt;br /&gt;
Ensure that the '''DID Point of Presence (POP)''' corresponds to the same VoIP.ms server configured in VTScada.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: [[File:VTScada-VoIP-DIDPOP.png|VoIPms PoP Server]]&lt;br /&gt;
&lt;br /&gt;
=== DID Routing ===&lt;br /&gt;
&lt;br /&gt;
If incoming SIP calls should be delivered directly to VTScada:&lt;br /&gt;
&lt;br /&gt;
:1. Locate the '''DID Routing''' section.&lt;br /&gt;
&lt;br /&gt;
:2. Select the '''SIP/IAX''' routing option.&lt;br /&gt;
&lt;br /&gt;
:3. Select from the drop-down menu, the Sub Account created for VTScada.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
:&amp;lt;pre&amp;gt;123456_vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: [[File:VTScada-VoIPms_DIDROUTING.png]]&lt;br /&gt;
&lt;br /&gt;
:4. Save the DID configuration.&lt;br /&gt;
&lt;br /&gt;
== SMS Configuration ==&lt;br /&gt;
&lt;br /&gt;
If VTScada will use SMS notifications or SMS acknowledgement, SMS must first be enabled on the VoIP.ms DID.&lt;br /&gt;
&lt;br /&gt;
From:&lt;br /&gt;
&lt;br /&gt;
:'''DID Numbers → Manage DID(s)'''&lt;br /&gt;
:: [[File:VTScada-VoIP-ManageDID.png]]&lt;br /&gt;
&lt;br /&gt;
Edit the desired DID and locate:&lt;br /&gt;
:: [[File:VTScada-VoIP-EditDID.png]]&lt;br /&gt;
&lt;br /&gt;
:'''Message Service (SMS/MMS)'''&lt;br /&gt;
Enable the SMS/MMS service.&lt;br /&gt;
:: [[File:VTScada-VoIP-EnableSMS.png]]&lt;br /&gt;
&lt;br /&gt;
Then enable the option to route received SMS messages to a SIP Account and select the VTScada Sub Account.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;123456_vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The SIP account must be successfully registered with VoIP.ms for incoming SIP MESSAGE requests to reach VTScada.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Avoid registering the same SIP Sub Account simultaneously on VTScada and another SIP application. Doing so may cause calls or SMS messages to be delivered to the wrong registration.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' SMS functionality should be thoroughly tested before relying on SMS acknowledgement for production alarm handling.&lt;br /&gt;
&lt;br /&gt;
== SIP Encryption ==&lt;br /&gt;
&lt;br /&gt;
VoIP.ms supports SIP signaling encryption using TLS and media encryption using SRTP.&lt;br /&gt;
&lt;br /&gt;
If encrypted SIP traffic will be used with VTScada, enable this option on the VTScada Sub Account.&lt;br /&gt;
&lt;br /&gt;
Navigate to:&lt;br /&gt;
&lt;br /&gt;
:'''Sub Accounts → Manage Sub Accounts'''&lt;br /&gt;
&lt;br /&gt;
Edit the VTScada Sub Account, and set:&lt;br /&gt;
&lt;br /&gt;
:* '''Encrypted SIP Traffic:''' Yes&lt;br /&gt;
:: [[File:VTScada-VoIP-SIPEncryption.png]]&lt;br /&gt;
&lt;br /&gt;
Save the configuration.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Once '''Encrypted SIP Traffic''' is enabled for the Sub Account, the SIP client must also be configured to use TLS/SRTP. Standard unencrypted SIP registrations for that Sub Account will no longer be accepted.&lt;br /&gt;
&lt;br /&gt;
For additional information, refer to [[Call Encryption - TLS/SRTP]].&lt;br /&gt;
&lt;br /&gt;
== Configuring VTScada ==&lt;br /&gt;
&lt;br /&gt;
Once the VoIP.ms SIP account has been prepared, VTScada can be configured.&lt;br /&gt;
&lt;br /&gt;
From the VTScada application:&lt;br /&gt;
&lt;br /&gt;
:1. Open the '''Application Configuration''' dialog.&lt;br /&gt;
&lt;br /&gt;
:2. Select '''Edit Properties'''.&lt;br /&gt;
&lt;br /&gt;
:3. Make sure the configuration is displayed in '''Basic Mode'''.&lt;br /&gt;
&lt;br /&gt;
:4. Select the '''Alarms''' tab.&lt;br /&gt;
&lt;br /&gt;
:5. Scroll to the '''VOIP Settings''' section.&lt;br /&gt;
&lt;br /&gt;
:: [[File:VTScada-VoIP-Settings.png|VTScada VoIP Settings]]&lt;br /&gt;
&lt;br /&gt;
=== Enable VoIP Calls ===&lt;br /&gt;
&lt;br /&gt;
Enable:&lt;br /&gt;
&lt;br /&gt;
:'''Enable VOIP Calls'''&lt;br /&gt;
&lt;br /&gt;
This allows the Alarm Notification System to place voice calls using the configured VoIP.ms SIP account.&lt;br /&gt;
&lt;br /&gt;
If SMS functionality will also be used, enable:&lt;br /&gt;
&lt;br /&gt;
:'''Enable VOIP SMS'''&lt;br /&gt;
&lt;br /&gt;
=== Workstation ===&lt;br /&gt;
&lt;br /&gt;
Select the workstation that will act as the Alarm Notification Server.&lt;br /&gt;
&lt;br /&gt;
When multiple VTScada workstations are present, it is recommended to explicitly select the appropriate workstation rather than leaving the option set to '''Default'''.&lt;br /&gt;
&lt;br /&gt;
=== SIP Identity ===&lt;br /&gt;
&lt;br /&gt;
Enter the SIP identity using the VoIP.ms Sub Account and selected POP.&lt;br /&gt;
&lt;br /&gt;
The general format is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VTScada &amp;lt;sip:ACCOUNT_SUBACCOUNT@SERVER.voip.ms&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VTScada &amp;lt;sip:123456_vtscada@montreal1.voip.ms&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the VoIP.ms Main Account is used instead, the format would be similar to:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VTScada &amp;lt;sip:123456@montreal1.voip.ms&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SIP Server ===&lt;br /&gt;
&lt;br /&gt;
Enter the selected VoIP.ms POP as a SIP URI.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;sip:montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SIP Proxy ===&lt;br /&gt;
&lt;br /&gt;
When required by the VTScada configuration, use the same VoIP.ms POP server.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;sip:montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SIP Domain ===&lt;br /&gt;
&lt;br /&gt;
Enter the hostname of the selected VoIP.ms server without the ''sip:'' prefix.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VTScada uses the SIP Domain when constructing SIP URIs for destinations stored as regular telephone numbers.&lt;br /&gt;
&lt;br /&gt;
=== SIP Login User ID ===&lt;br /&gt;
&lt;br /&gt;
Enter the complete VoIP.ms SIP username.&lt;br /&gt;
&lt;br /&gt;
For a Sub Account:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;123456_vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the Main Account:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;123456&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SIP Password ===&lt;br /&gt;
&lt;br /&gt;
Enter the SIP password associated with the account being used.&lt;br /&gt;
&lt;br /&gt;
When using a Sub Account, this is the password configured when the Sub Account was created.&lt;br /&gt;
&lt;br /&gt;
Do not enter the VoIP.ms Customer Portal password when using a Sub Account.&lt;br /&gt;
&lt;br /&gt;
== Example Configuration ==&lt;br /&gt;
&lt;br /&gt;
A typical VTScada configuration using a VoIP.ms Sub Account might therefore appear as follows:&lt;br /&gt;
&lt;br /&gt;
:'''Enable VOIP Calls:'''&lt;br /&gt;
::Enabled&lt;br /&gt;
&lt;br /&gt;
:'''Enable VOIP SMS:'''&lt;br /&gt;
::Enabled, if required&lt;br /&gt;
&lt;br /&gt;
:'''Workstation:'''&lt;br /&gt;
::The workstation hosting the Alarm Notification System&lt;br /&gt;
&lt;br /&gt;
:'''SIP Identity:'''&lt;br /&gt;
::&amp;lt;pre&amp;gt;VTScada &amp;lt;sip:123456_vtscada@montreal1.voip.ms&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:'''SIP Server:'''&lt;br /&gt;
::&amp;lt;pre&amp;gt;sip:montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:'''SIP Proxy:'''&lt;br /&gt;
::&amp;lt;pre&amp;gt;sip:montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:'''SIP Domain:'''&lt;br /&gt;
::&amp;lt;pre&amp;gt;montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:'''SIP Login User ID:'''&lt;br /&gt;
::&amp;lt;pre&amp;gt;123456_vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:'''SIP Password:'''&lt;br /&gt;
::The password configured for the VTScada Sub Account.&lt;br /&gt;
&lt;br /&gt;
Replace the example account number, username and server with the information from your own VoIP.ms account.&lt;br /&gt;
&lt;br /&gt;
== Telephone Number Format ==&lt;br /&gt;
&lt;br /&gt;
When telephone numbers are entered directly into a VTScada roster, use complete telephone numbers.&lt;br /&gt;
&lt;br /&gt;
For calls within the North American Numbering Plan (NANPA), using the complete 11-digit number is recommended.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;15145551234&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Avoid spaces, parentheses and hyphens.&lt;br /&gt;
&lt;br /&gt;
For example, instead of:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;(514) 555-1234&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
use:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;15145551234&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VTScada combines the destination with the configured SIP Domain when creating the SIP URI used to place the call.&lt;br /&gt;
&lt;br /&gt;
== Configuring a Roster Tag ==&lt;br /&gt;
&lt;br /&gt;
After the SIP connection has been configured, create or modify a VTScada '''Roster Tag''' to define which users will receive alarm notifications.&lt;br /&gt;
&lt;br /&gt;
In VTScada:&lt;br /&gt;
&lt;br /&gt;
:1. Create or edit the desired Roster Tag.&lt;br /&gt;
&lt;br /&gt;
:2. Under the '''ID''' tab, configure the identifying information for the roster.&lt;br /&gt;
&lt;br /&gt;
:3. Open the '''Contacts''' tab.&lt;br /&gt;
&lt;br /&gt;
:4. Select:&lt;br /&gt;
&lt;br /&gt;
::'''+ Add Contact'''&lt;br /&gt;
&lt;br /&gt;
:5. Add the telephone number or SMS destination for each alarm recipient.&lt;br /&gt;
&lt;br /&gt;
:6. Open the '''Settings''' tab.&lt;br /&gt;
&lt;br /&gt;
:7. Configure the trigger conditions that will activate the roster.&lt;br /&gt;
&lt;br /&gt;
During initial testing, it may be useful to configure only one recipient and a short notification delay.&lt;br /&gt;
&lt;br /&gt;
Once the configuration has been validated, configure the final notification sequence required by the installation.&lt;br /&gt;
&lt;br /&gt;
== User Identification Codes ==&lt;br /&gt;
&lt;br /&gt;
VTScada can require users receiving voice alarm notifications to authenticate before acknowledging an alarm.&lt;br /&gt;
&lt;br /&gt;
For each applicable VTScada user:&lt;br /&gt;
&lt;br /&gt;
:1. Open '''Accounts'''.&lt;br /&gt;
&lt;br /&gt;
:2. Select the user.&lt;br /&gt;
&lt;br /&gt;
:3. Locate '''Alternate Identification'''.&lt;br /&gt;
&lt;br /&gt;
:4. Configure a numerical identification code or PIN.&lt;br /&gt;
&lt;br /&gt;
:5. Apply the changes.&lt;br /&gt;
&lt;br /&gt;
Provide the appropriate identification code to the corresponding alarm recipient.&lt;br /&gt;
&lt;br /&gt;
== Testing the Configuration ==&lt;br /&gt;
&lt;br /&gt;
Before placing the configuration into production, verify both the VoIP.ms SIP registration and the VTScada alarm notification process.&lt;br /&gt;
&lt;br /&gt;
=== Verify SIP Registration ===&lt;br /&gt;
&lt;br /&gt;
Log in to the VoIP.ms Customer Portal and navigate to the Portal Home.&lt;br /&gt;
&lt;br /&gt;
Locate the '''Sub Account Registration Status''' section.&lt;br /&gt;
&lt;br /&gt;
The VTScada Sub Account should appear as registered.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;123456_vtscada    Registered&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the Sub Account does not appear as registered, verify:&lt;br /&gt;
&lt;br /&gt;
:* SIP username.&lt;br /&gt;
:* SIP password.&lt;br /&gt;
:* VoIP.ms server hostname.&lt;br /&gt;
:* Network or firewall configuration.&lt;br /&gt;
:* TLS configuration, if encryption is enabled.&lt;br /&gt;
&lt;br /&gt;
=== Test Outbound Calls ===&lt;br /&gt;
&lt;br /&gt;
Configure a temporary Roster contact using a telephone number that can be answered during testing.&lt;br /&gt;
&lt;br /&gt;
Generate a test alarm and verify that:&lt;br /&gt;
&lt;br /&gt;
:* VTScada initiates the call.&lt;br /&gt;
:* The destination telephone rings.&lt;br /&gt;
:* The alarm announcement can be heard.&lt;br /&gt;
:* DTMF input is recognized.&lt;br /&gt;
:* The alarm can be acknowledged successfully.&lt;br /&gt;
&lt;br /&gt;
=== Test SMS ===&lt;br /&gt;
&lt;br /&gt;
If SMS is enabled:&lt;br /&gt;
&lt;br /&gt;
:* Send an alarm notification by SMS.&lt;br /&gt;
:* Confirm that the message is received.&lt;br /&gt;
:* Send the required acknowledgement response.&lt;br /&gt;
:* Confirm that VTScada receives and processes the response.&lt;br /&gt;
&lt;br /&gt;
Do not rely on SMS acknowledgement in production until the complete send-and-response process has been successfully tested.&lt;br /&gt;
&lt;br /&gt;
== Testing with a Softphone ==&lt;br /&gt;
&lt;br /&gt;
When troubleshooting, a SIP softphone such as MicroSIP can be temporarily configured with the same VoIP.ms credentials to verify that the account itself is operating correctly.&lt;br /&gt;
&lt;br /&gt;
This can help distinguish between:&lt;br /&gt;
&lt;br /&gt;
:* A VoIP.ms account configuration problem.&lt;br /&gt;
:* Incorrect SIP credentials.&lt;br /&gt;
:* A network or firewall issue.&lt;br /&gt;
:* A VTScada configuration issue.&lt;br /&gt;
&lt;br /&gt;
'''Important:''' Disconnect the softphone before starting VTScada again.&lt;br /&gt;
&lt;br /&gt;
Using the same SIP account simultaneously in both applications can cause registration and routing conflicts.&lt;br /&gt;
&lt;br /&gt;
Whenever possible, separate VoIP.ms Sub Accounts should be used when multiple SIP applications must remain registered at the same time.&lt;br /&gt;
&lt;br /&gt;
== Advanced VTScada Settings ==&lt;br /&gt;
&lt;br /&gt;
=== VOIPPickUpDelay ===&lt;br /&gt;
&lt;br /&gt;
VTScada includes the advanced property:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VOIPPickUpDelay&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This value determines the interval between the start of a VoIP call and the beginning of the voice announcement.&lt;br /&gt;
&lt;br /&gt;
The VTScada default is normally 10 seconds.&lt;br /&gt;
&lt;br /&gt;
Depending on the telephone network and destination, a shorter value may provide faster alarm announcements.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VOIPPickUpDelay = 2&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This setting should be tested carefully since beginning playback too quickly may cause the beginning of the alarm message to be missed.&lt;br /&gt;
&lt;br /&gt;
=== VOIPPort ===&lt;br /&gt;
&lt;br /&gt;
VTScada normally uses the standard SIP port configured by the application.&lt;br /&gt;
&lt;br /&gt;
If another SIP application on the same workstation is already using the local SIP port, VTScada allows its local VoIP port to be changed through its Setup.INI configuration.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VOIPPort = 5062&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After modifying Setup.INI, restart VTScada.&lt;br /&gt;
&lt;br /&gt;
Changing the local VTScada SIP port normally does not require changing the VoIP.ms server hostname.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Registration Fails ===&lt;br /&gt;
&lt;br /&gt;
If VTScada cannot register with VoIP.ms:&lt;br /&gt;
&lt;br /&gt;
:* Confirm that the SIP Login User ID contains the complete Sub Account username.&lt;br /&gt;
::* Example:&lt;br /&gt;
:::&amp;lt;pre&amp;gt;123456_vtscada&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Confirm the SIP password.&lt;br /&gt;
:* Confirm that the correct VoIP.ms POP hostname is being used.&lt;br /&gt;
:* Check the registration status from the VoIP.ms Customer Portal.&lt;br /&gt;
:* Confirm that TLS/SRTP settings match the '''Encrypted SIP Traffic''' setting of the Sub Account.&lt;br /&gt;
:* Confirm that a firewall is not blocking SIP or RTP traffic.&lt;br /&gt;
&lt;br /&gt;
=== SIP 401 or 403 Errors ===&lt;br /&gt;
&lt;br /&gt;
VTScada's communication logs may contain SIP response codes such as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;401 Unauthorized&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;403 Forbidden&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These generally indicate that authentication was unsuccessful.&lt;br /&gt;
&lt;br /&gt;
Verify:&lt;br /&gt;
&lt;br /&gt;
:* SIP Login User ID.&lt;br /&gt;
:* SIP password.&lt;br /&gt;
:* SIP server.&lt;br /&gt;
:* Encryption configuration.&lt;br /&gt;
:* That another application is not simultaneously using the same SIP credentials.&lt;br /&gt;
&lt;br /&gt;
=== Outbound Calls Work but Incoming Calls Do Not ===&lt;br /&gt;
&lt;br /&gt;
Verify:&lt;br /&gt;
&lt;br /&gt;
:* The DID is routed to the correct SIP Account.&lt;br /&gt;
:* VTScada is successfully registered.&lt;br /&gt;
:* The DID POP matches the VoIP.ms server used by VTScada.&lt;br /&gt;
&lt;br /&gt;
For example, if VTScada registers to:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
the DID should normally also use:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;montreal1.voip.ms&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Calls Connect but There Is No Audio ===&lt;br /&gt;
&lt;br /&gt;
If a call connects but audio is missing in one or both directions:&lt;br /&gt;
&lt;br /&gt;
:* Verify the firewall configuration.&lt;br /&gt;
:* Verify that RTP traffic is permitted between the VTScada workstation and VoIP.ms.&lt;br /&gt;
:* Check for SIP ALG on the router and disable it when it interferes with SIP communication.&lt;br /&gt;
:* Review the VTScada VoIP communication logs.&lt;br /&gt;
&lt;br /&gt;
=== SMS Can Be Sent but Replies Are Not Received ===&lt;br /&gt;
&lt;br /&gt;
Verify:&lt;br /&gt;
&lt;br /&gt;
:* SMS/MMS is enabled on the DID.&lt;br /&gt;
:* The DID is configured to route received SMS messages to the VTScada SIP Account.&lt;br /&gt;
:* The VTScada SIP Account is registered.&lt;br /&gt;
:* The same SIP account is not registered simultaneously on another application.&lt;br /&gt;
:* TLS settings are consistent between VTScada and VoIP.ms.&lt;br /&gt;
&lt;br /&gt;
=== Viewing VTScada VoIP Logs ===&lt;br /&gt;
&lt;br /&gt;
VTScada can generate VoIP communication logs for troubleshooting.&lt;br /&gt;
&lt;br /&gt;
These logs are normally stored under:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;VTScada\TraceFiles\VOIPLogs&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Review the logs for SIP registration errors, rejected requests and authentication responses.&lt;br /&gt;
&lt;br /&gt;
The logs can be particularly useful when determining whether a problem occurs before or after communication reaches the VoIP.ms server.&lt;br /&gt;
&lt;br /&gt;
== Security Recommendations ==&lt;br /&gt;
&lt;br /&gt;
Because VTScada may be responsible for critical alarm notifications, additional security measures are recommended.&lt;br /&gt;
&lt;br /&gt;
:* Use a dedicated VoIP.ms Sub Account for VTScada.&lt;br /&gt;
:* Use a strong and unique SIP password.&lt;br /&gt;
:* Do not expose the VTScada management interface directly to the public Internet.&lt;br /&gt;
:* Consider enabling [[Call Encryption - TLS/SRTP|TLS/SRTP]].&lt;br /&gt;
:* Consider using VoIP.ms POP and IP restrictions where appropriate.&lt;br /&gt;
:* Disable international calling on the Sub Account if it is not required.&lt;br /&gt;
:* Restrict outbound calling capabilities to only those services required by the installation.&lt;br /&gt;
:* Regularly verify that alarm notifications are operating correctly.&lt;br /&gt;
&lt;br /&gt;
Refer to [[General Security]] for additional VoIP.ms security recommendations.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
:* [[Sub Accounts]]&lt;br /&gt;
:* [[Manage DID]]&lt;br /&gt;
:* [[SMS]]&lt;br /&gt;
:* [[Choosing Server|Choosing a Server]]&lt;br /&gt;
:* [[Call Encryption - TLS/SRTP]]&lt;br /&gt;
:* [[General Security]]&lt;br /&gt;
:* [[DID Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
== VTScada Documentation ==&lt;br /&gt;
&lt;br /&gt;
The following VTScada documentation provides additional information about&lt;br /&gt;
the Alarm Notification System and VoIP configuration:&lt;br /&gt;
&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_AlarmSystem/Dev_VoIPSetup.htm Setting Up a Specific VoIP Connection]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_AlarmSystem/Dev_VOIP.htm Using VoIP for Alarm Notification]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_Tags/Dev_RosterTags.htm Roster Tags]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_Customize/dev_AccountsAndRoles.htm Accounts and Roles]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_Widgets/Dev_RosterAlarmTestWidget.htm Roster Alarm Test Widget]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_Widgets/D_ExportCommLog.htm Export Comm Log Widget]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_AlarmSystem/Dev_AlarmList.htm Alarm List]&lt;br /&gt;
:* [https://www.vtscada.com/help/Content/D_Widgets/D_CallManagerStatus.htm Call Manager Status Widget]&lt;br /&gt;
&lt;br /&gt;
[[Category:PBX]]&lt;br /&gt;
[[Category:VoIP Software]]&lt;/div&gt;</summary>
		<author><name>Scomtois</name></author>	</entry>

	<entry>
		<id>https://wiki.voip.ms/article/Hello_Gubby</id>
		<title>Hello Gubby</title>
		<link rel="alternate" type="text/html" href="https://wiki.voip.ms/article/Hello_Gubby"/>
				<updated>2026-08-28T18:50:25Z</updated>
		
		<summary type="html">&lt;p&gt;Scomtois: /* Your phone rings first, your AI receptionist answers missed calls */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:01-hello-gubby-logo.png|right|500px]]&lt;br /&gt;
Hello Gubby is an AI receptionist platform that grows into the AI front desk for your business.&lt;br /&gt;
&lt;br /&gt;
'''Your AI receptionist answers every call in seconds with natural, human-sounding voices.''' It greets callers with your business name or a greeting of your choice, and answers questions about your services. It captures lead details and books appointments. When a caller needs a person, it warm transfers the call to you or your team, with unlimited warm transfers and unlimited notification recipients at no extra cost.&lt;br /&gt;
&lt;br /&gt;
Every call is captured. After each call, you receive a summary, transcript, and recording on your email, in your Hello Gubby account, and in your CRM. Connect GoHighLevel or HubSpot directly from your Hello Gubby account, or sync your calendar for bookings. Webhooks are live, and Zapier is coming soon.&lt;br /&gt;
&lt;br /&gt;
Hello Gubby is a no-code platform designed for busy business owners who need a done-for-you (DFY) setup at do-it-yourself (DIY) prices. Train your AI receptionist from your website or upload company materials, and go live in less than 5 minutes. When you are ready, add your AI receptionist to talk to your website visitors over voice or chat, and upload your own video or an AI receptionist video to give life to your website.&lt;br /&gt;
&lt;br /&gt;
For more details or to sign up, visit: [https://hellogubby.ai hellogubby.ai]&lt;br /&gt;
&lt;br /&gt;
__TOC__ &lt;br /&gt;
&lt;br /&gt;
== Before you start ==&lt;br /&gt;
&lt;br /&gt;
To connect a number to Hello Gubby you will need:&lt;br /&gt;
&lt;br /&gt;
# '''A VoIP.ms account with an active DID (phone number).''' If you don't have a number yet, follow: [[Order a DID Number]]&lt;br /&gt;
#:* You can leave the routing settings at their default values during the purchase. You will configure routing based on your use case (i.e., all calls answered by your AI receptionist, missed calls only, etc.) later in this guide.&lt;br /&gt;
# '''The DID on the pay as you go plan.'''&lt;br /&gt;
#:&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 Plan type&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;Flat rate plans are limited to 2 simultaneous incoming calls, which limits how many callers your AI receptionist can answer at the same time. The pay as you go plan has no such restriction and is the recommended plan for AI receptionists. To change your plan, see the [[Changing DID Billing Plan]] article on this wiki.&amp;lt;/div&amp;gt;&lt;br /&gt;
# '''A Hello Gubby account on a paid plan.''' Sign up at [https://hellogubby.ai hellogubby.ai]. Each plan comes with a 7-day free trial so try before you pay.&lt;br /&gt;
&lt;br /&gt;
== Hello Gubby configuration ==&lt;br /&gt;
&lt;br /&gt;
After you sign up, you can explore your Hello Gubby portal and test your AI receptionist before paying. You can set up your receptionist, modify its settings, and make a web call to listen to it, all without putting in your credit card. See this video walkthrough of the sign up and setup: [https://youtu.be/w0E3PMtBRIA?si=6CgC3OCARCjVKnys&amp;amp;t=360 How to sign up for Hello Gubby]&lt;br /&gt;
&lt;br /&gt;
Once you pay, your subscription is active and you are navigated from Stripe back to your Hello Gubby portal, which takes you to your business number setup. You will see the You're live! confirmation, as shown below.&lt;br /&gt;
&lt;br /&gt;
=== Connecting your number ===&lt;br /&gt;
&lt;br /&gt;
# On the '''You're live!''' Confirmation screen, click on '''Continue'''.&lt;br /&gt;
#: [[File:hello-gubby-02-youre-live-continue.png|none|700px]]&lt;br /&gt;
# Choose how you want your AI front desk to answer calls: select '''Bring your own number''', then click on '''Continue'''.&lt;br /&gt;
#: [[File:hello-gubby-03-bring-your-own-number.png|none|700px]]&lt;br /&gt;
# You are taken to the '''SIP Trunk''' section of your settings. Click on the '''VoIP.ms''' card.&lt;br /&gt;
#: [[File:hello-gubby-04-sip-trunk-voipms-card.png|none|700px]]&lt;br /&gt;
#:If you skipped this step after payment, you can reach it anytime from '''Settings &amp;gt;&amp;gt; SIP Trunk''' in your Hello Gubby dashboard.&lt;br /&gt;
# '''Your VoIP.ms phone number:''' Enter your VoIP.ms DID with your country code (E.g. +1 778 819 7943).&lt;br /&gt;
# Click on '''Connect'''.&lt;br /&gt;
#: [[File:hello-gubby-05-connect-voipms-number.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
=== Copy your SIP address ===&lt;br /&gt;
&lt;br /&gt;
Once your number is connected, Hello Gubby shows it as your AI front desk line and displays your SIP address, along with the steps to complete in VoIP.ms.&lt;br /&gt;
&lt;br /&gt;
# Click on '''Copy''' next to the SIP address.&lt;br /&gt;
#:&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 Copy the address exactly&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;Paste the address in VoIP.ms exactly as shown, with your number at the front. A shortened address without the number still connects calls, but your AI receptionist cannot tell which number was dialed and will answer with a generic greeting instead of your business greeting.&amp;lt;/div&amp;gt;&lt;br /&gt;
#:[[File:hello-gubby-06-copy-sip-address.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
The next section walks you through the two steps in your VoIP.ms portal.&lt;br /&gt;
&lt;br /&gt;
== VoIP.ms configuration ==&lt;br /&gt;
&lt;br /&gt;
You will now use the SIP address you copied from Hello Gubby in two places in your VoIP.ms portal: first to create a SIP URI, then to route your number to it.&lt;br /&gt;
&lt;br /&gt;
=== Create the SIP URI ===&lt;br /&gt;
&lt;br /&gt;
# In your VoIP.ms portal, go to '''DID Numbers &amp;gt;&amp;gt; SIP URI's'''.&lt;br /&gt;
#:[[File:hello-gubby-07-voipms-sip-uri-menu.png|none|700px]]&lt;br /&gt;
# Click on '''Add SIP uri'''.&lt;br /&gt;
#:[[File:hello-gubby-08-add-sip-uri.png|none|700px]]&lt;br /&gt;
# '''SIP URI:''' Paste the address you copied from your Hello Gubby dashboard.&lt;br /&gt;
#:&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 The sip: prefix is already there&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;The field starts with sip: on its left. Paste only the address as copied (E.g. 17788197943@sip.hellogubby.ai). Do not type sip: again.&amp;lt;/div&amp;gt;&lt;br /&gt;
# '''Description:''' Any name of your choice (E.g. Hello Gubby AI Receptionist).&lt;br /&gt;
# '''CallerID Override:''' Select '''I use a system capable of passing its own CallerID'''.&lt;br /&gt;
# '''CallerID E164:''' Leave as '''Disabled'''.&lt;br /&gt;
# Click on '''Save'''.&lt;br /&gt;
#:[[File:hello-gubby-09-create-sip-uri-form.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
Your SIP URI is created and appears in the list.&lt;br /&gt;
&lt;br /&gt;
: [[File:10-sip-uri-created.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
=== Open your DID settings ===&lt;br /&gt;
&lt;br /&gt;
# Go to '''DID Numbers &amp;gt;&amp;gt; Manage DID(s)'''.&lt;br /&gt;
#:[[File:hello-gubby-11-manage-dids-menu.png|none|700px]]&lt;br /&gt;
# Find your VoIP.ms number and click on the '''Edit DID''' (pencil) icon.&lt;br /&gt;
#:[[File:hello-gubby-12-edit-did.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
=== Update the DID routing ===&lt;br /&gt;
&lt;br /&gt;
# Under '''Routing Settings''', select '''SIP URI'''.&lt;br /&gt;
# In the dropdown next to it, choose the SIP URI you created.&lt;br /&gt;
#:&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 Select the radio button, not just the dropdown&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;Your SIP URI appearing in the dropdown is not enough. The round radio button next to SIP URI must be selected, or calls will keep going to the previous destination.&amp;lt;/div&amp;gt;&lt;br /&gt;
#:&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 This option routes ALL calls to your AI receptionist&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;With SIP URI selected as your Main routing, every call to this number is answered by your AI receptionist. If you want your phone to ring first and your AI receptionist to answer only missed calls, or other setups, see '''Choosing when your AI receptionist answers''' below.&amp;lt;/div&amp;gt;&lt;br /&gt;
#: [[File:hello-gubby-13-route-did-to-sip-uri.png|none|700px]]&lt;br /&gt;
# Scroll down and click on '''Apply Changes'''.&lt;br /&gt;
&lt;br /&gt;
That's it! Every call to your VoIP.ms number is now answered by your AI receptionist. To have your AI receptionist answer only some calls instead, continue to the routing options below.&lt;br /&gt;
&lt;br /&gt;
== Test your number ==&lt;br /&gt;
&lt;br /&gt;
Call your VoIP.ms number from any phone.&lt;br /&gt;
&lt;br /&gt;
Your AI receptionist should answer within a few seconds with your business greeting, for example: &amp;quot;Thanks for calling Bright Nest Cleaning, this is Filzah. How can I help you today?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Then check your Hello Gubby dashboard: the call appears in your '''Call Log Inbox''' within a minute, with the summary, transcript, and recording.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 A generic greeting means the address was shortened&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;If your AI receptionist answers with a generic Hello Gubby greeting instead of your business greeting, the SIP URI in VoIP.ms is missing your number at the front. Edit it under '''DID Numbers &amp;gt;&amp;gt; SIP URI's''' so it exactly matches the address shown in your Hello Gubby dashboard, with your number in front.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Choosing when your AI receptionist answers ==&lt;br /&gt;
&lt;br /&gt;
The setup above routes every call to your AI receptionist. VoIP.ms routing gives you other options depending on how you want to run your business. All of them are configured on the same '''Edit DID Settings''' page, and none of them require any change in your Hello Gubby account.&lt;br /&gt;
&lt;br /&gt;
=== Your AI receptionist answers every call ===&lt;br /&gt;
&lt;br /&gt;
The default setup from this guide: '''Main routing = SIP URI'''. Your AI receptionist answers every call in seconds, 24/7, and warm transfers callers to you or your team when needed. Best for businesses that miss calls during jobs, after hours, or at busy times, and want every call captured.&lt;br /&gt;
&lt;br /&gt;
=== Your phone rings first, your AI receptionist answers missed calls ===&lt;br /&gt;
&lt;br /&gt;
Your phone rings normally, and your AI receptionist only picks up the calls you can't take. No call ever goes to voicemail again.&lt;br /&gt;
&lt;br /&gt;
On your DID's '''Routing Settings''', the tabs across the top control where calls go in each situation:&lt;br /&gt;
&lt;br /&gt;
'''4. Main:''' set to where your phone is. Select '''SIP/IAX''' if you use a softphone registered to your VoIP.ms account, or '''Call Forwarding''' with your mobile number (create the forwarding entry first under '''DID Numbers &amp;gt;&amp;gt; Call Forwarding''').&lt;br /&gt;
&lt;br /&gt;
: [[File:hello-gubby-14-main-routing-phone.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
'''5. If Busy:''' select '''SIP URI''' and choose the one you created.&lt;br /&gt;
&lt;br /&gt;
'''6. If Unreachable:''' select '''SIP URI''' and choose the one you created.&lt;br /&gt;
&lt;br /&gt;
'''7. If No Answer:''' select '''SIP URI''' and choose the one you created.&lt;br /&gt;
&lt;br /&gt;
: [[File:hello-gubby-15-failover-routing-sip-uri.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
'''8.''' Scroll down to '''Ring Time in seconds''' and set it to '''20 s (~4 Rings)'''. This is how long your phone rings before your AI receptionist takes the call.&lt;br /&gt;
&lt;br /&gt;
'''9.''' Click on '''Apply Changes'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 Watch out for your phone's own voicemail&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;If your Main destination is call forwarding to a mobile phone, the mobile carrier's voicemail competes with this setup. If your carrier voicemail answers at 18 seconds and your VoIP.ms Ring Time is 20, voicemail takes every missed call before your AI receptionist can. Set your Ring Time shorter than your phone's voicemail delay, or disable your carrier voicemail. Softphone setups do not have this issue.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now your phone rings first on every call. If you don't answer within the ring time, are on another call, or your phone is offline, your AI receptionist answers and captures the lead. For more details on forwarding entries, see: [[Call Forwarding]]&lt;br /&gt;
&lt;br /&gt;
=== Business hours to your phone, after hours to your AI receptionist ===&lt;br /&gt;
&lt;br /&gt;
Your team answers during the day, and your AI receptionist covers evenings, weekends, and holidays.&lt;br /&gt;
&lt;br /&gt;
:1. Go to '''DID Numbers &amp;gt;&amp;gt; Time Conditions''' and click on '''Create a new Time Condition'''.&lt;br /&gt;
:2. Set the time and day criteria for your business hours.&lt;br /&gt;
:&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 VoIP.ms servers run on Eastern Time&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;All VoIP.ms servers are set to Eastern Time, regardless of your location. Enter your hours converted to ET. For example, a Vancouver business open 9:00 to 17:00 Pacific enters 12:00 to 20:00. Compare your local time with the Current server time shown on the page.&amp;lt;/div&amp;gt;&lt;br /&gt;
: [[File:hello-gubby-16-time-conditions-hours.png|none|700px]]&lt;br /&gt;
:1. '''Destination if one of the conditions matches server time (during business hours):''' select where your phone is, for example '''SIP/IAX''' or '''Call Forwarding'''.&lt;br /&gt;
:2. '''Destination if no conditions matches server time (after hours):''' select '''SIP URI''' and choose the one you created.&lt;br /&gt;
:3. '''Name of Time Condition:''' Any name of your choice (E.g. Business Hours). Click on '''Save Time Condition'''.&lt;br /&gt;
: [[File:hello-gubby-17-time-conditions-destinations.png|none|700px]]&lt;br /&gt;
:4. Go to '''DID Numbers &amp;gt;&amp;gt; Manage DID(s)''', edit your number, and under '''Routing Settings''' select '''Time Conditions''' with the condition you created. Click on '''Apply Changes'''.&lt;br /&gt;
: [[File:hello-gubby-18-select-time-condition-on-did.png|none|700px]]&lt;br /&gt;
&lt;br /&gt;
Statutory holidays are not automatic: a time condition is a weekly schedule, so on holidays your phone still receives calls during the configured hours unless you temporarily adjust the condition. For more details, see: [[Time Conditions]]&lt;br /&gt;
&lt;br /&gt;
=== Keep your existing main line and forward it to your AI receptionist ===&lt;br /&gt;
&lt;br /&gt;
If your business number is with another provider and you don't want to move it, you can still use your AI receptionist. Set up call forwarding on your existing line (from your current provider's settings) to your VoIP.ms number, either for all calls or only when you don't answer. Your VoIP.ms number then routes to your AI receptionist as configured in this guide. Your published number never changes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:2px solid #d9534f; padding:8px 10px; margin:10px 0;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;🚨 Check the caller number after your first forwarded call&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;Some carriers replace the caller's number with the forwarding number when they forward a call. Make one test call and check the caller number shown in your Hello Gubby call log. Also note that forwarded calls are billed by both providers: your carrier's forwarding rate plus VoIP.ms per-minute usage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Outbound calls and transfers ==&lt;br /&gt;
&lt;br /&gt;
Warm transfers to your team and outbound calls from your VoIP.ms number: '''Coming soon!'''&lt;br /&gt;
&lt;br /&gt;
== Useful resources ==&lt;br /&gt;
&lt;br /&gt;
* '''Hello Gubby:''' [https://hellogubby.ai hellogubby.ai]&lt;br /&gt;
* '''Hello Gubby sign up and setup video:''' [https://youtu.be/w0E3PMtBRIA?t=360 YouTube walkthrough]&lt;br /&gt;
* '''VoIP.ms SIP URI feature:''' [[SIP URI]]&lt;br /&gt;
* '''VoIP.ms DID ordering:''' [[Order a DID Number]]&lt;br /&gt;
* '''VoIP.ms DID plans:''' [[Changing DID Billing Plan]]&lt;br /&gt;
* '''VoIP.ms Time Conditions:''' [[Time Conditions]]&lt;br /&gt;
* '''VoIP.ms Call Forwarding:''' [[Call Forwarding]]&lt;/div&gt;</summary>
		<author><name>Scomtois</name></author>	</entry>

	<entry>
		<id>https://wiki.voip.ms/article/FreePBX_17_Diversion_Header</id>
		<title>FreePBX 17 Diversion Header</title>
		<link rel="alternate" type="text/html" href="https://wiki.voip.ms/article/FreePBX_17_Diversion_Header"/>
				<updated>2026-08-21T18:44:18Z</updated>
		
		<summary type="html">&lt;p&gt;FherNando: Created page with &amp;quot;&amp;lt;div style='background-color:#f9f9f9;border:1px dashed #2f6fab;padding:1em;font-family: monospace;font-size: 12px;'&amp;gt; '''Disclaimer''': This guide is provided as a reference only....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style='background-color:#f9f9f9;border:1px dashed #2f6fab;padding:1em;font-family: monospace;font-size: 12px;'&amp;gt;&lt;br /&gt;
'''Disclaimer''': This guide is provided as a reference only. Actual customer configurations may vary depending on their FreePBX version, Asterisk build, trunk settings, dialplan structure, and network environment. Always review and adapt any configuration changes to match the specific customer setup before applying them.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This guide configures FreePBX 17 with PJSIP to automatically add a SIP '''''Diversion''''' header when an inbound DID is forwarded back out through a SIP trunk.&lt;br /&gt;
&lt;br /&gt;
The objective is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
External Caller&lt;br /&gt;
      │&lt;br /&gt;
      ▼&lt;br /&gt;
DID 5557896321&lt;br /&gt;
      │&lt;br /&gt;
      ▼&lt;br /&gt;
   FreePBX&lt;br /&gt;
      │&lt;br /&gt;
      │ Call Forwarding&lt;br /&gt;
      ▼&lt;br /&gt;
External Destination&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the outbound leg, FreePBX should generate:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5557896321@PBX_IP_OR_FQDN&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The DID is determined dynamically, so the configuration can work with multiple forwarded DIDs.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
This guide assumes:&lt;br /&gt;
&lt;br /&gt;
* FreePBX 17&lt;br /&gt;
* Asterisk with PJSIP&lt;br /&gt;
* A working SIP trunk&lt;br /&gt;
* Incoming calls are already working&lt;br /&gt;
* An Inbound Route exists for the DID&lt;br /&gt;
* A Misc Destination forwards the call to an external number&lt;br /&gt;
* An Outbound Route sends the forwarded call through the appropriate trunk&lt;br /&gt;
&lt;br /&gt;
The basic FreePBX routing should already work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SIP Provider&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
Inbound Route&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
Misc Destination&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
Outbound Route&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
SIP Trunk&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
External Destination&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Diversion header is an additional step applied to the outbound leg.&lt;br /&gt;
&lt;br /&gt;
==Custom Dialplan==&lt;br /&gt;
&lt;br /&gt;
FreePBX does not provide a standard field on a Misc Destination or Inbound Route for inserting an arbitrary '''''Diversion''''' SIP header.&lt;br /&gt;
&lt;br /&gt;
Asterisk's '''''PJSIP_HEADER()''''' function can add headers to an outbound PJSIP channel. Importantly, Asterisk recommends doing this in a '''pre-dial handler''' when the header needs to be applied to the outgoing channel.&lt;br /&gt;
&lt;br /&gt;
FreePBX provides a suitable outbound-trunk hook:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
macro-dialout-trunk-predial-hook&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This hook executes during outbound trunk processing, before the call is sent to the provider.&lt;br /&gt;
&lt;br /&gt;
We therefore use:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/asterisk/extensions_custom.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rather than modifying FreePBX-generated dialplan files.&lt;br /&gt;
&lt;br /&gt;
==Edit ''extensions_custom.conf''==&lt;br /&gt;
&lt;br /&gt;
Open:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nano /etc/asterisk/extensions_custom.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[macro-dialout-trunk-predial-hook]&lt;br /&gt;
exten =&amp;gt; s,1,NoOp(Diversion check - FROM_DID=${FROM_DID})&lt;br /&gt;
exten =&amp;gt; s,n,GotoIf($[&amp;quot;${FROM_DID}&amp;quot;=&amp;quot;&amp;quot;]?done)&lt;br /&gt;
exten =&amp;gt; s,n,GoSub(func-set-sipheader,s,1(Diversion,&amp;lt;sip:${FROM_DID}@PBX_IP_OR_FQDN&amp;gt;\;reason=unconditional))&lt;br /&gt;
exten =&amp;gt; s,n(done),Return()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PBX_IP_OR_FQDN&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with the appropriate PBX address or domain if necessary for your environment.&lt;br /&gt;
&lt;br /&gt;
==What the dialplan does==&lt;br /&gt;
&lt;br /&gt;
The first line defines the FreePBX hook:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[macro-dialout-trunk-predial-hook]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FreePBX calls this context while preparing an outbound trunk call.&lt;br /&gt;
&lt;br /&gt;
The next line is primarily for debugging:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
exten =&amp;gt; s,1,NoOp(Diversion check - FROM_DID=${FROM_DID})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It lets you see the value of '''''${FROM_DID}''''' in the Asterisk console.&lt;br /&gt;
&lt;br /&gt;
For a forwarded incoming call, you should see something similar to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion check - FROM_DID=5557896321&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next line determines whether this was originally an inbound DID:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
exten =&amp;gt; s,n,GotoIf($[&amp;quot;${FROM_DID}&amp;quot;=&amp;quot;&amp;quot;]?done)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If '''''FROM_DID''''' is empty, execution jumps to '''''done''''' and no Diversion header is added.&lt;br /&gt;
&lt;br /&gt;
This is important for ordinary outbound calls:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Extension 1001&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
External number&lt;br /&gt;
&lt;br /&gt;
FROM_DID=&lt;br /&gt;
→ No Diversion header&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a forwarded inbound call:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
External Caller&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
5557896321&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
FreePBX&lt;br /&gt;
     │&lt;br /&gt;
     ▼&lt;br /&gt;
External number&lt;br /&gt;
&lt;br /&gt;
FROM_DID=5557896321&lt;br /&gt;
→ Add Diversion header&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add the Diversion header==&lt;br /&gt;
&lt;br /&gt;
This is the line that performs the actual work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style='background-color:#f9f9f9;border:1px dashed #2f6fab;padding:1em;font-family: monospace;font-size: 12px;'&amp;gt;&lt;br /&gt;
exten =&amp;gt; s,n,GoSub(func-set-sipheader,s,1(Diversion,&amp;lt;sip:${FROM_DID}@PBX_IP_OR_FQDN&amp;gt;\;reason=unconditional))&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''''${FROM_DID}''''' is evaluated dynamically.&lt;br /&gt;
&lt;br /&gt;
Therefore:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FROM_DID=5557896321&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5557896321@PBX_IP_OR_FQDN&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another DID, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FROM_DID=5551234567&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would automatically produce:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5551234567@PBX_IP_OR_FQDN&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is therefore '''no need to create a separate dialplan entry for every DID''', provided '''''${FROM_DID}''''' is preserved on those forwarded calls.&lt;br /&gt;
&lt;br /&gt;
==Why '''''\;''''' is required==&lt;br /&gt;
&lt;br /&gt;
Notice this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
rather than:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The backslash is important.&lt;br /&gt;
&lt;br /&gt;
In Asterisk configuration syntax, ''''';''''' starts a comment. Without escaping it, Asterisk can interpret:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as a comment instead of part of the SIP header.&lt;br /&gt;
&lt;br /&gt;
The backslash is only for parsing the configuration. It does '''not''' appear on the wire.&lt;br /&gt;
&lt;br /&gt;
Asterisk sends:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5557896321@PBX_IP_OR_FQDN&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
not:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5557896321@PBX_IP_OR_FQDN&amp;gt;\;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Reload FreePBX==&lt;br /&gt;
&lt;br /&gt;
After saving the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fwconsole reload&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You do not need to restart the server.&lt;br /&gt;
&lt;br /&gt;
==Final configuration==&lt;br /&gt;
&lt;br /&gt;
The complete configuration is therefore:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[macro-dialout-trunk-predial-hook]&lt;br /&gt;
&lt;br /&gt;
; Log the inbound DID for troubleshooting&lt;br /&gt;
exten =&amp;gt; s,1,NoOp(Diversion check - FROM_DID=${FROM_DID})&lt;br /&gt;
&lt;br /&gt;
; Do nothing when the call did not originate from an inbound DID&lt;br /&gt;
exten =&amp;gt; s,n,GotoIf($[&amp;quot;${FROM_DID}&amp;quot;=&amp;quot;&amp;quot;]?done)&lt;br /&gt;
&lt;br /&gt;
; Add Diversion header using the original incoming DID&lt;br /&gt;
exten =&amp;gt; s,n,GoSub(func-set-sipheader,s,1(Diversion,&amp;lt;sip:${FROM_DID}@PBX_IP_OR_FQDN&amp;gt;\;reason=unconditional))&lt;br /&gt;
&lt;br /&gt;
; Return control to the FreePBX-generated outbound dialplan&lt;br /&gt;
exten =&amp;gt; s,n(done),Return()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The resulting behavior is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NORMAL OUTBOUND CALL&lt;br /&gt;
&lt;br /&gt;
1001 ──────► FreePBX ──────► SIP Provider&lt;br /&gt;
                              No Diversion&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FORWARDED CALL&lt;br /&gt;
&lt;br /&gt;
Caller&lt;br /&gt;
  │&lt;br /&gt;
  ▼&lt;br /&gt;
DID 5557896321&lt;br /&gt;
  │&lt;br /&gt;
  ▼&lt;br /&gt;
FreePBX ───────────────────► SIP Provider&lt;br /&gt;
                              │&lt;br /&gt;
                              │ Diversion:&lt;br /&gt;
                              │ &amp;lt;sip:5557896321@PBX_IP_OR_FQDN&amp;gt;;&lt;br /&gt;
                              │ reason=unconditional&lt;br /&gt;
                              ▼&lt;br /&gt;
                         Final Destination&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The important design point is that '''FreePBX continues to control the Inbound Route, Misc Destination, Outbound Route, and trunk through the GUI'''. The custom dialplan does only one thing: inject the '''''Diversion''''' header into the outbound PJSIP leg when '''''${FROM_DID}''''' indicates that the call originated from an inbound DID.&lt;/div&gt;</summary>
		<author><name>FherNando</name></author>	</entry>

	<entry>
		<id>https://wiki.voip.ms/article/SIP_Diversion_Header</id>
		<title>SIP Diversion Header</title>
		<link rel="alternate" type="text/html" href="https://wiki.voip.ms/article/SIP_Diversion_Header"/>
				<updated>2026-08-21T17:14:23Z</updated>
		
		<summary type="html">&lt;p&gt;FherNando: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In SIP, the '''''Diversion'' header''' is used to indicate that a call was '''redirected from its original destination to another destination'''.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Alice (5551000)&lt;br /&gt;
     |&lt;br /&gt;
     | calls&lt;br /&gt;
     v&lt;br /&gt;
Bob (5552000)&lt;br /&gt;
     |&lt;br /&gt;
     | call forwarding&lt;br /&gt;
     v&lt;br /&gt;
Carol (5553000)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The SIP '''''INVITE''''' arriving at Carol might contain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
From: &amp;lt;sip:5551000@example.com&amp;gt;&lt;br /&gt;
To: &amp;lt;sip:5553000@example.com&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5552000@example.com&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These fields tell Carol's system three different things:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Header !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| '''From''' || '''Who originated the call:''' 5551000&lt;br /&gt;
|-&lt;br /&gt;
| '''To''' / Request-URI || '''Current destination:''' 5553000&lt;br /&gt;
|-&lt;br /&gt;
| '''Diversion''' || '''The call was previously destined for:''' 5552000&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Why it exists==&lt;br /&gt;
&lt;br /&gt;
The Diversion header is especially important in '''call forwarding''' scenarios.&lt;br /&gt;
&lt;br /&gt;
Suppose customer '''''5552000''''' configures:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Forward all calls → 5553000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When someone calls '''''5552000''''', the PBX/carrier sends the call toward '''''5553000''''' while preserving information that the call originally went through '''''5552000'''''.&lt;br /&gt;
&lt;br /&gt;
You might see:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
INVITE sip:5553000@carrier.example SIP/2.0&lt;br /&gt;
From: &amp;lt;sip:5551000@pbx.example&amp;gt;&lt;br /&gt;
To: &amp;lt;sip:5553000@carrier.example&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5552000@pbx.example&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The carrier can therefore determine:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Caller = 5551000&lt;br /&gt;
Forwarding/diverting number = 5552000&lt;br /&gt;
Final destination = 5553000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The ''reason'' parameter==&lt;br /&gt;
&lt;br /&gt;
A Diversion header can also explain '''why''' the call was redirected:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5552000@example.com&amp;gt;;reason=unconditional&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other values you may encounter include:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
reason=unconditional&lt;br /&gt;
reason=user-busy&lt;br /&gt;
reason=no-answer&lt;br /&gt;
reason=deflection&lt;br /&gt;
reason=unavailable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Diversion: &amp;lt;sip:5552000@example.com&amp;gt;;reason=no-answer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Means roughly:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;This call was previously intended for 5552000, but it was redirected because 5552000 did not answer.&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==VoIP.ms Behavior==&lt;br /&gt;
&lt;br /&gt;
At VoIP.ms, when you forward a call from your PBX system, if the CallerID is not verified but a Diversion header is present, then we let pass the call taking the Diversion header added by your PBX and forwarding it to the intended destination.&lt;br /&gt;
&lt;br /&gt;
It is importat you correctly set the Diversion header on your PBX &amp;quot;Call Forwarding&amp;quot; settings.&lt;br /&gt;
&lt;br /&gt;
On modern systems like 3CX V20 the header is automatically added on forwarded call scenarios, however, this is something you may review with your PBX provider.&lt;/div&gt;</summary>
		<author><name>FherNando</name></author>	</entry>

	</feed>