Hello,

Quang Minh phan has added this code so that openser reconnects to rtp proxy.
Without this, after a timeout, openser totally lost its connection with our rtp proxy and we had to restart openser to reconnect.


Index: nathelper.c
===================================================================
--- nathelper.c (revision 594)
+++ nathelper.c (working copy)
@@ -1541,6 +1541,11 @@
       /* Most popular case: 1 proxy, nothing to calculate */
       if (rtpp_node_count == 1) {
               node = rtpp_list.rn_first;
+               if (node->rn_disabled) {
+                       /* Try to enable if it's time to try. */
+                       if (node->rn_recheck_ticks <= get_ticks())
+                               node->rn_disabled = rtpp_test(node, 1, 0);
+               }
               return node->rn_disabled ? NULL : node;
       }

Let us know whether it's useful or not.

Best regards,

--
Jean-Michel Foucher
OpenWengo, the free and multiplatform VoIP client
http://dev.openwengo.com/



_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to