Module: kamailio
Branch: master
Commit: 061a66f88a91bc3e05224ef95043ebe4fec16dd1
URL: https://github.com/kamailio/kamailio/commit/061a66f88a91bc3e05224ef95043ebe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-15T08:58:27+02:00
cfg_rpc: removed history and svn id
---
Modified: src/modules/cfg_rpc/Makefile
Modified: src/modules/cfg_rpc/cfg_rpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/061a66f88a91bc3e05224ef95043ebe…
Patch: https://github.com/kamailio/kamailio/commit/061a66f88a91bc3e05224ef95043ebe…
---
diff --git a/src/modules/cfg_rpc/Makefile b/src/modules/cfg_rpc/Makefile
index a7a980d873..d4e58b4c92 100644
--- a/src/modules/cfg_rpc/Makefile
+++ b/src/modules/cfg_rpc/Makefile
@@ -1,5 +1,5 @@
# cfg_rpc module makefile
-#
+#
# WARNING: do not run this directly, it should be run by the main Makefile
include ../../Makefile.defs
diff --git a/src/modules/cfg_rpc/cfg_rpc.c b/src/modules/cfg_rpc/cfg_rpc.c
index e31429f713..30c72e6083 100644
--- a/src/modules/cfg_rpc/cfg_rpc.c
+++ b/src/modules/cfg_rpc/cfg_rpc.c
@@ -1,6 +1,4 @@
/*
- * $Id$
- *
* Copyright (C) 2007 iptelorg GmbH
*
* This file is part of ser, a free SIP server.
@@ -24,9 +22,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
- * History
- * -------
- * 2007-12-03 Initial version (Miklos)
*/
#include "../../core/sr_module.h"
### Description
In the case of using FQDN in
`listen = ... advertise ... `
FQDN is populated in the `Record-Route` header. In this case `is_first_hop()` function is not returning true even if `FQDN == myself` in replies.
#### Reproduction
Add FQND in advertise and check `is_first_hop()` result in a case of reply
#### Log Messages
```
siputils [sipops.c:185]: is_first_hop(): uri host is not an ip address
```
### Possible Solutions
Not use `is_first_hop()` in the case of reply/FQDN in advertising.
### Additional Information
version: kamailio 5.4.4 (x86_64/linux) e16352
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: e16352
compiled on 09:50:10 May 7 2021 with gcc 4.8.5
* **Operating System**:
```
# uname -a
Linux fe-0513-2-dev 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
```
https://github.com/kamailio/kamailio/blob/02240711239149e2f5c4890a70ab158d1…
--
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/2732