It was noitced "branch=0" in sip-pinging requests, that seems not RFC compliant:
> OPTIONS sip:0004*202@192.168.5.61:5062 SIP/2.0.
> Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=0.
> From: sip:ping@myhost.ru;tag=uloc-5756b445-45e2-53b-223ff654-6ad81121.
> To: sip:0004*202@192.168.5.61:5062.
> Call-ID: 935a5981-9d632e71-c6c3075(a)xxx.xxx.xxx.xxx.
> CSeq: 1 OPTIONS.
> Content-Length: 0.
this issue is a google search result: https://github.com/OpenSIPS/opensips/issues/145
so this patch is just a copy of [varunvairavan](https://github.com/varunvairavan) patch
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/686
-- Commit Summary --
* nathelper: set via branch according to "z9hG4bK..." format (instead of "branch=0")
* nat_traversal: set via branch according to "z9hG4bK..." format (instead of "branch=0")
-- File Changes --
M modules/nat_traversal/nat_traversal.c (5)
M modules/nathelper/sip_pinger.h (16)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/686.patchhttps://github.com/kamailio/kamailio/pull/686.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/686
```
pg_fld.c:97:40: error: expected ‘)’ before ‘in’
static inline uint64_t htonll(uint64_t in)
^
pg_fld.c:107:40: error: expected ‘)’ before ‘in’
static inline uint64_t ntohll(uint64_t in)
^
```
There is a fairly specific ifdef that doesn't match other platforms that define htonll and ntohll such as Solaris:
```
#if !defined(__OS_darwin) || (defined(__OS_darwin) && !defined(NTOHLL))
```
Would it be acceptable to change these to:
```
#ifndef htonll
```
For example:
```
diff --git a/modules/db_postgres/pg_fld.c b/modules/db_postgres/pg_fld.c
index de62c14..d9b4911 100644
--- a/modules/db_postgres/pg_fld.c
+++ b/modules/db_postgres/pg_fld.c
@@ -93,7 +93,7 @@ union ull {
uint32_t ui32[2];
};
-#if !defined(__OS_darwin) || (defined(__OS_darwin) && !defined(NTOHLL))
+#ifndef htonll
static inline uint64_t htonll(uint64_t in)
{
union ull* p = (union ull*)∈
@@ -103,7 +103,7 @@ static inline uint64_t htonll(uint64_t in)
#endif
-#if !defined(__OS_darwin) || (defined(__OS_darwin) && !defined(NTOHLL))
+#ifndef ntohll
static inline uint64_t ntohll(uint64_t in)
{
union ull* p = (union ull*)∈
```
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/665