I have a question about ANI number. When Agent dial to customer number (we have PSTN number or mobile number), can i config agent DN or other object (agent login, Place..) for routing to specify Media Gateway (with customer number is PSTN then the call route to one Media Gateway, other one for customer number is mobile) ?
Thanks Kubig, in trunk DN i know prefix option, but in this case i have 2 Media gateway, and want to agent dial and the SIP server can be know what media gateway will be receive this call.? Can or can not ?
You can set geo-location on Trunk object and the SIP server will choose the trunk through this parameter. In this case you have to add these parameter within agent app or before SIP server will process it. From my point of view is the prefix the best way for achive this.
Yes, i know but i need to add for a range agent only dial to media gateway for PSTN. When SIP Server is selecting a gateway, a “prefix” match takes priority over “geo-location” and SIP server will use “geo-location” to select a gateway when no prefix match is found and "find-trunk-by-location = true’’ I think i need to add each Voice Over IP Service with service-type = dial-plan for each prefix i have (PSTN and mobice).
If we have 2 Trunk DN, 2 Media Gateway (1st M3K MG for PSTN, 2nd M3K MG for Mobile)
Now with 2 agent ranges :
1st range with DN from 1200 → 1400
2nd range with DN from 1500 → 1600
And then with 1st range, agent can dial to PSTN or mobile: if it’s PSTN call, the call will routed to 1st M3K Media Gateway , if it’s mobile call, the call will routed to 2nd M3K Media Gateway
With 2nd range, all the call from agent will be routed to 1st M3K Media Gateway.
I think option geo-location and dial-plan can be solve this scenario ??
The geo-location will be pure solution and without any further work involving. You can set geo-location on Person level. Or if you have IWS, you can configure it on application level and for each range of agents dedicate own IWS object. There are more than way how to achieve it, but I do not know all details about your env.
Geo-location is designed to be non-binding, just a preferable parameter for trunk selection. And then an alternative trunk with different geo-location can be selected. Maybe it’s solution for agent range #1, but with agent range #2, how to the call always sent to M3K#1 ?
I would say that combination of dial-plan and prefix provides you with required functionality. You have to create 2 dial-plans - one for each agent group (range) and assign unique prefix to both gateways.
1st dial-plan (DN 1200 → 1400) - prefix is added to number based on dialled number type (PSTN or mobile) so SIP Server will select right gateway then
2nd dial-plan (DN 1500 → 1600) - prefix for PSTN M3K is added to all dialled calls (excluding internal ones)
It is not easy task to write good dial-plan but any other solution would be tricky to maintain IMHO.
Yes, SIP server should select trunk according to the geo-location. But, as Rene recommended, it is better to use combine of prefix and dial-plan. It works perfectly and as expected.