Module: sip-router
Branch: master
Commit: f22dcd559c739dd99275cd2444cf481d458d2fab
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f22dcd5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Apr 26 18:32:55 2013 +0200
dispatcher: proper localization of To uri for keepalives
- it was affected by introduction of <> around the URI in To header
- reported by Peter Dunkley
---
modules/dispatcher/dispatch.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index cc8b7bf..0f6e8b0 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -2352,10 +2352,10 @@ static void ds_options_callback( struct cell *t, int type,
* cast it to an int. */
group = (int)(long)(*ps->param);
/* The SIP-URI is taken from the Transaction.
- * Remove the "To: " (s+4) and the trailing new-line (s - 4 (To: )
- * - 2 (\r\n)). */
- uri.s = t->to.s + 4;
- uri.len = t->to.len - 6;
+ * Remove the "To: <" (s+5) and the trailing >+new-line (s - 5 (To: <)
+ * - 3 (>\r\n)). */
+ uri.s = t->to.s + 5;
+ uri.len = t->to.len - 8;
LM_DBG("OPTIONS-Request was finished with code %d (to %.*s, group %d)\n",
ps->code, uri.len, uri.s, group);
/* ps->code contains the result-code of the request.
Hi
I've just updated to the latest master and get this error when compiling on
Solaris 11 with gcc version 4.5.2:
LD (gcc) [kamailio] kamailio
Undefined first referenced
symbol in file
gethostbyname2 dns_func.o
ld: fatal: symbol referencing errors. No output written to kamailio
collect2: ld returned 1 exit status
gmake: *** [kamailio] Error 1
In Makefile.defs Solaris does not define HAVE_GETHOSTBYNAME2.
I fixed this by putting #ifdef HAVE_GETHOSTBYNAME2 around all
gethostbyname2 in:
dns_func.c
dns_func.h
modules/dnssec/dnssec_func.c
modules/dnssec/dnssec_func.h
modules/dnssec/dnssec_mod.c
I see Marius Zbihlei<http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=search;s=Marius…>has
done lots of work on the dnssec module.
Marius: please can you have a look at this.
Regards
Richard.
This email is subject to the disclaimer of Smile Communications at http://www.smilecoms.com/disclaimer
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#278 - usrloc module stops updating some records in db_mode 2
User who did this - Daniel-Constantin Mierla (miconda)
----------
You can try to cherry-pick in branch 3.3 (commits 61e08282c905c2ee03a2be618b1e700fc0acbdeb and 0125cdf0e75271a8478a3eadacc54ea1c1eb4da0) - just be aware that files were relocated from modules_k/usrloc to modules/usrloc.
I don't have time for the moment, but sometime soon should be a new release from branch 3.3.
----------
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=278#comment862
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.