Help developing a module in master branch (using kamailio flavour)
Hi, I'm coding a new module but I'm getting lost when trying to compile the whole sources. Basically I've created my own local branch (starting from master branch): ~# git clone --depth 1 git://git.sip-router.org/sip-router sip-router ~# cd sip-router ~# git checkout -b ibc Then I write my new module under modules/ directory (or perhaps should I do it under modules_k/ ?). I'd prefer to do it under modules/ as the module has no MI feature, neither other specific flavour dependencies. And then I just want to compile the sources using kamailio flavour (as I'm not used to 'ser'), so I want to get 'kamailio' binary and /etc/kamailio/ directory. How to do this? Which is the preferred way to create a new module? should I do just "make & make install"? I remember some threads about it in this maillist without an easy conclusion so I ask you for help. Thanks a lot. PS: Please, merge :) -- Iñaki Baz Castillo <ibc@aliax.net>
2010/10/2 Iñaki Baz Castillo <ibc@aliax.net>:
should I do just "make & make install"?
I meant: "make all && make install" This would create sip-router binary and /etc/sip-router/ directory (according to INSTALL file). Should I work over this configuration in order to code a new module? -- Iñaki Baz Castillo <ibc@aliax.net>
2010/10/2 Iñaki Baz Castillo <ibc@aliax.net>:
I meant: "make all && make install"
This would create sip-router binary and /etc/sip-router/ directory (according to INSTALL file).
Well, this is what INSTALL file says, but the fact is that it generates "ser" name (and of course under /usr/local/). -- Iñaki Baz Castillo <ibc@aliax.net>
If you want to install kamailio, then run: make FLAVOUR=kamailio cfg After that, the usual make all; make install Regards, Ovidiu Sas On Fri, Oct 1, 2010 at 10:58 PM, Iñaki Baz Castillo <ibc@aliax.net> wrote:
2010/10/2 Iñaki Baz Castillo <ibc@aliax.net>:
I meant: "make all && make install"
This would create sip-router binary and /etc/sip-router/ directory (according to INSTALL file).
Well, this is what INSTALL file says, but the fact is that it generates "ser" name (and of course under /usr/local/).
-- Iñaki Baz Castillo <ibc@aliax.net>
_______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
On 10/2/10 4:14 AM, Iñaki Baz Castillo wrote:
Hi, I'm coding a new module but I'm getting lost when trying to compile the whole sources. Basically I've created my own local branch (starting from master branch):
~# git clone --depth 1 git://git.sip-router.org/sip-router sip-router ~# cd sip-router ~# git checkout -b ibc
Then I write my new module under modules/ directory (or perhaps should I do it under modules_k/ ?). I'd prefer to do it under modules/ as the module has no MI feature, neither other specific flavour dependencies. new modules have to be placed in 'modules' unless is a strict relation to one of the modules located in modules_k or modules_s (e.g., a new presence module). And then I just want to compile the sources using kamailio flavour (as I'm not used to 'ser'), so I want to get 'kamailio' binary and /etc/kamailio/ directory. How to do this? Which is the preferred way to create a new module? should I do just "make& make install"? I remember some threads about it in this maillist without an easy conclusion so I ask you for help. Like Ovidiu said, first do "make FLAVOUR=kamailio cfg". If you already compiled without flavour, do "make proper" to clean the config files for Makefile.
Cheers, Daniel
Thanks a lot.
PS: Please, merge :)
-- Daniel-Constantin Mierla http://www.asipto.com
2010/10/2 Daniel-Constantin Mierla <miconda@gmail.com>:
new modules have to be placed in 'modules' unless is a strict relation to one of the modules located in modules_k or modules_s (e.g., a new presence module).
Understood.
Like Ovidiu said, first do "make FLAVOUR=kamailio cfg". If you already compiled without flavour, do "make proper" to clean the config files for Makefile.
Thanks to both (Ovidiu and Daniel). It works perfectly :) -- Iñaki Baz Castillo <ibc@aliax.net>
participants (3)
-
Daniel-Constantin Mierla -
Iñaki Baz Castillo -
Ovidiu Sas