<div>Hi again,</div><div><br></div>I think instead of dispatcher show use &quot;kamctl dispatcher dump&quot; That will show you the kamailio status of these servers.  The flag 0, I&#39;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">&lt;<a href="mailto:zealas1662@gmail.com" target="_blank">zealas1662@gmail.com</a>&gt;</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 &#39;kamctl dispatcher show&#39; 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(&quot;1&quot;,&quot;4&quot;);<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 &lt;<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>&gt; wrote:<br>
&gt; Hello Samy,<br>
&gt;<br>
&gt; Thank you for the hint, I will test later today and let you know the results.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Rumen<br>
&gt;<br>
&gt; On 28 November 2012 07:00, SamyGo &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; Just few quick questions , can you ping the second asterisk from secondary<br>
&gt;&gt; Kamailio ? what is the routing set for that. Does your second asterisk box<br>
&gt;&gt; gets inactive in dispatcher show command after 30 seconds ?<br>
&gt;&gt; Mine worked fine, the key is the linux routing table.<br>
&gt;&gt;<br>
&gt;&gt; BR<br>
&gt;&gt; Sammy<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Nov 27, 2012 at 7:29 PM, Rumen Mihailov &lt;<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; .s. Thank you for creating such a wonderful product. Thank you !!!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <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>
&gt;&gt;<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>