[sr-dev] git:master: modules/cdp: omitted last_selected time when choosing a loadbalanced peer

Jason Penton jason.penton at gmail.com
Fri May 30 16:52:53 CEST 2014


Module: sip-router
Branch: master
Commit: 70f7dbedd7c7f188270bf6d3649bd9d67d4c2b7e
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=70f7dbedd7c7f188270bf6d3649bd9d67d4c2b7e

Author: Jason Penton <jason.penton at gmail.com>
Committer: Jason Penton <jason.penton at gmail.com>
Date:   Fri May 30 16:51:20 2014 +0200

modules/cdp: omitted last_selected time when choosing a loadbalanced peer

---

 modules/cdp/routing.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/cdp/routing.c b/modules/cdp/routing.c
index 499519a..a0fd7f3 100644
--- a/modules/cdp/routing.c
+++ b/modules/cdp/routing.c
@@ -123,6 +123,7 @@ peer* get_first_connected_route(routing_entry *r,int app_id,int vendor_id)
 		}
 	}
 
+	p->last_selected = time(NULL);
 	return p;
 }
 




More information about the sr-dev mailing list