Hi all,
Please bear with me as this is my first post to a mailing list ever so
something might be quite wrong.
My question is: How do we make Kamailio HA ?
For the moment I’ve setup MySQL cluster with MySQL proxies that
provide 1 Virtual IP that I use to connect Kamailio to (for usrloc and
dispatcher)
I have a couple of asterisk servers that Kamailio servers are supposed
to send calls to.
I have two kamailio servers that share the same IP address with
keepalived. Both Kamailio servers are bind to the Virtual IP.
The problem is: When Kamailio 1 is active calls are correctly
dispatched to both the asterisk servers correctly.
When Kamailio 2 is active calls are only sent to one of the asterisk
servers. ‘kamctl dispatcher show’ shows the correct servers on both
machines.
The two Kamailio servers share EXACTLY the same config files.
Do you guys have any thoughts on this ?
p.s. Thank you for creating such a wonderful product. Thank you !!!
Best regards,
Rumen
Hi,
>From all of your support now I can call from
1. IP Phone <--> IP Phone
2. Web Page <--> Web Page
3. IP Phone -> PSTN without any issue
But when I try to call from Web Page to PSTN then it tries to call
sip:00xxxxxx89078@mysipdomain.com and that time out.
Trying to figure out how to get this work ?
Can anybody guide me on this please.
Best Regards,
Roy.
forwarded to mailing-list ....
-------- Original Message --------
Subject: Re: [SR-Users] CRLF from Kamailio server
Date: Mon, 26 Nov 2012 16:34:26 +0100
From: Daniel-Constantin Mierla <miconda(a)gmail.com>
Reply-To: miconda(a)gmail.com
To: Klaus Darilion <klaus.mailinglists(a)pernau.at>
Hello,
I haven't checked actually the parts for tcp, but recently I added the
feature of removing the location records if there is no reply to OPTIONS
keepalives in nathelper, and it was only for UDP. Also, I think the nat
ping is 4 bytes (zeros) or so.
Might be another option from tcp, like:
http://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_keepalive
Cheers,
Daniel
On 11/26/12 3:54 PM, Klaus Darilion wrote:
> IIRC tcp_crlf_ping is only about the Ping-Pong mechanism: client sends
> PING=CRLF, server responds with PONG=CRLFCRLF.
>
> Thus, server should only response on client CRLF. Further the PONG is
> always double-CRLF.
>
> So I suspected it is NAT keepalive - maybe someone added
> NAT-keep-alive for TCP :-)
>
> regards
> Klaus
>
> On 26.11.2012 11:05, Daniel-Constantin Mierla wrote:
>> Hello,
>>
>> this might be actually related to tcp connection keepalive:
>>
>> http://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_crlf_ping
>>
>> IIRC, nathelper pings only udp contacts.
>>
>> Cheers,
>> Daniel
>>
>> On 11/26/12 10:54 AM, Klaus Darilion wrote:
>>>
>>>
>>> On 26.11.2012 05:13, Dmytro Bogovych wrote:
>>>> Greetings.
>>>> May anyone give me advice?
>>>> I have working Kamailio with TLS.
>>>> It is used by iOS softphone - i developed own one based on
>>>> resiprocate.
>>>> All signalling is TLS.
>>>> Almost everything is fine.
>>>>
>>>> But looks kamailio sends CRLF messages sometimes.
>>>> If it happens when softphone is in background mode - it is killed
>>>> by iOS
>>>> (as iOS prohibits too often awakes from background mode).
>>>>
>>>> How I can disable these messages?
>>>> I see natping_interval = 30 and ping_nated_only=0
>>>> Should I set natping_interval to zero ?
>>>
>>> Either set the interval to 0 or set ping_nated_only=1 and make sure to
>>> not set the NAT flag for the iphone clients.
>>>
>>> A problem may be firewalls/NAT between the iPhone and Kamailio, as
>>> they may drop the TCP connection is there is no activity for too long
>>> time.
>>>
>>> regards
>>> Klaus
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users(a)lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
You need some sort of media gateway or server. I don't know of any that currently support this.
Peter
Raj Roy Ghandhi <roy.gandhi(a)gmail.com> wrote:
>_______________________________________________
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>sr-users(a)lists.sip-router.org
>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
So, I built the memcached module against the latest Git production
branch of memcached and libmemcache-1.4.0.rc2 (the latest available), on
Debian i386.
But when I try to load the Kamailio memcached module:
Nov 28 03:47:44 diminuendo-1 kamailio: ERROR: <core> [sr_module.c:572]:
ERROR: load_module: could not open module
</usr/local/lib/kamailio/modules/memcached.so>:
/usr/lib/libmemcache.so.0: undefined symbol: mcm_buf_len
I find that very odd, because the symbol is quite clearly exported in
the library:
diminuendo-1:~# nm /usr/lib/libmemcache.so.0 | grep -i mcm_buf_len
U mcm_buf_len
Does anyone have any idea what the underlying linking issue is here?
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
Hi,
maybe it is not that kamailio related question, but I dont know any other
place with such good voip professionals ;) I have kamailio and mediaproxy.
Clients are BudgetTone 200 (Grandstream) and CSipSimple. I am forcing
clients to use SRTP but it does not support adding any certificate on both
sides. SRTP call is working fine.
The question is, in this case, is man-in-the-middle attack possible? Maybe
I should study SRTP more, but basically, if there are no certificates,
there is no method how to be 100% sure that the media goes directly between
clients. Is it true?
Thanks for response,
Mino
According to the memcached module docs, setting $mctex(key) can be used
to modify the expiration value of a key.
Should this be done after or before setting the key itself with
$mct(...)? I have tried it before and the assignment didn't work, so
clearly the key must first exist in memcache:
$mctex(bgn=>$avp(s:bgn)) = $sel(cfg_get.bgn_expiry);
$mct(bgn=>$avp(s:bgn)) = $dbr(ra=>[0,0]);
Nov 28 05:23:41 diminuendo-1 /usr/local/sbin/kamailio[32089]: ERROR:
<core> [lvalue.c:354]: setting pvar failed
Nov 28 05:23:41 diminuendo-1 /usr/local/sbin/kamailio[32089]: ERROR:
<core> [lvalue.c:407]: assignment failed at pos: (164,37-164,69)
OK, so that makes sense. I tried it the other way:
$mct(bgn=>$avp(s:bgn)) = $dbr(ra=>[0,0]);
$mctex(bgn=>$avp(s:bgn)) = $sel(cfg_get.bgn_expiry);
But when I look on my memcached server, the expiration value is not
being modified. It's still the default 'expire' value set in the
memcached modparam.
I ran the memcached server with maximum verbosity and verified that no
TOUCH command is taking place, and that the SET command for the key
contains the default expiration value, not the one I set with $mctex(...).
So, it seems to me that the module is not committing this new expiration
value when it is written to $mctex(...).
Is this a bug, or am I missing something?
--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
Hi all,
When I have this line in kamailio.cfg:
modparam("acc_radius", "radius_config",
"/etc/radiusclient-ng/radiusclient.conf")
Kamailio failed to start:
kamailio error, failed to start (/var/run/kamailio/kamailio.pid exists).
I already try to stop kamailio, an remove this file but don't work
In log,I have:
Nov 27 20:13:39 voip-core-1 kernel: [14318.988658] kamailio[8370]:
segfault at 0 ip 00007f0b0b94ca5d sp 00007fffa08f9460 error 4 in
libradiusclient-ng.so.2.0.0[7f0b0b946000+c000]
Nov 27 20:13:39 voip-core-1 kamailio: ERROR: <core> [daemonize.c:307]:
Main process exited before writing to pipe
When I remove just this line and restart kamailio, it works, I don't
know what is the problem because before I can do accounting with
freeradius with the same config
I have kamailio 3.3.2, kamailio-radius-modules 3.3.2,libradiusclient-ng2
0.5.6-1.1 and on 2nd server freeradius-xs and freeradius-xs-mysql 1.1.7-4
I put in attached file a few config of kamailio and radiusclient
Regards
--
Rabary Teddy
Inutile d'imprimer ce mail
Greetings.
I observe strange behavior with Kamailio.
My iphone 3gs run softphone based on resiprocate.
First 10-20 minutes everything works fine.
After it the connection is closed from server (select() loop returns read
notification, read attempt returns zero bytes).
Ok, softphone closes old socket and create new one by new registration.
But this connection is terminated from server in 4-5 seconds after
registration finish (200 OK).
Softphone makes next attempt to register - connection is closed after
registration again. So it is infinite loop.
After several attempts iOS kills application as it awakes too often in
background mode.
I have not logs from server yet; but maybe anyone had similar issue?
Thank you :)