[SR-Users] How to insert modules in kamailio?

Bruno Bresciani bruno.bresciani at gmail.com
Tue May 11 16:33:51 CEST 2010


Is an existing module but I adapted to make route with regular
expressions...



2010/5/11 Daniel-Constantin Mierla <miconda at gmail.com>

>
>
> On 5/11/10 4:00 PM, Bruno Bresciani wrote:
>
> Daniel I was now downloading the version 3.0 because includes both kamailio
> and ser modules. Let me see if I understand: To include the route module in
> the kamailio 3.0 just only copy it to modules_s directory and then compile?
>
> is it a module you wrote? Or is an existing ser module? I couldn't spot a
> route module in directory modules_s, but a prefix_route...
>
> If it is a private module you wrote, then you may need to do some changes
> in the source code. Mainly is about the database API which was relocated and
> you have to update the include path.
>
> The add the line:
> DEFS+=-DSER_MOD_INTERFACE
>
> to your module Makefile (see for example the modules_s/domain/Makefile). If
> you have db, then add also:
> SERLIBPATH=../../lib
> SER_LIBS+=$(SERLIBPATH)/srdb2/srdb2
>
> Actually if you have a very old ser version (0.9.x), it may require a bit
> more changes to upgrade since ser did some internal changes couple of years
> ago (for version 2.0, 2.1)...
>
> Cheers,
> Daniel
>
>
>
>
>
> 2010/5/11 Bruno Bresciani <bruno.bresciani at gmail.com>
>
>> Daniel eu já estava baixando a versão 3.0 porque inclui tanto kamailio e
>> módulos de ser. Deixe-me ver se entendi: Para incluir o módulo de rota no
>> kamailio 3,0 basta apenas copiá-lo para modules_s diretório e depois
>> compilar?
>>
>>
>>
>> 2010/5/11 Daniel-Constantin Mierla <miconda at gmail.com>
>>
>> Hello,
>>>
>>>
>>> On 5/11/10 3:19 PM, Bruno Bresciani wrote:
>>>
>>>> How to insert modules in kamailio?
>>>>
>>>> Hi people, I worked with ser but now I'm migrating to kamailio... I'd
>>>> like to know how to insert a ser module in the kamailio? Example: In the ser
>>>> modules exist the route module and I want to use it in the kamailio. It's
>>>> possible?
>>>>
>>>>  to shed some light, version 3.0 includes both kamailio and ser
>>> modules. It is practically the same source code, just different default
>>> modules used for auth, rr, a.s.o.
>>>
>>> Here is an picture trying to detail the source code structure:
>>> http://sip-router.org/releases/
>>>
>>> In this context, you can say you upgraded to 3.0 and it is up to you if
>>> you want to compile as kamailio or as ser :-).
>>>
>>> The kamailio_3.0 branch has disabled the compilation of duplicated ser
>>> modules (those located in modules_s directory). To enable, do:
>>>
>>> make modules_dirs="modules modules_k modules_s" cfg
>>>
>>> then compile and install.
>>>
>>> Cheers,
>>> Daniel
>>>
>>> --
>>> Daniel-Constantin Mierla
>>> * http://www.asipto.com/
>>> * http://twitter.com/miconda
>>> * http://www.linkedin.com/in/danielconstantinmierla
>>>
>>>
>>
>
> --
> Daniel-Constantin Mierla
> * http://www.asipto.com/
> * http://twitter.com/miconda
> * http://www.linkedin.com/in/danielconstantinmierla
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100511/4c20a964/attachment.htm>


More information about the sr-users mailing list