Discussion:
[SR-Users] Kamailio 4.0.2 as a new Port for FreeBSD
Oliver Mahmoudi
2013-07-22 23:31:26 UTC
Permalink
Hello,

I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.

There are 172 modules that come with Kamailio, and most,
however not all of them are compiled by default:

# gmake all

The base server and the base modules compile fine on
my 9.1 release.

To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
are needed:

/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient

This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?

Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?

I would set compile time options accordingly.

This would greatly facilitate my work!


Oliver Mahmoudi
Daniel-Constantin Mierla
2013-07-23 18:51:15 UTC
Permalink
Hello,
Post by Oliver Mahmoudi
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists with
modules organized by common dependencies. In debian, the packages are
generated for each module_group_k... Each such group includes a list of
modules defined in the same file.

There are some comments giving hints about dependecies, but a better
place is to look in the README of the module, where is a dedicated
section for such details.

We had some ports done long time ago, you find them in sources
pkg/kamailio/.If you get up to date version, we can replace the old one
in our repository as well.

Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Oliver Mahmoudi
2014-09-21 16:01:20 UTC
Permalink
Hello,

The port has just been committed to the FreeBSD ports tree and has been
mapped to:

/usr/ports/net/kamailio

It can be compiled and installed with FreeBSD's traditional:

# make install clean

It compiles on 8.x, 9.x and 10.x for the i386 and x86-64 architectures.
Possibly for the others archs too, but they to my knowing haven't been
thoroughly tested so far. We'll find out on the way. The way things look, I
will be the ports defacto maintainer.

After finishing my first draft of the port about a year ago, I ran a few
tests between a Kamailio server on FreeBSD and a Windows host using
MySQL as a phonebook and Jitsi as a frontend GUI. From the Kamailio point
of view, things worked fine, however, the only problem was, that I wasn't
really able to test voice functionality, since jitsi had some problems
accessing soundcard features on FreeBSD. Maybe things have changed since
then and/or this will give rise to new research in this area.

In case you are interested and for your cross-reference, you can find the
entire discussion that took place concerning the port here:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181301

Moreover, to this e-mail attached, you will find a shell archive
(kamailio.shar) of the port the way it has been mapped into the ports tree.

Enjoy using Kamailio on FreeBSD!


Oliver Mahmoudi
Post by Oliver Mahmoudi
Hello,
Post by Oliver Mahmoudi
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists with
modules organized by common dependencies. In debian, the packages are
generated for each module_group_k... Each such group includes a list of
modules defined in the same file.
There are some comments giving hints about dependecies, but a better place
is to look in the README of the module, where is a dedicated section for
such details.
We had some ports done long time ago, you find them in sources
pkg/kamailio/.If you get up to date version, we can replace the old one in
our repository as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Olle E. Johansson
2014-09-21 17:54:39 UTC
Permalink
Great work!

Can we try to merge the patches used into the base Kamailio distribution? I think we should be able
to have a port without any patches. Needing patches for FreeBSD ports indicates that we lack portability.

Cheers,
/O
Post by Oliver Mahmoudi
Hello,
/usr/ports/net/kamailio
# make install clean
It compiles on 8.x, 9.x and 10.x for the i386 and x86-64 architectures. Possibly for the others archs too, but they to my knowing haven't been thoroughly tested so far. We'll find out on the way. The way things look, I will be the ports defacto maintainer.
After finishing my first draft of the port about a year ago, I ran a few tests between a Kamailio server on FreeBSD and a Windows host using
MySQL as a phonebook and Jitsi as a frontend GUI. From the Kamailio point of view, things worked fine, however, the only problem was, that I wasn't really able to test voice functionality, since jitsi had some problems accessing soundcard features on FreeBSD. Maybe things have changed since then and/or this will give rise to new research in this area.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181301
Moreover, to this e-mail attached, you will find a shell archive (kamailio.shar) of the port the way it has been mapped into the ports tree.
Enjoy using Kamailio on FreeBSD!
Oliver Mahmoudi
Hello,
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists with modules organized by common dependencies. In debian, the packages are generated for each module_group_k... Each such group includes a list of modules defined in the same file.
There are some comments giving hints about dependecies, but a better place is to look in the README of the module, where is a dedicated section for such details.
We had some ports done long time ago, you find them in sources pkg/kamailio/.If you get up to date version, we can replace the old one in our repository as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
<kamailio.shar>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Olle E. Johansson
2014-09-21 19:00:04 UTC
Permalink
Hi again!
A few questions:
- When is this port going to be published as part of the ports listed on the website?
Please keep me posted so I can publish information and pointers on the web site.
- How much work will it be to add a 4.1 port and soon a 4.2?

