[SR-Users] Acnnot get Kamailio to start ... GRRR

Nelson Pereira npereira at protus.com
Wed May 19 15:45:07 CEST 2010


Ok, I finally got it running with this deb package.

I simply installed the kamailio_3.0.1_amd64.deb and nothing else.
I changed the kamailio.cfg to listen on ports 5060, 5065, 5066 and 5067 on both TCP and UDP on the specific interface IP.

Now I need to make the relay route? Or is this doen by default?

I have an old config from OpenSER, but unsure if it will work with Kamailio and if there are any changes to make:

route[1]
{
        if (src_ip==10.98.6.5) {
                if (dst_port==5060) {
                        t_relay("tcp:10.98.118.20:5060");
                }
                if (dst_port==5065) {
                        t_relay("tcp:10.98.118.20:5065");
                }
                else if (dst_port==5066) {
                        t_relay("tcp:10.98.118.20:5066");
                }
                else if (dst_port==5067) {
                        t_relay("tcp:10.98.118.20:5067");
                }
#                else {
#                       t_relay("tcp:10.98.118.20:5060");
#               }
        }
        else {
                t_relay("udp:10.98.6.5:5060");
        };
}



Nelson Pereira


-----Original Message-----
From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Nelson Pereira
Sent: Wednesday, May 19, 2010 9:10 AM
To: Klaus Darilion
Cc: users at lists.kamailio.org
Subject: Re: [SR-Users] Acnnot get Kamailio to start ... GRRR

Ok, so looks like I was missing the openssl dependency.

Now I have:

-rw-r--r--  1 root src      4074 2010-05-19 08:22 kamailio_3.0.1_amd64.changes
-rw-r--r--  1 root src   7489262 2010-05-19 08:22 kamailio_3.0.1_amd64.deb
-rw-r--r--  1 root src      1312 2010-05-19 08:16 kamailio_3.0.1.dsc
-rw-r--r--  1 root src    262456 2010-05-19 08:22 kamailio-berkeley-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    199938 2010-05-19 08:22 kamailio-carrierroute-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    280702 2010-05-19 08:22 kamailio-cpl-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    115378 2010-05-19 08:22 kamailio-ldap-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src     42114 2010-05-19 08:22 kamailio-memcached-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    128682 2010-05-19 08:22 kamailio-mysql-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src      2204 2010-05-19 08:22 kamailio-nth_3.0.1_amd64.deb
-rw-r--r--  1 root src    209500 2010-05-19 08:22 kamailio-perl-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    139058 2010-05-19 08:22 kamailio-postgres-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    942682 2010-05-19 08:22 kamailio-presence-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    132024 2010-05-19 08:22 kamailio-purple-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    143498 2010-05-19 08:22 kamailio-radius-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    141038 2010-05-19 08:22 kamailio-snmpstats-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    280050 2010-05-19 08:22 kamailio-tls-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src     52876 2010-05-19 08:22 kamailio-unixodbc-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src     88816 2010-05-19 08:22 kamailio-utils-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    231744 2010-05-19 08:22 kamailio-xmlrpc-modules_3.0.1_amd64.deb
-rw-r--r--  1 root src    121558 2010-05-19 08:22 kamailio-xmpp-modules_3.0.1_amd64.deb


So which one should I install if I only want to be able to relay UDP to TCP?

No reg, no DB, nothing else, simply the ability to do UDP to TCP conversion and relay the messages coming from Asterisk, to a Microsoft UM voicemail.

Nelson Pereira

-----Original Message-----
From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Nelson Pereira
Sent: Wednesday, May 19, 2010 8:16 AM
To: Klaus Darilion
Cc: users at lists.kamailio.org
Subject: Re: [SR-Users] Acnnot get Kamailio to start ... GRRR

This is what Im getting at the end of the make deb, and it's not making the debian package...:


Makefile.defs defs skipped
make[3]: Entering directory `/usr/src/kamailio-3.0.1/modules/tls'
mkdir -p /usr/src/kamailio-3.0.1/debian/kamailio-tls-modules/etc/kamailio
MAIN_NAME=kamailio ./sip-router_cert.sh -d /usr/src/kamailio-3.0.1/debian/kamailio-tls-modules/etc/kamailio/
Could not find openssl command
Set OPENSSL environment variable properly (see -h for more info)
make[3]: *** [install-tls-cert] Error 1
make[3]: Leaving directory `/usr/src/kamailio-3.0.1/modules/tls'
make[2]: *** [install-modules] Error 1
make[2]: Leaving directory `/usr/src/kamailio-3.0.1'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/src/kamailio-3.0.1'
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2
make: [deb] Error 2 (ignored)






Nelson Pereira
Senior Network Specialist

Protus 
npereira at protus.com 
phone: 613.733.0000 ext.528 
MyFax: 613.822.5083
 
MyFax.com | my1voice.com | Campaigner.com


-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at] 
Sent: Wednesday, May 19, 2010 4:20 AM
To: Nelson Pereira
Subject: Re: [SR-Users] Acnnot get Kamailio to start ... GRRR



Am 18.05.2010 21:10, schrieb Nelson Pereira:
> I tried make deb and was getting other errors... Could it be because im running 64bit?

That shouldn't be the problem.

Usually you just execute "make deb". The first time you will get an 
error message about missing dependencies. Install the missing 
dependencies (apt-get install ...) and then execute "make deb" again.

regards
klaus

>
> Nelson Pereira
> Senior Network Specialist
>
> Protus
> npereira at protus.com
> phone: 613.733.0000 ext.528
> MyFax: 613.822.5083
>
> MyFax.com | my1voice.com | Campaigner.com
>
>
> -----Original Message-----
> From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
> Sent: Tuesday, May 18, 2010 2:56 PM
> To: Nelson Pereira
> Cc: sr-users at lists.sip-router.org
> Subject: Re: [SR-Users] Acnnot get Kamailio to start ... GRRR
>
> Nelson Pereira wrote:
>> Do I absolutely need Mysql DB for this to work?
>
> No.
>
> If you use "make deb", then the dependencies needs to be fulfilled for
> generating the modules (e.g. mysql-client). But there is no need to
> install the kamailio-mysql module.
>
> regards
> klaus
>
>> I'm simply using this to do UDP to TCp conversion, nothing else.
>>
>> NP
>>
>> -----Original Message-----
>> From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Edson - Lists
>> Sent: Tuesday, May 18, 2010 1:19 PM
>> To: sr-users at lists.sip-router.org
>> Subject: Re: [SR-Users] Acnnot get Kamailio to start ... GRRR
>>
>> It can be a stupid question, but did the directory exists? Has the user
>> who runs Kamailio rights to it?
>>
>> BDW, which version of Kamailio are you testing? Why not the last SR?
>>
>> Edson.
>>
>> Em 18/05/2010 13:55, Nelson Pereira escreveu:
>>> Basic install with source using the provided script:
>>>
>>> make_and_install install "standard"
>>>
>>> then try to do :
>>>
>>> /usr/local/sbin/kamctl start
>>>
>>> INFO: Starting Kamailio :
>>>
>>> ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start
>>> failed
>>>
>>> root at qa-qsuitePBX-01:/usr/local/sbin#
>>>
>>> What am I doing wrong?
>>>
>>> *Nelson Pereira*
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>>
>> _______________________________________________
>> 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
>

_______________________________________________
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

_______________________________________________
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



More information about the sr-users mailing list