[SR-Users] Minimalist Kamilio configuration example using dynamic routing module
miconda at gmail.com
Thu Apr 24 17:15:56 CEST 2014
installing latest kamailio stable version from git with mysql support is
You will find also a kamailio-basic.cfg (along kamailio.cfg), which is
There is also drouting module, but if you look for least cost routing
solution, you can check also the lcr or carrierroute module.
A simpler solution can be combining mtree and dispatcher modules, like:
- mtree: used to map did to a dispatcher group id (or even to an IP
address if you don't have multiple asterisks to try for same DID)
- dispatcher: used to hold the list of IPs for asterisks, grouped per
IPs of boxes able to handle same bunch of DIDs (dispatcher module has a
complete cfg in the readme, good to start with)
Permissions module can be used if any extra IP checking is needed
(dispatcher module can also test source IP addresses).
On 24/04/14 16:34, Gary Wallis wrote:
> We are moving away from OpenSIPS and would like to start testing
> I really liked how Kamailio complies so clean and is configured easily
> in comparison with OpenSIPS monstrosity.
> So to not waste time can anybody provide some practical info for...
> Kamailio complilation and config examples (w/MySQL) to route Carrier
> SIP (DID incoming and outgoing PSTN termination) traffic to and from
> Asterisk PBXs.
> Example current OpenSIPS setup using dynamic routing module:
> 1-. dr_rules have the complete DID for PBXs (for incoming traffic from
> Carriers to be proxied to the correct PBX).
> 2-. dr_rules have the partial DID for Carrier gateways (for example
> based on internatinal, state, etc. routing of outgoing traffic from
> PBXs to Carriers).
> 3-. dr_gateways have the IP numbers for PBXs.
> 4-. dr_gateways have the IP numbers for Carriers.
> Any info and pointers appreciated.
> Best regards,
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
More information about the sr-users