SIP Trunk 2 User manual

SIP Trunk 2 IP-PBX User Guide
(Asterisk)
Ver1.1.1 2017/11/21

Index
1. SIP Trunk 2 Overview ……………………………………………………… 3
2. Purchase/Settings in Web Portal ……………………………… 5
3. Configuration Example of your IP-PBX ……………………………… 12
4. Technical Data ……………………………… 24
2

SIP Trunk 2 is a next generation IP phone service that connects to PBX making an external line call
which is compatible to Asterisk, Aspire X IP-PBX
1.SIP Trunk 2 Overview
<SIP Trunk 2 FEATURE HIGHLIGHTS>
■Compatible to Asterisk, Aspire X PBX
■Options for “ Authentication Method” are:
•Password Authentication
•
Authentication with IP Address
•
Authentication with IP Address
•Authentication using both IP Address and Password
■CPS (Call Per Second) has been significantly improved from normal SIP trunk
*Our Cloud PBX Recording Option is currently not supported by SIP trunk 2
(If you need the recording option, please Contact us)
===== Verified IP-PBX =====
・Asterisk
Asterisk PBX/1 4 x
Asterisk PBX 1 6 x
Asterisk PBX 1 8 x
Asterisk PBX 11
Asterisk PBX 11
Asterisk PBX 12
・Aspire X
IP3WW-32VOIPDB-A1
version: 05 01
*IP-PBX versions not listed above are not fully supported by SIP trunk 2
========================
※Please permit on your firewall incoming network traffic from our VoIP server IP addresses with
5060, 10000~20000 UDP ports
3

1.SIP Trunk 2 Overview
[Sample Configuration SIP trunk2 with IP-PBX]
*If SIP trunk2 Unique was purchased BEFORE March 9, 2017,
Unique: 0000123456
SIP Trunk2 Server: xxx.xxx.xxx.xxx
Your IP-PBX : IP Address 000 000 000 000
DIDs: 0312345678 ,0312123434
*If SIP trunk2 Unique was purchased BEFORE March 9, 2017,
In case of Japanese toll free numbers such as prefix 0120,
0800 and 0570, you should set its background number
showing in Phone Number List of the web portal.
ex.) A number enclosed in parentheses is its background
number.
number.
0120****** [03******]
*Customers who use multiple SIP trunk 2 Unique together
( the one purchased before Mar, 9 2017 and the one
purchased Mar, 10 2017 afterwards) can check each SIP
trunk2 unique setting on the SIP trunk2 Unique Details page
trunk2 unique setting on the SIP trunk2 Unique Details page
as below
Checked : Back ground number
Unchecked : Free Call or Navi-Dial number
4

1.SIP Trunk 2 Overview
xxx xxx xxx xxx
SIP Trunk 2
To:<
sip:
0312345678
@
000 000 000 000
>
From: <
sip:
0312123434
@xxx xxx xxx xxx
>
To:<
sip:
0312345678
@
000 000 000 000
>
Recipient number is set “To header” and “Alert-
Into” in SIP messages for Incoming call
See section 4 ”Technical Data" for more details
From: <
sip:
0312123434
@xxx xxx xxx xxx
>
Caller ID must be set “From header” for outgoing call
See section 4 ”Technical Data" for more details
Your IP-PBX
0000 0000 0000 0000
Ext 200
Ext 201
DID: 0312123434
DID: 0312345678
Ext 200
Ext 201
Image 1 Configuration Diagram of Incoming/Outgoing Calls
Call TO in case DID : “0312345678”, ext. 200 will ring.
Call TO in case DID : “
0312123434
”,
ext
201 will ring.
5
Call TO in case DID : “
0312123434
”,
ext
201 will ring.
Outgoing call from ext. 200, “0312345678” is set as caller ID
Outgoing call from ext. 201, “0312123434” is set as caller ID.

2.Purchase/Settings in Web Portal
For purchasing SIP Trunk 2, access the UI of our IP-PBX.
Buy additional SIP trunk channel for 2 or more simultaneous external calls.
Buy additional SIP trunk channel for 2 or more simultaneous external calls.
<SIP Trunk 2 Purchase Screen>
①
③
②
①Select “Purchase” at the top menu and choose ”Purchase Unique”
in
Circle Management Page
③
in
Circle Management Page
②Select quantity of SIP trunk 2
③Click “Add to Cart” to proceed for your purchase
6

2.Purchase/Settings in Web Portal
Purchase phone number here
*At least one phone number will be needed for external phone calls through SIP Trunk
<
Phone Number Purchase Screen>
<
Phone Number Purchase Screen>
②
①
①Select “Purchase” at the top menu and choose
”Purchase Phone Number”
in Circle Management Page
”Purchase Phone Number”
in Circle Management Page
②On the Purchase Phone Number page, find your desired phone number by
clicking “Search” button. Add to cart and select “Your Cart” to proceed.
7

