Professional Documents
Culture Documents
http://www.dinstar.com
1 / 11
Peer Details:
host=192.168.10.251
type=friend
fromuser=dinstar
username=dinstar
secret=qazwsx$#
qualify=yes
port=5060
context=from-pstn
If the FeeePBX server and the MTG200 device are in different network, please make host to be
dynamic.
The port 5060 is used to define the communication port between MTG200 and FreePBX server,
user can define other ports too, but it must be same on both sides.
Incoming settings:
Define the incoming settings, user context and user details.
User Context: dinstar_in
http://www.dinstar.com
2 / 11
User Details:
disallow=all
allow=alaw&ulaw
canreinvite=no
context=from-pstn
dtmfmode=rfc2833
username=dinstar
secret=qazwsx$#
qualify=yes
insecure=invite
host=dynamic
type=friend
http://www.dinstar.com
3 / 11
After finish the settings, click Submit Changes to save the configurations and click Apply to
make them effective.
A4. Add Outbound Route
Go to Connectivity-->Outbound Routes page, click Add Route to add a new route, and configure
the settings.
Route Name: Local_Bucaramange, for example
Dial Patterns that will use this Route: 6XXXXXX, this means all the dial pattern begins with 6
and its length is equal to 7 will match this outbound route to call out.
http://www.dinstar.com
4 / 11
After finish these, click submit changes to save the settings and apply the configurations.
A5. Add Inbound Route
Go to Connectivity-->Inbound Routes page, click Add Incoming Route to add a new inbound
route.
Enter the name of this inbound route in Description option, Telefonica, for example. And
configure the DID Number, make sure the DID number is same with the E1 lines number.
http://www.dinstar.com
5 / 11
Set the Destination for this inbound route, it can be the an IVR or an extension or else.
http://www.dinstar.com
6 / 11
After configuring the network parameters, please restart the device to make the settings effective.
B3. Configure R2 trunk
Connect the E1 line you get from the provider to MTG200s E1 port, and open the web page.
http://www.dinstar.com
7 / 11
And then go to System&Statistics-->E1/T1 Status page, check the R2 trunks status, make sure
the E1 cable is connected and the protocol you set is right.
http://www.dinstar.com
8 / 11
Notice: SIP username and password must be same with the one user created on FreePBX server.
Outgoing call mode can be either access mode or peer mode.
After finish the settings, go to Status&Statistics-->IP trunk Status page to check if the trunk has
been setup well.
C. Test
Test the configurations.
C1.Add an extension on FreePBX
Go back to FreePBXs webpage, and go to Applications-->Extensions page, add an extension.
Configure display name and extension number, also configure the secret for this extension, leave
other parameters as default.
http://www.dinstar.com
9 / 11
http://www.dinstar.com
10 / 11
http://www.dinstar.com
11 / 11