Quote from: Belatra on February 01, 2018, 10:08:05 PM
My Obi200 with ObiLine is located in another country. ObiLine is connected to local PSTN
Obi200 is registered in GV service. All calls placed from the phone, connected to Obi may go to US-Canada via GV or to local phone line
I have full access to Obi200 settings via VPN
I am looking for a way to transfer local PSTN incoming calls through GV to US numbers depending on incoming caller's CID.
Let say there are two (or more) groups of incoming CID's from foreign PSTN
If incoming caller detected CID as a member of group 1, GV transfer call to US number 1
If a caller is a member of group 2 - call forwards to US number 2
etc.
If caller is not recognized as a member of any group - GV reject call or transfer it to VM
Most of that is relatively simple to configure. But be aware that the original Caller IDs will be lost. The calls to the US numbers will have your GV number as Caller ID.
1. Put each group of PSTN numbers in a User Defined Digit Map and give each map a unique label - eg gp1, gp2 etc. The screenshot shows how to separate them with the pipe character. (Those are some UK cold callers so I have no qualms about showing them!).
2. Modify the LINE port InBoundCallRoute to selectively forward those digits to the relevant US numbers. The second screenshot shows my blocked group numbers being sent to 53669. In your case the format would be:
{(Mgp1):sp1(11111111111)},{(Mgp2):sp1(12222222222)},{()}
where 11111111111 and 12222222222 are the US numbers. The 'sp1' assumes the GV service is configured on sp1. The {()} means that numbers not matching any in the groups will not be answered by the OBi. OBi has no VoiceMail so you need to use the foreign PSTN provider's VM (if available) or forward the calls to somewhere else that has VM.