Re: [OpenSIPS-Users] OpenSIPS Dispatcher Module - Performance Testing

2019-08-15 Thread Alexey Kazantsev via Users
Hello,

isn't it better to consider something from these modules:

- DROUTING [1]
- LOAD_BALANCER [2]
- CARRIERROUTE [3]

1 https://opensips.org/html/docs/modules/3.0.x/drouting.html
2 https://opensips.org/html/docs/modules/3.0.x/load_balancer.html
3 https://opensips.org/html/docs/modules/3.0.x/carrierroute.html



---
BR, Alexey
http://alexeyka.zantsev.com/
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS Dispatcher Module - Performance Testing

2019-08-15 Thread David Villasmil
Hello,

Though you could use dialplan+dispatcher to do that, that would mean
querying the dB every time you get call. You’d match the incoming DID with
a group id in the dialplan table, and use that gid to load-balance to the
gateways via the diaspatcher module.

I’d recommend using a db_cache  and query the DID/gateway assignment there
where you have the DIDs assigned to a gid. Something like DID:GID

You get back the GID and use THAT to load-balance to the group is gateways.

Hope that helps.

David

On Thu, 15 Aug 2019 at 16:45, Steve Kumar  wrote:

> Hi,
>
> We are thinking to use a dispatcher module for inbound call routing. When
> inbound call will come we will match the DID with the DID present in
> attribute column of dispatcher table and will route the call to specific
> FreePBX instance.
>
> The only concern is that we have around 12000 DID and there will be around
> 12000 rows in that table. So we were thinking that would it be a
> performance degradation or no? Dispatcher module can handle all that DID's
> and we only have around 150 PBX IP's, which means many DID's can be pointed
> to single PBX IP.
>
> Want advice from experts on this topic.
>
> Thanks and regards
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users