[sr-dev] git:master:7bf207bf: siptrace: use src/dst_addr instead src/dst_uri for $siptrace(...) vars

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 9 12:33:10 CEST 2021


Module: kamailio
Branch: master
Commit: 7bf207bf6bd60bd1c50fb9321d31c4d48562b5b7
URL: https://github.com/kamailio/kamailio/commit/7bf207bf6bd60bd1c50fb9321d31c4d48562b5b7

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-06-09T12:31:31+02:00

siptrace: use src/dst_addr instead src/dst_uri for $siptrace(...) vars

- the format is proto:ip:proto, not a sip uri

---

Modified: src/modules/siptrace/siptrace.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7bf207bf6bd60bd1c50fb9321d31c4d48562b5b7.diff
Patch: https://github.com/kamailio/kamailio/commit/7bf207bf6bd60bd1c50fb9321d31c4d48562b5b7.patch

---

diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index b411886f54..89a0618d02 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -2528,10 +2528,10 @@ int pv_parse_siptrace_name(pv_spec_t *sp, str *in)
 
 	switch(in->len)
 	{
-		case 7:
-			if(strncmp(in->s, "src_uri", 7)==0)
+		case 8:
+			if(strncmp(in->s, "src_addr", 8)==0)
 				sp->pvp.pvn.u.isname.name.n = 0;
-			else if(strncmp(in->s, "dst_uri", 7)==0)
+			else if(strncmp(in->s, "dst_addr", 8)==0)
 				sp->pvp.pvn.u.isname.name.n = 1;
 			else goto error;
 		break;




More information about the sr-dev mailing list