Hi Jan,<br><br><div class="gmail_quote">On Fri, Jul 24, 2009 at 11:07 AM, Jan Janak <span dir="ltr">&lt;<a href="mailto:jan@ryngle.com">jan@ryngle.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
</div>Wow, that&#39;s a bold move! Knowing that it is relatively easy to migrate<br>
such stuff to sip-router is very encouraging, thanks.</blockquote><div><br>This in the modules&#39; Makefile:<br><br>ifeq ($(CFG_NAME),sip-router)<br>    DEFS+=-DSER_MOD_INTERFACE<br>endif    <br><br>and then changes in the code based on the #ifdef SER_MOD_INTERFACE did it quite nicely. Also love the new modules partitioning as I got into a big mess before with just one directory.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
&gt;  * enum - support for query on the originating side, useful in PSTN<br>
&gt;    inbound processing<br>
<br>
</div>Could you send this patch to the mailing list and cc Juha?</blockquote><div> Attached.... but... this is one of our crazy-experimental stuff. I mean I haven&#39;t yet figured it our what to do with multiple response or what is the final list of things to change in the message, so it looks a bit messy to be merged in the master now.<br>
<br>As a bit of background info, this thing is useful when you have some sort of PSTN access gateway that would proxy all calls towards a SIP network. The node in charge of deciding the what-next part is called in IMS related terminology a TRansit Control Function (TRC or TRCF) and I have also attached a sample cfg for such a node. The advantage of doing also enum_orig() is that this node can decide, based on ENUM configuration, whether to trigger or not an originating leg processing in an originating domain proxy. Or putting it in another way, this provides the glue to have originating SIP services for PSTN UEs.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="im"><br>
&gt;  * ratelimit - a much extended ratelimit module, with multiple<br>
&gt;    queues, dynamic limiting capabilities based on internal/external<br>
&gt;    indicators, random retry-after capabilities, etc; which although<br>
&gt;    sent towards the SER trunk, never made it<br>
<br>
</div>I think your improvements made it to the kamailio version which now<br>
resides in sip-router/modules_k/ratelimit. Please try to see if it<br>
contains everything that you need. If yes then we can adopt the<br>
kamailio version of the module and junk the ser version (and move the<br>
module from modules_k to modules directory).</blockquote><div>yes, the kamailio version includes our changes and actually more. It should be then pretty safe to drop the ser version if the original owner won&#39;t complain. I guess the original functionality is still usable from there anyway.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
&gt;  * tls - some hashing functions<br>
<br>
I&#39;d be happy to see how we can integrate it into the tls module if you<br>
send me a patch.</blockquote><div>Will come soon, but first I want to check it one more time as they are about 2 years old. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yeah, we would be happy to host your code in our git repository on<br>
sip-router, I think that this is a good idea, having all the stuff<br>
available through git would make it much easier to integrate stuff.<br>
<br>
First of all I suggest that we start by importing the whole openims<br>
svn tree into a standalone project in our git repository. We can setup<br>
scripts that will track the svn tree for a while and import any<br>
changes done by your developers there until you announce that the<br>
project migrated. Having the whole SVN repository imported this way<br>
would allow us to merge selected parts (i.e. openims modules) into the<br>
main repository with full history. That would be the first step. I<br>
volunteer to set this up if you send me berlios usernames, full names<br>
and email addresses (needed to convert svn commit usernames to git<br>
commit logs with full names and emails) of all developers.</blockquote><div>This sounds great. Will do. We also have some branches, but I think that those would be too much to import. <br><br>Then I hope that we could keep all the openimscore changes localized just to modules as really the core does not need to be different for IMS.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
After that we can decide how to integrate it with sip-router. Let me<br>
just enumerate all the options that come to my mind:<br>
  1) We keep openims as a standalone project within our git repository<br>
  2) We import all the patches and extra modules on a separate branch<br>
within the main<br>
     repository.<br>
  3) We add all extra openims modules into to the master branch into a<br>
new module<br>
     directory such as modules_o and commit patches that those modules needs.<br>
  4) We drop new openims modules into the directory modules and<br>