/O
Post by Olle E. Johansson
Great work!
Can we try to merge the patches used into the base Kamailio distribution? I think we should be able
to have a port without any patches. Needing patches for FreeBSD ports indicates that we lack portability.
Cheers,
/O
Post by Oliver Mahmoudi
Hello,
/usr/ports/net/kamailio
# make install clean
It compiles on 8.x, 9.x and 10.x for the i386 and x86-64 architectures. Possibly for the others archs too, but they to my knowing haven't been thoroughly tested so far. We'll find out on the way. The way things look, I will be the ports defacto maintainer.
After finishing my first draft of the port about a year ago, I ran a few tests between a Kamailio server on FreeBSD and a Windows host using
MySQL as a phonebook and Jitsi as a frontend GUI. From the Kamailio point of view, things worked fine, however, the only problem was, that I wasn't really able to test voice functionality, since jitsi had some problems accessing soundcard features on FreeBSD. Maybe things have changed since then and/or this will give rise to new research in this area.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181301
Moreover, to this e-mail attached, you will find a shell archive (kamailio.shar) of the port the way it has been mapped into the ports tree.
Enjoy using Kamailio on FreeBSD!
Oliver Mahmoudi
Hello,
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists with modules organized by common dependencies. In debian, the packages are generated for each module_group_k... Each such group includes a list of modules defined in the same file.
There are some comments giving hints about dependecies, but a better place is to look in the README of the module, where is a dedicated section for such details.
We had some ports done long time ago, you find them in sources pkg/kamailio/.If you get up to date version, we can replace the old one in our repository as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
<kamailio.shar>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Oliver Mahmoudi
2014-09-21 20:09:32 UTC
Permalink
Hello,

The port has been officially added to the ports tree two days ago and is
updated to the latest Kamailio version,
i.e. 4.1.6. I just kept the header of this e-mail, since when I started
writing the port last summer, I notified this
very mailing list with the given subject header.

For a little more release information about the port you can go here:

1) https://www.freebsd.org/ports/

and type "kamailio" in the search box, which should bring you here:

https://www.freebsd.org/cgi/ports.cgi?query=kamailio&stype=all

and / or here

2) http://www.freshports.org/net/kamailio/


As far as the patches are concerned, you can find these in the
kamailio/files/ directory of the shar archive I have
attached in the last e-mail. Are you able to open the archive? Except for
the file kamailio.in, all the files in that folder are patch files.


OM
Post by Olle E. Johansson
Hi again!
- When is this port going to be published as part of the ports listed on the website?
Please keep me posted so I can publish information and pointers on the web site.
- How much work will it be to add a 4.1 port and soon a 4.2?
/O
Great work!
Can we try to merge the patches used into the base Kamailio distribution?
I think we should be able
to have a port without any patches. Needing patches for FreeBSD ports
indicates that we lack portability.
Cheers,
/O
Hello,
/usr/ports/net/kamailio
# make install clean
It compiles on 8.x, 9.x and 10.x for the i386 and x86-64 architectures.
Possibly for the others archs too, but they to my knowing haven't been
thoroughly tested so far. We'll find out on the way. The way things look, I
will be the ports defacto maintainer.
After finishing my first draft of the port about a year ago, I ran a few
tests between a Kamailio server on FreeBSD and a Windows host using
MySQL as a phonebook and Jitsi as a frontend GUI. From the Kamailio point
of view, things worked fine, however, the only problem was, that I wasn't
really able to test voice functionality, since jitsi had some problems
accessing soundcard features on FreeBSD. Maybe things have changed since
then and/or this will give rise to new research in this area.
In case you are interested and for your cross-reference, you can find the
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181301
Moreover, to this e-mail attached, you will find a shell archive
(kamailio.shar) of the port the way it has been mapped into the ports tree.
Enjoy using Kamailio on FreeBSD!
Oliver Mahmoudi
On Tue, Jul 23, 2013 at 7:51 PM, Daniel-Constantin Mierla <
Post by Oliver Mahmoudi
Hello,
Post by Oliver Mahmoudi
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists with
modules organized by common dependencies. In debian, the packages are
generated for each module_group_k... Each such group includes a list of
modules defined in the same file.
There are some comments giving hints about dependecies, but a better
place is to look in the README of the module, where is a dedicated section
for such details.
We had some ports done long time ago, you find them in sources
pkg/kamailio/.If you get up to date version, we can replace the old one in
our repository as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
<kamailio.shar>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Oliver Mahmoudi
2014-09-21 20:35:38 UTC
Permalink
Yes, feel free to make use of the patches as desired, then I'll leave them
out when updating the port to 4.2.


