Hi!
Once again I fail to use git - hope someone can help me. I just want to
have a local copy of sr_3.0 branch for testing.
So, first I cloned the repository:
git clone git://git.sip-router.org/sip-router
Then I made a local branch to follow the remote branch:
git checkout --track -b sr_3.0
This worked fine, I built and installed sip-router.
Now, as there were some commits today, I wanted to update my local
branch. How? I tried a simple "git pull" but it always says:
From .
* branch master -> FETCH_HEAD
Already up-to-date.
??????
Thanks
klaus
Revision: 5953
http://openser.svn.sourceforge.net/openser/?rev=5953&view=rev
Author: mariuszbihlei
Date: 2009-11-06 10:07:54 +0000 (Fri, 06 Nov 2009)
Log Message:
-----------
Updated documentation for sl module
Modified Paths:
--------------
branches/1.5/modules/sl/README
branches/1.5/modules/sl/doc/sl_admin.xml
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Module: sip-router
Branch: kamailio_3.0
Commit: cecadda371383083e083ecebaba4f2c456a09f4d
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cecadda…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Nov 5 16:21:35 2009 +0100
tcp: use the forced socket ip as source
- if a socket is forced always use the forced socket ip as source
(if a connection exists with different ip as source, open a new
one with the forced ip).
(cherry picked from commit 6fcba958595c5189c1b9d97c8fc4c9f434a3c7ad)
---
forward.h | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/forward.h b/forward.h
index 2a6e91e..b365753 100644
--- a/forward.h
+++ b/forward.h
@@ -123,6 +123,11 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
{
struct dest_info new_dst;
str outb;
+#ifdef USE_TCP
+ union sockaddr_union* from;
+ union sockaddr_union local_addr;
+#endif
+
outb.s = buf;
outb.len = len;
sr_event_exec(SREV_NET_DATA_OUT, (void*)&outb);
@@ -152,7 +157,14 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
" support is disabled\n");
goto error;
}else{
- if (unlikely(tcp_send(dst, 0, outb.s, outb.len)<0)){
+ from=0;
+ if (unlikely((dst->send_flags & SND_F_FORCE_SOCKET) &&
+ dst->send_sock)) {
+ local_addr=dst->send_sock->su;
+ su_setport(&local_addr, 0); /* any local port will do */
+ from=&local_addr;
+ }
+ if (unlikely(tcp_send(dst, from, outb.s, outb.len)<0)){
STATS_TX_DROPS;
LOG(L_ERR, "msg_send: ERROR: tcp_send failed\n");
goto error;
@@ -167,7 +179,14 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
" support is disabled\n");
goto error;
}else{
- if (unlikely(tcp_send(dst, 0, outb.s, outb.len)<0)){
+ from=0;
+ if (unlikely((dst->send_flags & SND_F_FORCE_SOCKET) &&
+ dst->send_sock)) {
+ local_addr=dst->send_sock->su;
+ su_setport(&local_addr, 0); /* any local port will do */
+ from=&local_addr;
+ }
+ if (unlikely(tcp_send(dst, from, outb.s, outb.len)<0)){
STATS_TX_DROPS;
LOG(L_ERR, "msg_send: ERROR: tcp_send failed\n");
goto error;