To dynamically add routes you do not need to understand how the code works. Use one of the routing modules (lcr, drouting, prefix_route, carrierroute ....). Ususally they are configured via a DB backend and perform a DB lookup for every call, or cache the routing table and the routing table can be reloaded via an external command.

You can also implement the routing logic yourself in kamailio.cfg and e.g. the sqlops module.

If you really want to understand the code of Kamailio, see:
http://www.asipto.com/pub/kamailio-devel-guide/

regards
Klaus

Am 09.10.2013 10:20, schrieb Keith:
Hi,

Wonder if anyone can point me in the right direction, or explain a bit more about how the code in Kamailio works. I am looking to build a front end to Kamailio so I can easily add routes etc without direct access to the config.

Thanks,
Keith


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users