2.Purchase/Settings in Web Portal
<SIP Trunk 2 List>
①
②③
①Select “SIP Trunk List” to open all your SIP trunk account
②Select the icon under “Detail” for detailed settings of SIP Trunk
(See next page)
③
Your unique is used as client user ID of your user PBX end
③
Your unique is used as client user ID of your user PBX end
8

2.Purchase/Settings in Web Portal
<SIP Trunk 2 Detailed Settings ・Password Authentication>
①
②
③
④
⑤
⑤
⑥
⑦
⑧
⑨
① Login server name of SIP Trunk 2
②
SIP Server IP Address
⑩
②
SIP Server IP Address
Please configure it as [peer] in sip conf on your Asterisk
*Please refer p 14 for details
③ Unique is used as client user ID of your user PBX end
④ Item “Name” is where you can name/rename your SIP Trunk account
⑤
Select authentication
method
as “Password Authentication”
⑤
Select authentication
method
as “Password Authentication”
⑥ Enter your terminal password is used as client user password of your PBX end
⑦ In case you use Free Call or Navi-Dial number, please designate format of
incoming number configured on your SIP server
Checked : Please configure 0ABJ number
Unchecked : Please configure Free Call or Navi-Dial number
(* Changing check box status is not allowed )
(* Changing check box status is not allowed )
⑧ Set multiple call count It’s 1 by default Purchase “Additional 1 channel for
SIP Trunk 2” if you need more than 2 concurrent calls
⑨ If this option is checked, you can specify channel reservation for multiple
outbound calls
⑩ If this option is checked, you can specify channel reservation for multiple
inbound
calls
9
inbound
calls
*Note ⑨ and ⑩
The total channel reservation (outbound + inbound) must not exceed the multiple call count.
Please refer p.12 for further details.

2.Purchase/Settings in Web Portal
<SIP Trunk 2 Detailed Settings ・Authentication with IP Address>
①
①
②
③
④
⑤
⑥⑦
⑧
⑨
⑩
⑪
①Login server name of SIP Trunk 2
②Our SIP Server IP Address
Please configure it as [peer] in sip conf on your Asterisk
*Please refer
p 14
for details
*Please refer
p 14
for details
③Unique is used as client user ID of your user PBX end
④Item “Name” is where you can name/rename your SIP Trunk account
⑤Select authentication method as “Authentication with IP Address”
⑥Enter a public IP address / a port number of your IP-PBX *You can add multiple IP
addresses/ports from “+Insert” button
⑦
Your IP
-
PBX will receive incoming call if ticked *If
unticked
it will work only for
⑦
Your IP
-
PBX will receive incoming call if ticked *If
unticked
it will work only for
outgoing calls
⑧In case you use Free Call or Navi-Dial number, please designate format of
incoming number configured on your SIP server
Checked : Please configure 0ABJ number
Unchecked : Please configure Free Call or Navi-Dial number
(
* Changing check box status is not allowed
)
(
* Changing check box status is not allowed
)
⑨ Set multiple call count It’s 1 by default Purchase “Additional 1 channel for
SIP Trunk 2” if you need more than 2 concurrent calls
⑩ If this option is checked, you can specify channel reservation for multiple
outbound calls
⑪
If
this option is checked, you can specify channel reservation for multiple inbound
10
⑪
If
this option is checked, you can specify channel reservation for multiple inbound
calls
*Note ⑩ and ⑪
The total channel reservation (outbound + inbound) must not exceed the multiple call count.
Please refer p.12 for further details.

2.Purchase/Settings in Web Portal
<SIP Trunk 2 Detailed Settings ・
Authentication using both IP Address and Password>
①
②
④
③
⑤
⑤
⑥
⑦
⑧
⑨
①
Login server name of SIP Trunk 2
⑩
⑪
①
Login server name of SIP Trunk 2
②Our SIP Server IP Address
Please configure it as [peer] in sip conf on your Asterisk
*Please refer p 14 for details
③Unique is used as client user ID of your user PBX end
④Item “Name” is where you can name/rename your SIP Trunk account
⑤
Select authentication method as “Authentication
using Both IP Address and Password”
Select authentication method as “Authentication
using Both IP Address and Password”
⑥ Enter your terminal password is used as client user password of your PBX end
⑦Enter a public IP address / a port number of your IP-PBX *You can add multiple IP addresses/ports
from “+Insert” button
⑧In case you use Free Call or Navi-Dial number, please designate format of incoming number
configured on your SIP server
Checked : Please configure 0ABJ number
Unchecked
: Please configure Free Call or
Navi
-
Dial number
Unchecked
: Please configure Free Call or
Navi
-
Dial number
(* Changing check box status is not allowed )
⑨ Set multiple call count It’s 1 by default Purchase “Additional 1 channel for
SIP Trunk 2” if you need more than 2 concurrent calls
⑩ If this option is checked, you can specify channel reservation for multiple outbound calls
⑪ If this option is checked, you can specify channel reservation for multiple inbound calls
*
Note
⑩
and
⑪
11
*
Note
⑩
and
⑪
The total channel reservation (outbound + inbound) must not exceed the multiple call count.
Please refer p.12 for further details.

