<div>Hi again,</div><div><br></div>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.<div>
<br></div><div>Hope to hear from you</div><div>--</div><div>Sammy</div><div><br><div>
<br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 8:57 PM, Rumen Mihailov <span dir="ltr"><<a href="mailto:zealas1662@gmail.com" target="_blank">zealas1662@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello again,<br>
<br>
I was able to perform tests and this is the output:<br>
Kamailio-1: 10.2.45.106<br>
Kamailio-2: 10.2.45.109<br>
Asterisk-1: 10.2.45.98<br>
Asterisk-2: 10.2.45.103<br>
<br>
I can ping both asterisks from both kamailios<br>
here are stats:<br>
FROM KAMAILIO-1<br>
[root@kamailio-1 ~]# ping 10.2.45.98<br>
PING 10.2.45.98 (10.2.45.98) 56(84) bytes of data.<br>
64 bytes from <a href="http://10.2.45.98" target="_blank">10.2.45.98</a>: icmp_seq=1 ttl=64 time=0.315 ms<br>
^C<br>
--- 10.2.45.98 ping statistics ---<br>
1 packets transmitted, 1 received, 0% packet loss, time 773ms<br>
rtt min/avg/max/mdev = 0.315/0.315/0.315/0.000 ms<br>
[root@kamailio-1 ~]# ping 10.2.45.103<br>
PING 10.2.45.103 (10.2.45.103) 56(84) bytes of data.<br>
64 bytes from <a href="http://10.2.45.103" target="_blank">10.2.45.103</a>: icmp_seq=1 ttl=64 time=0.489 ms<br>
64 bytes from <a href="http://10.2.45.103" target="_blank">10.2.45.103</a>: icmp_seq=2 ttl=64 time=0.268 ms<br>
<br>
FROM KAMAILIO-2<br>
[root@kamailio-2 ~]# ping 10.2.45.98<br>
PING 10.2.45.98 (10.2.45.98) 56(84) bytes of data.<br>
64 bytes from <a href="http://10.2.45.98" target="_blank">10.2.45.98</a>: icmp_seq=1 ttl=64 time=1.46 ms<br>
64 bytes from <a href="http://10.2.45.98" target="_blank">10.2.45.98</a>: icmp_seq=2 ttl=64 time=0.324 ms<br>
^C<br>
--- 10.2.45.98 ping statistics ---<br>
2 packets transmitted, 2 received, 0% packet loss, time 1036ms<br>
rtt min/avg/max/mdev = 0.324/0.893/1.462/0.569 ms<br>
[root@kamailio-2 ~]# ping 10.2.45.103<br>
PING 10.2.45.103 (10.2.45.103) 56(84) bytes of data.<br>
64 bytes from <a href="http://10.2.45.103" target="_blank">10.2.45.103</a>: icmp_seq=1 ttl=64 time=2.09 ms<br>
64 bytes from <a href="http://10.2.45.103" target="_blank">10.2.45.103</a>: icmp_seq=2 ttl=64 time=0.350 ms<br>
^C<br>
<br>
Those are the 'kamctl dispatcher show' outputs:<br>
KAMAILIO 1<br>
[root@kamailio-1 ~]# kamctl dispatcher show<br>
dispatcher gateways<br>
+----+-------+----------------------+-------+----------+-------+-------------------+<br>
| id | setid | destination | flags | priority | attrs |<br>
description |<br>
+----+-------+----------------------+-------+----------+-------+-------------------+<br>
| 1 | 1 | sip:<a href="http://10.2.45.98:5060" target="_blank">10.2.45.98:5060</a> | 0 | 1 | | asterisk-1 |<br>
| 2 | 1 | sip:<a href="http://10.2.45.103:5060" target="_blank">10.2.45.103:5060</a> | 0 | 1 | | asterisk-2 |<br>
+----+-------+----------------------+-------+----------+-------+-------------------+<br>
<br>
KAMAILIO 2<br>
[root@kamailio-2 ~]# kamctl dispatcher show<br>
dispatcher gateways<br>
+----+-------+----------------------+-------+----------+-------+-------------------+<br>
| id | setid | destination | flags | priority | attrs |<br>
description |<br>
+----+-------+----------------------+-------+----------+-------+-------------------+<br>
| 1 | 1 | sip:<a href="http://10.2.45.98:5060" target="_blank">10.2.45.98:5060</a> | 0 | 1 | | asterisk-1 |<br>
| 2 | 1 | sip:<a href="http://10.2.45.103:5060" target="_blank">10.2.45.103:5060</a> | 0 | 1 | | asterisk-2 |<br>
+----+-------+----------------------+-------+----------+-------+-------------------+<br>
<br>
Both asterisks can also ping both kamailios<br>
<br>
ds_select_dst("1","4");<br>
<br>
this is what I have in my route[TOASTERISK]<br>
<br>
Any thought guys ?<br>
<br>
Best regards,<br>
Rumen<br>
<div class="HOEnZb"><div class="h5"><br>
On 28 November 2012 09:55, Rumen Mihailov <<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>> wrote:<br>
> Hello Samy,<br>
><br>
> Thank you for the hint, I will test later today and let you know the results.<br>
><br>
> Best regards,<br>
> Rumen<br>
><br>
> On 28 November 2012 07:00, SamyGo <<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>> wrote:<br>
>> Hi,<br>
>><br>
>> Just few quick questions , can you ping the second asterisk from secondary<br>
>> Kamailio ? what is the routing set for that. Does your second asterisk box<br>
>> gets inactive in dispatcher show command after 30 seconds ?<br>
>> Mine worked fine, the key is the linux routing table.<br>
>><br>
>> BR<br>
>> Sammy<br>
>><br>
>><br>
>> On Tue, Nov 27, 2012 at 7:29 PM, Rumen Mihailov <<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> .s. Thank you for creating such a wonderful product. Thank you !!!<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
>><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>