Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-29 Thread SamyGo
Thats is good to hear because I had nothing more to reply on this. And I suspected the same that your kamailio wasn't reloaded. I use LinuxHA and for the Active/Passive scenario it restarts the group of applications on the primary node. BR Sammy On Nov 29, 2012 3:34 PM, "Rumen Mihailov" wrote:

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-29 Thread Rumen Mihailov
Hello Sammy all of a sudden everything is working. What I did was to restart one of the servers. To me it seems that kamctl restart does not reload what is in the memory for the dispatcher 'dispatcher dump', because I now recall that when started I actually made a configuration error and made the

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-29 Thread SamyGo
Hi, Try reloading the dispatcher , 'kamctl dispatcher reload' - How exactly is your HA failover working? do it keeps Kamailio on secondary resource shutdown and turn it on when becoming active? I don't have anything much to say on this issue now. Hope I was of some help to you. -- Sammy On Thu

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-29 Thread Rumen Mihailov
Hello Samy, this is driving me nuts. take a look at that: Kamailio 1 [root@kamailio-1 ~]# kamctl dispatcher show dispatcher gateways ++---+--+---+--+---+---+ | id | setid | destination | flags | priority | attrs | description

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread SamyGo
1 - Why do you get two different SET Ids for two asterisk servers ? Is it intentional ? 2 - Please ensure that after failing back to primary the linux routes are working and there is no issue with network layer connectivity. Also how are your calls failing ? What do Kamailio complain ? Enable SIP d

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread Rumen Mihailov
The two configuration files are 100% identical. On 28 November 2012 19:01, Rumen Mihailov wrote: > Hi again and thank you for your help, > > This is what happened when I changed the flags to 8 and restarted both > kamailios > ACTIVE KAMAILIO > SET_NO:: 2 > SET:: 2 > URI:: sip:10.2.45.103

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread Rumen Mihailov
Hi again and thank you for your help, This is what happened when I changed the flags to 8 and restarted both kamailios ACTIVE KAMAILIO SET_NO:: 2 SET:: 2 URI:: sip:10.2.45.103:5060 flags=AP priority=1 attrs= SET:: 1 URI:: sip:10.2.45.98:5060 flags=AP priority=1 attrs= PASSIVE KAMA

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread SamyGo
Well these are two different dispatcher groups, one is SET:1 10.2.45.98 where the calls are routed - the other one is SET:2 which you are definitely not calling in your ds_select() function. Also the flags=IP are, I think, saying that asterisk servers are inactive and kamailio is probing them, not

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread Rumen Mihailov
Hello Samy, this is what I got: SET_NO:: 2 SET:: 2 URI:: sip:10.2.45.103:5060 flags=IP priority=1 attrs= SET:: 1 URI:: sip:10.2.45.98:5060 flags=IP priority=1 attrs= on both machines. Moreover now without any changes dispatcher is not working at all. Only sending calls to the a

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread SamyGo
Hi again, I think instead of dispatcher show use "kamctl dispatcher dump" That will show you the kamailio status of these servers. The flag 0, I'm not sure about that I always use 8 to re-activate the server if the ping gets back. Hope to hear from you -- Sammy On Wed, Nov 28, 2012 at 8:57 P

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-28 Thread Rumen Mihailov
Hello again, I was able to perform tests and this is the output: Kamailio-1: 10.2.45.106 Kamailio-2: 10.2.45.109 Asterisk-1: 10.2.45.98 Asterisk-2: 10.2.45.103 I can ping both asterisks from both kamailios here are stats: FROM KAMAILIO-1 [root@kamailio-1 ~]# ping 10.2.45.98 PING 10.2.45.98 (10.2.

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-27 Thread Rumen Mihailov
Hello Samy, Thank you for the hint, I will test later today and let you know the results. Best regards, Rumen On 28 November 2012 07:00, SamyGo wrote: > Hi, > > Just few quick questions , can you ping the second asterisk from secondary > Kamailio ? what is the routing set for that. Does your se

Re: [SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-27 Thread SamyGo
Hi, Just few quick questions , can you ping the second asterisk from secondary Kamailio ? what is the routing set for that. Does your second asterisk box gets inactive in dispatcher show command after 30 seconds ? Mine worked fine, the key is the linux routing table. BR Sammy On Tue, Nov 27, 20

[SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-27 Thread Rumen Mihailov
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

[SR-Users] Kamailio HA with Virtual IP and multiple Asterisk servers for dispatching

2012-11-27 Thread Rumen Mihailov
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 dispa