[sr-dev] git:master:840d8edc: siputils: note that is_first_hop() works only for IP addresses in record route

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 4 08:22:40 CEST 2018


Module: kamailio
Branch: master
Commit: 840d8edc3cae5a921aaa14e62f170613bc8da844
URL: https://github.com/kamailio/kamailio/commit/840d8edc3cae5a921aaa14e62f170613bc8da844

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-04T08:21:10+02:00

siputils: note that is_first_hop() works only for IP addresses in record route

- this is done for reply handling

---

Modified: src/modules/siputils/doc/siputils_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/840d8edc3cae5a921aaa14e62f170613bc8da844.diff
Patch: https://github.com/kamailio/kamailio/commit/840d8edc3cae5a921aaa14e62f170613bc8da844.patch

---

diff --git a/src/modules/siputils/doc/siputils_admin.xml b/src/modules/siputils/doc/siputils_admin.xml
index a882c3b069..d55641d9f1 100644
--- a/src/modules/siputils/doc/siputils_admin.xml
+++ b/src/modules/siputils/doc/siputils_admin.xml
@@ -1093,9 +1093,13 @@ if (is_supported("outbound")) { ... }
 		original sender. For incoming SIP requests, it means there is only
 		one Via header. For incoming SIP replies, it means that top
 		Record-Route URI is 'myself' and source address is not matching it
-		(to avoid detecting in case of local loops). Note that it does not
-		detect spirals, which can have the condition for replies true also
-		in the case of additional SIP reply reception.
+		(to avoid detecting in case of local loops). The detection is done
+		only when Record-Route has an IP address in its URI (for a domain,
+		it returns -1/false).
+		</para>
+		<para>
+		Note that it does not detect spirals, which can have the condition
+		for replies true also in the case of additional SIP reply reception.
 		</para>
 		<para>
 		This function can be used from ANY_ROUTE.




More information about the sr-dev mailing list