IP PBX Configuration Guide
IP PBX Configuration Guide
CONFIGURATION GUIDE
fusionconnect.com
Connect. Protect. Accelerate.
MegaPath requires specific settings to ensure successful SIP Registration between your PBX and
MegaPath SIP Servers.
Depending on the make and model of your equipment, some of these settings may not be presented as
listed below. You may have to refer to your PBX manual or vendor for assistance.
The Registration process is the first step in placing and receiving successful calls within MegaPath’s
VoIP Network. The diagram below show a basic registration method between an IP PBX and an
Edgemarc Voice Router.
The diagram is an example where the PBX sends a SIP Register with credentials to an Edgemarc Voice
Router. The Edgemarc then returns a successful 200 OK SIP message to complete the Registration
process.
Depending on your PBX type, the naming convention may or may not be the same as the settings listed
below; a reference to your PBX manual may be required:
fusionconnect.com
Connect. Protect. Accelerate. 1
Successful SIP Registration sent from your PBX with proper SIP Headers and accurate credentials, will
receive a 200 OK from MegaPath’s SIP Servers to the Edgemarc towards the PBX to complete the
registration process. Example shown below:
fusionconnect.com
Connect. Protect. Accelerate. 2
SIP Registration between PBX and MegaPath SIP Server
The diagram below show a basic registration method between an IP PBX and MegaPath’s SIP Server.
The diagram is an example where the PBX sends a SIP Register with credentials to MegaPath’s SIP
Server. The SIP Server then responds with a successful 200 OK message to complete the Registration
process.
In this setup the PBX will send registration traffic directly to MegaPath SIP Servers, so configuring an
SRV for the SIP Proxy will be required.
A Service record (SRV record) is a specification of data in the Domain Name System defining the
location, i.e. the hostname and port number, of servers for specified services. Within MegaPath, the
naming convention for SRV is as follows:
<CustomerStateAbbreviation>01-siptrunk.megapathvoice.net
It’s important to note that some PBXs do not support SRV records so the primary host will be required.
Windows:
1) Access Windows Command Prompt (Select Windows Logo/Run/Type “CMD” + Enter)
2) From Command Prompt, type the following:
a. nslookup - press the enter key
b. set type=SRV - press the enter key
c. _sip._udp.<input state>01-siptrunk.megapathvoice.net - press the enter key
i. Example: _sip._udp.tx01-siptrunk.megapathvoice.net
Linux/Unix:
1) Access Command Line (Terminal Session)
2) From Command Line, type the following:
a. host -t SRV _sip._udp.<input state>01-siptrunk.megapathvoice.net
i. Example: host -t SRV _sip._udp.tx01-siptrunk.megapathvoice.net
If your network resolved the SRV successfully, results will return a primary and secondary host.
fusionconnect.com
Connect. Protect. Accelerate. 3
Depending on your PBX type, the naming convention may or may not be the same as the settings listed
below; a reference to your PBX manual may be required:
Successful SIP Registration sent from your PBX with appropriate SIP Headers and accurate credentials,
will receive a 200 OK from MegaPath’s SIP Servers to the Edgemarc towards the PBX to complete the
registration process. Example shown below:
fusionconnect.com
Connect. Protect. Accelerate. 4
SIP Registration without initial Credentials
The diagram below show a basic registration method between an IP PBX and MegaPath’s SIP Server. In
this setup, the initial registration sent from the PBX does not include the Authorization Digest header
providing the SIP Username and Password.
In this diagram you will notice a 401 Unauthorized “Challenge” SIP message is sent to allow the PBX to
send a secondary Registration request with the appropriate authentication digest header.
fusionconnect.com
Connect. Protect. Accelerate. 5
From MegaPath’s SIP Server to IP PBX <<<
SIP/2.0 401 Unauthorized
From: <sip:[email protected]>;tag=bdec00-4a02b8aa-13c4-5506-a27af-13882dd0-a27af
To: <sip:[email protected]>;tag=SDgrl6299-1197488277-1441311612077
Call-ID: c09530-4a02b8aa-13c4-5506-a27af-629f8a0a-a27af
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 70.70.1.1:5060;branch=z9hG4bK-a27af-27ab0605-4f974819;rport;rport=5060
WWW-Authenticate: DIGEST qop="auth",nonce="BroadWorksXie4npxgtTiu2oh3BW",realm="BroadWorks",algorithm=MD5
Content-Length: 0
fusionconnect.com
Connect. Protect. Accelerate. 6
SIP INVITE for Outgoing Calls using the Pilot Number
MegaPath requires specific settings to ensure successful SIP Negotiation occur when placing outgoing
calls.
Similar to SIP Registration, SIP INVITEs from your PBX are “challenged” requiring the PBX to provide
SIP credentials in order to route calls through MegaPath’s VoIP network.
The diagram below show a basic outgoing call where the PBX sends a SIP INVITE to MegaPath’s SIP
Server. In this setup, the initial INVITE does not include the Authorization header providing the SIP
Username and Password so a 401 Unauthorized “Challenge” SIP message is sent to the PBX.
fusionconnect.com
Connect. Protect. Accelerate. 7
From IP PBX to MegaPath’s SIP Server >>>
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 10.10.18.20:5060;branch=z9hG4bK0ad07ace;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as642e79a3
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: FPBX-12.0.68(11.18.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 862
fusionconnect.com
Connect. Protect. Accelerate. 8
Content-Type: application/sdp
Content-Length: 862
Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE
Accept: application/media_control+xml,application/sdp
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 180
fusionconnect.com
Connect. Protect. Accelerate. 9
SIP INVITE for Outgoing Calls using a Non-Pilot Number
MegaPath requires specific settings to ensure successful SIP negotiation occur when placing outgoing
calls using a non-pilot number in the “From” Field of an INVITE. In this setup, users will have the ability
to place calls and present a VoIP DID other than the Pilot Number.
To accomplish this setup, a P-asserted-identity header will be required and must include the PILOT
NUMBER as shown below.
Depending on the make and model of your equipment, these settings may not be presented as listed
below. You may have to refer to your PBX manual or vendor for assistance.
• P-Asserted Identity / PAI / Some PBX models will list the P-Asserted Identity within a section
called “Header Action Name” or “Remote Party/Privacy” where a drop down menu will allow you
to select P-Asserted-Identity.
Input <PILOT NUMBER> for this field - example below show 5552221234
Outgoing Call Example: INVITE shows an outgoing call from the PBX using a non-Pilot number 5552224444 to PSTN
number 4085558888 with the P-Asserted Identity set as the Pilot Number 5552221234.
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 70.70.1.1:5060;branch=z9hG4bKF66A6C9E
From: "Test" <sip:[email protected]:5060>;tag=4C526990-650
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 102 INVITE
Contact: <sip:[email protected]:5060>
Supported: timer, resource-priority, replaces, sdp-anat
User-agent: Cisco-SIPGateway/IOS-15.2.4.M6a
Expires: 60
P-asserted-identity: "Test" <sip:[email protected]:5060>
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Content-Length: 0
MegaPath SIP Servers will send a “challenge” 401 Unauthorized SIP response to the INVITE to prompt the PBX to
resend the INVITE with an Authorization Digest header as shown below:
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 70.70.1.1:5060;branch=z9hG4bKF66A6C9E
From: "Test" <sip:[email protected]:5060>;tag=4C526990-650
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 102 INVITE
Contact: <sip:[email protected]:5060>
Authorization: Digest username="5552221234", realm="BroadWorks", nonce="BroadWorksXield8cc8Trmav5pBW",
uri="sip:[email protected]:5060", response="0557656d494f0ce50501b6e9d457b9cb", algorithm=MD5,
cnonce="A25263DA", qop=auth, nc=00000001
Supported: timer, resource-priority, replaces, sdp-anat
User-agent: Cisco-SIPGateway/IOS-15.2.4.M6a
Expires: 60
P-asserted-identity: "Test" <sip:[email protected]:5060>
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Content-Length: 0
fusionconnect.com
Connect. Protect. Accelerate. 10
SIP reINVITE – for PBX Call Forwarding
The process for forwarding or redirecting an incoming call can be accomplished within the MegaPath
network by having the PBX include a Diversion header within the redirect INVITE message.
Depending on the make and model of your equipment, this settings may not be presented as listed
below. You may have to refer to your PBX manual or vendor for assistance.
Forward Example: A ReINVITE of an incoming PSTN Call from 7035557777 to PBX Number 5552221111 where PBX TN
5552221111 is set to forward all calls to 4085558888.
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 70.70.1.1:5060;branch=z9hG4bK18f5124d;rport
From: <sip:[email protected]>;tag=as51a4c3a2
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.5.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Diversion: "5552221111"sip:[email protected]
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 1305
MegaPath SIP Servers will send a “challenge” 401 Unauthorized SIP response to the ReINVITE to prompt the PBX to
resend the INVITE with an Authorization Digest header as shown below:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 70.70.1.1:5060;branch=z9hG4bK519d4cd8;rport
From: <sip:[email protected]>;tag=as51a4c3a2
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 103 INVITE
User-Agent: FPBX-2.11.0(11.5.1)
Authorization: Digest username="5552221234", realm="BroadWorks", algorithm=MD5, uri="sip:4085558888@tx01-
siptrunk.megapathvoice.net", nonce="BroadWorksXiex38nzdT5x6ylhBW", response="7a61cb5cd624bc01f0f0ca4560c41270",
qop=auth, cnonce="3f60fe2a", nc=00000001
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Diversion: "5552221111"sip:[email protected]
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 1305
fusionconnect.com
Connect. Protect. Accelerate. 11