integrate patches.<br>
<br>
I think that there is no single best option, what would work best<br>
depends on the nature of the changes that we need to do to existing<br>
code (i.e. patches to sip-router core and modules) and also on your<br>
long term goals with the openims project.<br>
<br>
Option 1) would work well if you plan to keep openims as a standalone<br>
project that draws code from sip-router. This option would give you<br>
considerable freedom to do changes to the code (even extensive ones)<br>
and yet remain synchronized with the main sip-router tree. We would<br>
setup a new project for openims in our git repository and set it up in<br>
such a way that it becomes easy to pull changes from the sip-router<br>
repository into the openims repository. Whenever you have something<br>
that is ready to be integrated into the main sip-router tree, you<br>
could simply let us know that there is something we should pull and<br>
once we do, the change would eventually propagate from sip-router to<br>
openims next time you pull. Git makes this mode of operation<br>
relatively painless, this is also roughly the model that the Linux<br>
kernel uses. </blockquote><div>I guess we don&#39;t really need this much liberty. Plus that the past experience with ser/ser_ims shows that we only once pulled the ser over our changes. Yes, it was probably harder to pull it with cvs/svn, but we&#39;ve done our changes at the core already, mainly to have Diameter support, so the differences are not that big and hopefully reconcilable.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Option 2) would give you the same amount of freedom as 1), but it<br>
would probably be difficult to maintain a large number of changes on a<br>
separate branch for extended periods of time (my own experience). In<br>
my opinion this would only be suitable if the long term goal is to<br>
fully integrate openims with sip-router, but we are unsure how long it<br>
will take to integrate all necessary changes and patches.</blockquote><div>Agree. Then from our side we&#39;d just like to maintain a bunch of experimental modules, which hopefully would donate code to the base sr modules if necessary. We&#39;re not really building a commercially usable IMS thingy, so we also don&#39;t have the resource to maintain it properly in such scenarios.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Option 3) (a new module directory), I am not sure whether we really<br>
need to put openims modules into a separate module directory. Having<br>
two module directories is a temporary measure because we have two<br>
versions of most modules, but our long term goal was to migrate them<br>
where possible. I suppose that all openims modules are new, so we can<br>
either put them in &quot;modules&quot; directory right away, or in &quot;modules_s&quot;<br>
or &quot;modules_k&quot;, depending on which version of existing modules their<br>
require.</blockquote><div>But... it&#39;s so nice :-p. I really liked this because it really lets me have a separate experimental directory, which also adds some sense to what is for what. And then I just added my crazy-enum module there too and it did not interfere with the normal stable one. It looks and feels like a branch, but it&#39;s easier for development.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Option 3) and 4) are suitable if your long term goals is to merge<br>
openims modules into sip-router and make them part of the sip-router<br>
project. Note that this means that openims developers would have to<br>
follow the sip-router way o development (releases, testing, code<br>
integration), no matter how bad or good it is :-).</blockquote><div>errrm ... can&#39;t really do unfortunately. So I would rather stick with the experimental flag and keep it separated so that you could also just ignore any complaints on the lists about crashes or issues when using this. We don&#39;t have any releases now as we can&#39;t really aford them. Our trunk is supposed to be &quot;stable&quot; and then we have branches for which there is absolutely no waranty.<br>
<br>Our long term goals are:<br>- to merge back with the SER from which we diverged long time ago. We had some changes that we needed quickly and could not wait for them to be stabilized, accepted and pushed to SER. Now we know that some were useless, some not, some were accepted already and some are still on the waiting list. Hopefully we&#39;ll reconcile on the core changes and then just have all the IMS stuff in the additional modules.<br>
- to merge with Kamailio, because it&#39;s quite dumb some time that you need to keep and maintain several different ser binaries and configuration files for doing very similar tasks. For example, most of our users use also the Kamailio presence server, so they also have to checkout that and care about.<br>
- to upgrade to the latest interfaces for modules, databases and so on as to take advantage of the new features<br>- to eliminate the sr sync issues so that our users could immediately benefit from the latest sr changes, without having to go through syncs every few months.<br>
- to keep being experimental and to try crazy stuff like the RFC5031 ;-) and hopefully provide some code for future stable modules.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
I would personally favor 1) if you want to continue on your own or 4)<br>
if you want to integrate your stuff with sip-router, but let&#39;s see<br>
what other have to say. In any case we can start with importing svn<br>
into git, that&#39;s something we will need anyway.</blockquote><div>So I guess then that we&#39;d need something like 1, which would be great if the sync would be done automatically. Sure it would be lighter on our support efforts if we&#39;d just pull regularly with the sr releases, but this did not work so well before.<br>
<br>I was thinking about some sort of reversed svn:externals solution, where we could have a branch like in 1, but all the parts around the modules_ims would be pulled on checkout from the master or from some link to whatever last release that was good enough for our purposes.<br>
<br><br>Thanx&amp;Cheers,<br>-Dragos<br></div></div><br>