Introduction
Sometimes, the SIM cards purchased by client are different, so the dialed number format for each carrier are not the same and the rate of the calls between different carriers are expensive. In the condition, the client would need to select the right GSM line to make calls.
As for incoming calls, the client want to route different GSM line by different destinations.
In the following, we would introduce the proper routing plan to achieve above goals.
Target
- Dial different format number via different SIM.
- Receive call from different SIM to different destination of SIP server .
Description & Schema
IP address of S100: 192.168.9.217
IP address of TG400: 192.168.9.195
Part 1- Dial different format number via different SIM
Let's say, the mobile format of carrier A is 09XXXXXXX and the mobile format of carrier B is 08XXXXXXX
call flow A: when caller dial 09X, the call will be routed to SIM of Carrier A.
call flow B: when caller dial 08X, the call will be routed to SIM of Carrier B.
Setting on SIP server side
Step1: Create SIP Peer Trunk with TG device
Trunk Type: Peer Trunk
Hostname/IP: IP address of TG gateway
Domain: IP address of TG gateway
Step2: Create outbound route for call from SIP server to TG.
Patterns: X.
Member Trunks: SIP Peer trunk which established with SIP server
Setting on TG Gateway
Step1: Create SIP Peer Trunk with SIP server
Step 2: Create IP to Mobile Route.
go to Gateway> IP to Mobile
Call Source: SIP Peer Trunk which established with SIP server
DID Number: the dialed number format of certain carrier
Call Destination: GSM trunk/SIM you want to use for calling
Part 2- Call from different SIM to same SIP server
Let's say, we require mobile user which dial SIM2 will reach the extension 400.
Dial SIM3 number will reach the extension 401.
Setting on SIP server side
DID Pattern: It must be the same with the hotline number on TG device.
Member Trunks: SIP Peer Trunk which established with TG
Setting on TG Gateway
Create Mobile to IP route
go to Gateway> Mobile to IP
Call Source: Choose the GSM Trunk of carrier
Call Destination: SIP Peer Trunk which established with SIP server
Hotline: It must be the same with the DID number on SIP server.
Note: In the case, mobile call from TG to SIP server will be failed if the Hotline number is blank.
1 Comments