[SR-Users] Writing a module

Carlos Ruiz Díaz carlos.ruizdiaz at gmail.com
Tue Aug 20 14:01:56 CEST 2013


Sure it's a great option but sometimes your business complexity demands not
only database queries but remote sockets connection, complex iteration over
result sets, doing some regex over the values, etc. Doing this kind of
stuff with Perl feels a lot more comfortable.




On Tue, Aug 20, 2013 at 7:53 AM, Alex Balashov <abalashov at evaristesys.com>wrote:

> On 08/20/2013 07:51 AM, Carlos Ruiz Díaz wrote:
>
>> There's also a Perl module that can be used to execute a Perl script
>> containing your business logic.
>>
>> Sounds like you are doing lots of database queries and doing that from a
>> C module will always be more difficult than using a DB abstraction layer
>> that the one Perl provides.
>>
>
> ... or just good old 'sqlops'.
>
> The appearance of 'sqlops'[1] effectively obviated the need for writing
> most modules of this type.
>
> The case for modules remains only in cases where you need novel
> capabilities in script.  Novel database interactions can be had via
> 'sqlops' because it is generic and flexible.
>
> -- Alex
>
> [1] And really, avp_db_query() before it, but sqlops is just more flexible.
>
>
> --
> 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 at lists.sip-router.org
> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>



-- 
Carlos
http://caruizdiaz.com
+595981146623
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130820/ab6ee1df/attachment.html>


More information about the sr-users mailing list