Alright, thanks guys! I'll have a closer look at the existing modules.
-----Original Message----- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Tuesday, August 20, 2013 1:37 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Writing a module Hello, devel guide is useful for writing own module: - http://www.asipto.com/pub/kamailio-devel-guide/ Also, it was a recent discussion on sr-dev with hits about modules to look at: - http://lists.sip-router.org/pipermail/sr-dev/2013-August/020977.html Cheers, Daniel On 8/20/13 1:33 PM, Grant Bagdasarian wrote: > It's going to be a custom routing module, with our own business logic. > > It should load the routes from a database and keep refreshing the data every > x interval. > For SIP-to-PSTN calls (outgoing to carrier) we need to be able to route based > on the callerprefix, customer id (which is added as a custom header), > originating IP, and some other fields. > I need a way to select the closest matching route, or fallback to the default > route, using the fields described above. > > Implementing this logic in a stored procedure is quite hard. Another option > would be to write a web service and perform http calls to determine the > route. I'm just worried that http might delay the setup of calls. > > Our routes table contains custom fields, but also fields which are used by > the dispatcher module. So once a route is selected, the dispatcher module > will use the uri in the route set to rewrite the ruri and possibly do > failover. > > -----Original Message----- > From: sr-users-boun...@lists.sip-router.org > [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex > Balashov > Sent: Tuesday, August 20, 2013 12:43 PM > To: sr-users@lists.sip-router.org > Subject: Re: [SR-Users] Writing a module > > On 08/20/2013 06:41 AM, Grant Bagdasarian wrote: > >> Hello, >> >> Is this page still up-to-date: >> http://www.kamailio.org/dokuwiki/doku.php/development:write-module ? >> >> I'm researching what it takes to create our own custom Kamailio module. > 1. Skilled C programming. > > 2. What do you want to accomplish? Are you sure no combination of existing > modules and script constructs fit the bill? > > Sometimes you really do need a custom module. But I find those cases to be > relatively few, at least for applications of Kamailio that are not truly > exotic. > > -- Alex > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > United States > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > > _______________________________________________ > 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 > > _______________________________________________ > 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 -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda _______________________________________________ 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 _______________________________________________ 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