Browse code

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

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

Daniel-Constantin Mierla authored on 09/06/2021 10:31:31
Showing 1 changed files
... ...
@@ -2528,10 +2528,10 @@ int pv_parse_siptrace_name(pv_spec_t *sp, str *in)
2528 2528
 
2529 2529
 	switch(in->len)
2530 2530
 	{
2531
-		case 7:
2532
-			if(strncmp(in->s, "src_uri", 7)==0)
2531
+		case 8:
2532
+			if(strncmp(in->s, "src_addr", 8)==0)
2533 2533
 				sp->pvp.pvn.u.isname.name.n = 0;
2534
-			else if(strncmp(in->s, "dst_uri", 7)==0)
2534
+			else if(strncmp(in->s, "dst_addr", 8)==0)
2535 2535
 				sp->pvp.pvn.u.isname.name.n = 1;
2536 2536
 			else goto error;
2537 2537
 		break;