OM
Post by Olle E. Johansson
Great work!
Can we try to merge the patches used into the base Kamailio distribution?
I think we should be able
to have a port without any patches. Needing patches for FreeBSD ports
indicates that we lack portability.
Cheers,
/O
Hello,
/usr/ports/net/kamailio
# make install clean
It compiles on 8.x, 9.x and 10.x for the i386 and x86-64 architectures.
Possibly for the others archs too, but they to my knowing haven't been
thoroughly tested so far. We'll find out on the way. The way things look, I
will be the ports defacto maintainer.
After finishing my first draft of the port about a year ago, I ran a few
tests between a Kamailio server on FreeBSD and a Windows host using
MySQL as a phonebook and Jitsi as a frontend GUI. From the Kamailio point
of view, things worked fine, however, the only problem was, that I wasn't
really able to test voice functionality, since jitsi had some problems
accessing soundcard features on FreeBSD. Maybe things have changed since
then and/or this will give rise to new research in this area.
In case you are interested and for your cross-reference, you can find the
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181301
Moreover, to this e-mail attached, you will find a shell archive
(kamailio.shar) of the port the way it has been mapped into the ports tree.
Enjoy using Kamailio on FreeBSD!
Oliver Mahmoudi
On Tue, Jul 23, 2013 at 7:51 PM, Daniel-Constantin Mierla <
Post by Oliver Mahmoudi
Hello,
Post by Oliver Mahmoudi
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists with
modules organized by common dependencies. In debian, the packages are
generated for each module_group_k... Each such group includes a list of
modules defined in the same file.
There are some comments giving hints about dependecies, but a better
place is to look in the README of the module, where is a dedicated section
for such details.
We had some ports done long time ago, you find them in sources
pkg/kamailio/.If you get up to date version, we can replace the old one in
our repository as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
<kamailio.shar>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla
2014-09-22 07:29:26 UTC
Permalink
Hello,
Post by Olle E. Johansson
Great work!
Can we try to merge the patches used into the base Kamailio
distribution? I think we should be able
to have a port without any patches. Needing patches for FreeBSD ports
indicates that we lack portability.
apparently the patches are to Makefile system, to comply with various
requirements of the FreeBSD ports (e.g., skipping some gcc compile
flags). Therefore I assume there is no issue on the C code for compiling
on BSD.

Anyhow, it would be good to get anything that is commonly useful in
Makefiles and eventually make the rest configurable via command line
parameter/environment variables based on detection of bsd. Or add kind
of profile switch to turn on the option required for building the port
(e.g.,: make BUILDPROFILE=FREEBSD ...).

Cheers,
Daniel
Post by Olle E. Johansson
Cheers,
/O
Post by Oliver Mahmoudi
Hello,
/usr/ports/net/kamailio
# make install clean
It compiles on 8.x, 9.x and 10.x for the i386 and x86-64
architectures. Possibly for the others archs too, but they to my
knowing haven't been thoroughly tested so far. We'll find out on the
way. The way things look, I will be the ports defacto maintainer.
After finishing my first draft of the port about a year ago, I ran a
few tests between a Kamailio server on FreeBSD and a Windows host using
MySQL as a phonebook and Jitsi as a frontend GUI. From the Kamailio
point of view, things worked fine, however, the only problem was,
that I wasn't really able to test voice functionality, since jitsi
had some problems accessing soundcard features on FreeBSD. Maybe
things have changed since then and/or this will give rise to new
research in this area.
In case you are interested and for your cross-reference, you can find
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181301
Moreover, to this e-mail attached, you will find a shell archive
(kamailio.shar) of the port the way it has been mapped into the ports tree.
Enjoy using Kamailio on FreeBSD!
Oliver Mahmoudi
On Tue, Jul 23, 2013 at 7:51 PM, Daniel-Constantin Mierla
Hello,
Hello,
I am currently working on porting Kamailio 4.0.2 to the
FreeBSD ports collection: /usr/ports, and I just have a
few general questions regarding compilation with regard
to the extra modules.
There are 172 modules that come with Kamailio, and most,
# gmake all
The base server and the base modules compile fine on
my 9.1 release.
To really compile all of the 172 modules, Kamailio_4_0_2/INSTALL
says that the following external libraries (LIB_DEPENDS I assume)
/usr/ports/databases/mysql-client-*
/usr/ports/databases/postgresql-libpqxx
/usr/ports/textproc/expat2
/usr/ports/textproc/libxml2
/usr/ports/net/radiusclient
This is put down as information for FreeBSD 5.4. Does that still hold
current for 9.1?
Is there an exhaustive list of all the modules that the all target
does/does not compile and - apart from mysql, postgresql - which of the
extra modules require which libraries?
I would set compile time options accordingly.
This would greatly facilitate my work!
one file to look in is Makefile.groups, there you will see lists
with modules organized by common dependencies. In debian, the
packages are generated for each module_group_k... Each such group
includes a list of modules defined in the same file.
There are some comments giving hints about dependecies, but a
better place is to look in the README of the module, where is a
dedicated section for such details.
We had some ports done long time ago, you find them in sources
pkg/kamailio/.If you get up to date version, we can replace the
old one in our repository as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
<http://www.asipto.com/>
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -
http://www.linkedin.com/in/miconda
<kamailio.shar>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany
Loading...