2.Purchase/Settings in Web Portal
<SIP Trunk 2 Detailed Settings ・
Channel Reservation Settings>
This section briefly discusses sample settings for SIP trunk2 channel reservations:
①Not using channel reservation (de ault)
If Multiple call count = 4, no reservations
This means outbound and inbound channels maximizes all channel limit
There is a possibility of all channels will be used for outbound calls only or inbound calls only
②Using channel reservation or outbound call
If
Multiple call count = 4
,
If
Multiple call count = 4
,
If hannel reservation for outbound call = 1
This would mean that the selected unique will have:
Allowed Outbound Calls = 4
Allowed Inbound Calls = 3
If Multiple call count = 4,
If Channel reservation for outbound call = 4
This would mean that the selected unique will have:
Allowed Outbound Calls = 4
Allowed
Inbound Calls =
0
Allowed
Inbound Calls =
0
③Using channel reservation or inbound call
If Multiple call count = 4,
If Channel reservation for inbound call = 3
This would mean that the selected unique will have:
This would mean that the selected unique will have:
Allowed Outbound Calls = 1
Allowed Inbound Calls = 4
If Multiple call count = 4,
If Channel reservation for inbound call = 4
12
This would mean that the selected unique will have:
Allowed Outbound Calls = 0
Allowed Inbound Calls = 4

2.Purchase/Settings in Web Portal
<SIP Trunk 2 Detailed Settings ・
Channel Reservation Settings>
④
U
sing both
outbound
and inbound
channel reservation
④
U
sing both
outbound
and inbound
channel reservation
If Multiple call count = 4,
If Channel reservation for outbound call = 3
If Channel reservation for inbound call = 1
This would mean that the selected unique will have:
Allowed
Outbound Calls =
3
Allowed
Outbound Calls =
3
Allowed Inbound Calls = 1
13

2.Purchase/Settings in Web Portal
Select phone number(s) you desire to assign to SIP Trunk 2
<
Phone Number List>
<
Phone Number List>
②
②
①
①Click “Phone Number List” to open your Phone Number List.
②Select SIP Trunk 2 unique for phone number(s) you desire to assign for it
14

3.Configuration Example of your IP-PBX
3.1. Con iguration Example in Asterisk
[Account Example]
Unique: 0000123456
Password: password
Password: password
DIDs: 0312345678 ,0312123434
Extensions: 200,201
Login Server: xxx.xxx.xxx.xxx
※login the web portal to confirm your login server
[Settings Example]
[Settings Example]
Incoming call for 0312345678 is to be arrived at Ext 200
Incoming call for 0312123434 is to be arrived at Ext 201
Outgoing call from a phone with Ext 200 is to be called with CallerID: 0312345678
Outgoing call from a phone with Ext 201 is to be called with CallerID: 0312123434
; ------------------
;
sip conf
(for either password or IP address with password authentication)
;
sip conf
(for either password or IP address with password authentication)
; ------------------
[general]
allowguest=no
maxexpirey=3600
defaultexpirey=3600
port=5060
port=5060
bindaddr=0 0 0 0
srvlookup=yes
disallow=all
allow=ulaw
language=jp
register =>
0000123456
:password@siptr
register =>
0000123456
:password@siptr
[siptr]
type=friend
username=0000123456
secret=password
context=inbound
canreinvite=no
host=
xxx.xxx.xxx.xxx
host=
xxx.xxx.xxx.xxx
insecure=port,invite
disallow=all
allow=ulaw
qualify=yes
nat=yes
;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver 11
15
;<see also next page or the rest settings o sip.con >

3.Configuration Example of your IP-PBX
; ------------------
; sip conf (for either password or IP address with password authentication)
; ------------------
[
200
]
[
200
]
type=friend
username=200
secret=200pass
host=dynamic
context=outbound-1
[
201
]
[
201
]
type=friend
username=201
secret=201pass
host=dynamic
context=outbound-2
;<see also next page or sip.con or IP address authentication>
16

