· pdf filetitle: how to configure mtg200 with freepbx author: administrator created date:...

11
How to Configure MTG200 with FreePBX http://www.dinstar.com 1 / 11 How to Configure MTG200 with FreePBX A. FreePBX Setup Procedure To setup the FreePBX sever for Dinstar MTG200 A1. Login the FreePBX Open the web of the FreePBX server with its IP address, the IP is assigned by customer, and then enter the username and password to go to the main page. A2. Add a SIP trunk on FreePBX Go to Connectivity-->Trunks page, click Add Trunk to create a new sip trunk for the MTG200. A3. Configure the SIP Trunk Edit the parameters of the SIP trunk. Trunk Name: Dinstar, for example Other parameters, please keep the default ones.

Upload: duonghanh

Post on 21-Mar-2018

228 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 1 / 11

How to Configure MTG200 with FreePBX

A. FreePBX Setup ProcedureTo setup the FreePBX sever for Dinstar MTG200

A1. Login the FreePBXOpen the web of the FreePBX server with its IP address, the IP is assigned by customer, and thenenter the username and password to go to the main page.

A2. Add a SIP trunk on FreePBXGo to Connectivity-->Trunks page, click Add Trunk to create a new sip trunk for the MTG200.

A3. Configure the SIP TrunkEdit the parameters of the SIP trunk.Trunk Name: Dinstar, for exampleOther parameters, please keep the default ones.

Page 2: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 2 / 11

Outgoing Settings:Define the outgoing settings, trunk name and peer details.Trunk Name: dinstar_out

Peer Details:host=192.168.10.251type=friendfromuser=dinstarusername=dinstarsecret=qazwsx$#qualify=yesport=5060context=from-pstnIf the FeeePBX server and the MTG200 device are in different network, please make host to bedynamic.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

Page 3: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 3 / 11

User Details:disallow=allallow=alaw&ulawcanreinvite=nocontext=from-pstndtmfmode=rfc2833username=dinstarsecret=qazwsx$#qualify=yesinsecure=invitehost=dynamictype=friend

Page 4: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 4 / 11

After finish the settings, click Submit Changes to save the configurations and click Apply tomake them effective.

A4. Add Outbound Route

Go to Connectivity-->Outbound Routes page, click Add Route to add a new route, and configurethe settings.Route Name: Local_Bucaramange, for exampleDial Patterns that will use this Route: 6XXXXXX, this means all the dial pattern begins with 6and its length is equal to 7 will match this outbound route to call out.

Page 5: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 5 / 11

Trunk Sequence for Matched Routes:Select the trunk for this route to send out the calls, user can set several ones, here we only use theone Dinstar which we defined for the MTG200.

After finish these, click submit changes to save the settings and apply the configurations.

A5. Add Inbound RouteGo to Connectivity-->Inbound Routes page, click Add Incoming Route to add a new inboundroute.

Enter the name of this inbound route in Description option, Telefonica, for example. Andconfigure the DID Number, make sure the DID number is same with the E1 line’s number.

Page 6: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 6 / 11

Set the Destination for this inbound route, it can be the an IVR or an extension or else.

Other parameters, please keep them as default.Submit the settings and apply.

B. MTG200 Setup ProcedureSetup the MTG200.

B1. Login the MTG200Login the webpage of MTG200 by entering its IP address in web browser, the default IP ofMTG200’s FE1 port is 192.168.11.1, and default ip of MTG200’s FE0 port is 192.168.1.111, usercan connect either network port and use the corresponding IP to access the web of the device.

Page 7: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 7 / 11

By default, username and password is admin/admin.

B2. Configure the NetworkGo to Network page, setup the network connection for the device, input IP address, subnet mask,default gateway and DNS server

After configuring the network parameters, please restart the device to make the settings effective.

B3. Configure R2 trunkConnect the E1 line you get from the provider to MTG200’s E1 port, and open the web page.

Page 8: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 8 / 11

Go to R2 Config-->R2 Trunk page, add the R2 trunk.

And then go to System&Statistics-->E1/T1 Status page, check the R2 trunk’s status, make surethe E1 cable is connected and the protocol you set is right.

B4. Configure SIP trunkGo to SIP Config-->SIP Trunk page, add the sip trunk on the MTG200.

Trunk Name: FreepbxRemote Address: 192.168.10.252, the IP address should be the freepbx server’s.Register to Remote: YesOutgoing Call Mode: AccessSIP Username: dinstar_in

Page 9: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 9 / 11

SIP password: qazwsx$#SIP Confirm Password: same with the sip passwordDetect Trunk Status: No.

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 hasbeen setup well.

C. TestTest the configurations.

C1.Add an extension on FreePBXGo back to FreePBX’s webpage, and go to Applications-->Extensions page, add an extension.

Configure display name and extension number, also configure the secret for this extension, leaveother parameters as default.

Page 10: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 10 / 11

Submit the changes and apply it.

C2. Register the SIPAccountInstall a softphone on your pc, x-lite, for example, enter the sip account information and then

Page 11: · PDF fileTitle: How to Configure MTG200 with FreePBX Author: Administrator Created Date: 9/28/2014 11:29:45 AM

How to Configure MTG200 with FreePBX

http://www.dinstar.com 11 / 11

C3. Outgoing call testMake an outgoing call using X-lite, 6041996, for example.

C4.Incoming call testTest an incoming call, dial the E1 line’s number.