Pick Specific GSM Port to Make Calls by TG Account Trunk

Introduction

Sometimes, the SIM cards purchased by the client are different, so the dialed number format for each carrier is not the same and the rate of the calls between different carriers is expensive. In the condition, the client would need to select the right GSM port to make calls.

As for incoming calls, the client wants to route different GSM by different destinations.

In the following, we would introduce the proper routing plan to achieve the above goals.

 

Target

  • Dial different format numbers via different GSM port.
  • Terminate a call from different GSM ports to a different destination.

 

Configuration

Environment

  • SIP Server( Take S100 as example) IP address: 192.168.8.126
  • TG400 IP address: 192.168.8.195
  • GSM port 1 registered to Carrier A
  • GSM port 2 registered to Carrier B

mceclip0.png

 

Part 1- Outbound Call settings (Call from SIP to GSM)

Let's say, the mobile format of carrier A is 09XXXXXXX  and the mobile format of carrier B is 08XXXXXXX.

Call flow A: when the caller dial 09X, the call will be sent by GSM port 1.

Call flow B: when the caller dial 08X, the call will be sent by GSM port 2.

 

Settings on the SIP server
 
Step1: Add 2 SIP Register Trunks by TG Accounts.

mceclip2.png

mceclip3.png

Step2: Create outbound routes for the call from SIP server to TG.

Add the outbound route to pick GSM port 1.

  • Patterns: 09X. (note the dot is required as the pattern)
  • Selected Trunks: TG_1
  • Selected Extensions: select as required.

mceclip4.png

Add the outbound route to pick GSM port 2.

  • Patterns: 08X. (note the dot is required as the pattern)
  • Selected Trunks: TG_2
  • Selected Extensions: select as required.

mceclip5.png

Settings on the TG

Add IPtoMobile route for GSM port 1.

  • Simple Mode: Yes.
  • Call Source: Account 1.
  • Call Destination: Trunk 1.

mceclip6.png

Add IPtoMobile route for GSM port 2.

  • Simple Mode: Yes.
  • Call Source: Account 2.
  • Call Destination: Trunk 2.

mceclip7.png

 

Part 2- Inbound Call settings (Call from GSM to SIP)

Let's say, we require that when caller dials TG port 1 number will reach the PBX extension 5001.
When caller dials TG port 2 number will reach the PBX extension 5002.

Settings on the SIP server

Add inbound route to terminate the call from GSM port 1 to extension 5001.

mceclip8.png

Add inbound route to terminate the call from GSM port 2 to extension 5002.

mceclip10.png

Settings on the TG

Add MobiletoIP route for GSM port 1.

  • Simple Mode: Yes.
  • Call Source: Trunk 1.
  • Call Destination: Account 1.

mceclip11.png

Add MobiletoIP route for GSM port 2.

  • Simple Mode: Yes.
  • Call Source: Trunk 2.
  • Call Destination: Account 2.

mceclip12.png

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.