<div><br></div>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.<div><br></div><div>
Also the flags=IP are, I think, saying that asterisk servers are inactive and kamailio is probing them, not sure about it. mine always show me flags=AP for active servers.</div><div><br></div><div>Also how have you defined the </div>
<h3 class=""><span style="font-weight:normal"><font><code class="" style="color:rgb(0,0,0);font-family:Helvetica,Arial">ds_ping_reply_codes</code><font color="#000000" face="Helvetica, Arial"> </font><a href="http://www.kamailio.net/docs/modules/3.2.x/modules_k/dispatcher.html#id2495999">http://www.kamailio.net/docs/modules/3.2.x/modules_k/dispatcher.html#id2495999</a><font color="#000000" face="Helvetica, Arial"> </font></font></span></h3>
<div>Parameter such that if asterisk responds with a 484 or 404 or anyother negative response to the dispatcher OPTIONS SIP ping then consider it active.<br></div><div><br></div><div>Hope this will get your issue resolved. </div>
<div><br></div><div>The thing is the dispatcher in kamailio or load-balancer in OpenSIPS both set the Initial flags of all the servers in the table to Active/Enabled ! that means if I have a server which is down and I reload the dispatcher module it will mark that down server to UP and my calls will timeout trying to send calls to that instance !</div>
<div><br></div><div>Thanks,</div><div>Sammy</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 9:25 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 Samy,<br>
<br>
this is what I got:<br>
<br>
<br>
SET_NO:: 2<br>
SET:: 2<br>
URI:: sip:<a href="http://10.2.45.103:5060" target="_blank">10.2.45.103:5060</a> flags=IP priority=1 attrs=<br>
SET:: 1<br>
URI:: sip:<a href="http://10.2.45.98:5060" target="_blank">10.2.45.98:5060</a> flags=IP priority=1 attrs=<br>
<br>
<br>
on both machines. Moreover now without any changes dispatcher is not<br>
working at all. Only sending calls to the asterisk-1 (10.2.45.98)<br>
<div class="HOEnZb"><div class="h5"><br>
On 28 November 2012 18:20, SamyGo <<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>> wrote:<br>
> Hi again,<br>
><br>
> I think instead of dispatcher show use "kamctl dispatcher dump" That will<br>
> show you the kamailio status of these servers. The flag 0, I'm not sure<br>
> about that I always use 8 to re-activate the server if the ping gets back.<br>
><br>
> Hope to hear from you<br>
> --<br>
> Sammy<br>
><br>
><br>
><br>
><br>
> On Wed, Nov 28, 2012 at 8:57 PM, Rumen Mihailov <<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>><br>
> wrote:<br>
>><br>
>> 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>
>> +----+-------+----------------------+-------+----------+-------+-------------------+<br>
>> | id | setid | destination | flags | priority | attrs |<br>
>> description |<br>
>><br>
>> +----+-------+----------------------+-------+----------+-------+-------------------+<br>
>> | 1 | 1 | sip:<a href="http://10.2.45.98:5060" target="_blank">10.2.45.98:5060</a> | 0 | 1 | |<br>
>> asterisk-1 |<br>
>> | 2 | 1 | sip:<a href="http://10.2.45.103:5060" target="_blank">10.2.45.103:5060</a> | 0 | 1 | |<br>
>> asterisk-2 |<br>
>><br>
>> +----+-------+----------------------+-------+----------+-------+-------------------+<br>
>><br>
>> KAMAILIO 2<br>
>> [root@kamailio-2 ~]# kamctl dispatcher show<br>
>> dispatcher gateways<br>
>><br>
>> +----+-------+----------------------+-------+----------+-------+-------------------+<br>
>> | id | setid | destination | flags | priority | attrs |<br>
>> description |<br>
>><br>
>> +----+-------+----------------------+-------+----------+-------+-------------------+<br>
>> | 1 | 1 | sip:<a href="http://10.2.45.98:5060" target="_blank">10.2.45.98:5060</a> | 0 | 1 | |<br>
>> asterisk-1 |<br>
>> | 2 | 1 | sip:<a href="http://10.2.45.103:5060" target="_blank">10.2.45.103:5060</a> | 0 | 1 | |<br>
>> asterisk-2 |<br>
>><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>
>><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<br>
>> > 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<br>
>> >> secondary<br>
>> >> Kamailio ? what is the routing set for that. Does your second asterisk<br>
>> >> 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>
><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>