3.Configuration Example of your IP-PBX
; ------------------
; sip conf (for IP address authentication)
; ------------------
[general]
[general]
allowguest=no
maxexpirey=3600
defaultexpirey=3600
port=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=
ulaw
allow=
ulaw
language=jp
[siptr]
type=friend
context=inbound
canreinvite=no
host=xxx.xxx.xxx.xxx
insecure
=port,invite
insecure
=port,invite
disallow=all
allow=ulaw
qualify=yes
nat=yes
;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver 11
[peer1]
type
=
friend
type
=
friend
context=inbound
Host=xxx.xxx.xxx.xxx
nat=yes
[peer2]
type=friend
context=inbound
Host=
xxx.xxx.xxx.xxx
Host=
xxx.xxx.xxx.xxx
nat=yes
;please refer to P 10 ② for checking host IP address to be configured as peer
[200]
type=friend
username=200
secret=
200
pass
secret=
200
pass
host=dynamic
context=outbound-1
[201]
type=friend
username=201
secret=201pass
host=dynamic
17
host=dynamic
context=outbound-2

3.Configuration Example of your IP-PBX
; ------------------
; extensions conf
; ------------------
[general]
writeprotect
=no
writeprotect
=no
priorityjumping=yes
[inbound]
exten => 0312345678,1, Dial(SIP/200,120,t)
exten => 0312345678,2,Congestion
exten => 0312345678,102,Busy
exten => 0312123434,1, Dial(SIP/201,120,t)
exten => 0312123434,2,Congestion
exten => 0312123434,102,Busy
[outbound-1]
exten => _0 , 1,Set(CALLERID(num)= 0312345678
exten => _0 , 2,Dial(SIP/${EXTEN}@siptr,120,T)
exten
=> _0 , 3,Congestion
exten
=> _0 , 3,Congestion
exten => _0 ,104,Busy
exten => _1 , 1,Set(CALLERID(num)= 0312345678
exten => _1 , 2,Dial(SIP/${EXTEN}@siptr,120,T)
exten => _1 , 3,Congestion
exten => _1 ,104,Busy
;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on
;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on
exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)
exten => _ XXX, 2,Congestion
exten => _ XXX, 102,Busy
; XXX represents 3 digit-extensions Please adjust digit number as yours
;<see also next page or the rest settings o extensions.con >
18

3.Configuration Example of your IP-PBX
[outbound-2]
exten => _0 , 1,Set(CALLERID(num)= 0312123434)
exten => _0 , 2,Dial(SIP/${EXTEN}@siptr,120,T)
exten
=> _0 , 3,Congestion
exten
=> _0 , 3,Congestion
exten => _0 ,104,Busy
exten => _1 , 1,Set(CALLERID(num)= 0312123434)
exten => _1 , 2,Dial(SIP/${EXTEN}@siptr,120,T)
exten => _1 , 3,Congestion
exten => _1 ,104,Busy
;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on
;prefix 1xx is for special (external) phone numbers such as 117, 177 and so on
exten => _ XXX, 1,Dial(SIP/${EXTEN},120,T)
exten => _ XXX, 2,Congestion
exten => _ XXX, 102,Busy
; XXX represents 3 digit-extensions Please adjust digit number as yours
19

3.Configuration Example of your IP-PBX
3.2. Con iguration Example to limit multiple call count or each extension group in Asterisk.
[Settings Example]
Set max multiple call count (for external calls) as 2 for Group 1
Group 1:Max multiple count 2
Extensions 201 ~202
Phone Numbers 03-1234-5678
Group
2
:
Max multiple count 3
Extensions
301
~
302
Set max multiple call count (for external calls) as 2 for Group 1
Set max multiple call count (for external calls) as 3 for Group 2
Group
2
:
Extensions
301
~
302
Phone Numbers 03-1212-3434
; ------------------
; sip conf (for either password or IP address with password authentication)
; ------------------
[general]
allowguest=no
maxexpirey=3600
defaultexpirey=3600
context=extd
port=5060
bindaddr
=0 0 0 0
bindaddr
=0 0 0 0
srvlookup=yes
disallow=all
allow=ulaw
language=jp
register=>0000123456:password@xxx.xxx.xxx.xxx/0000123456
[
0000123456
]
[
0000123456
]
type=friend
username=0000123456
secret=password
host=xxx.xxx.xxx.xxx
insecure=port,invite
context=inbound
qualify=
yes
qualify=
yes
nat=yes
;please add nat=force_rport,comedia instead of nat=yes in case your asterisk is above ver 11
;<see also next page or the rest settings o sip.con >
20
Table of contents
Popular PBX manuals by other brands

Panasonic
Panasonic KX-NS300 installation manual

Yeastar Technology
Yeastar Technology MyPBX user manual

Panasonic
Panasonic KX-TD612NZ user manual

Grandstream Networks
Grandstream Networks UCM6300 Series High Availability User Guide

Epygi
Epygi QuadroM8L Administrator's guide

Planet
Planet IPX-600 user manual