[sr-dev] [kamailio/kamailio] topos/topos_redis, error: "could not evaluate a_contact xavu" when in-dialog msg have Record-Route header. (#2852)

Dennis notifications at github.com
Mon Sep 20 14:03:18 CEST 2021


> Somehow I missed the comment without contact -- when I looked quickly at the code, the xavu is used if contact address is found, being after this piece of code:
> 
> ```
> 	if(dir==TPS_DIR_DOWNSTREAM) {
> 		sv = td->bs_contact;
> 	} else {
> 		sv = td->as_contact;
> 	}
> 	if(sv.len<=0) {
> 		/* no contact - skip */
> 		return 0;
> 	}
> ```
> 
> But I do not use this mode with xavu and don't know what is supposed to do. I just wanted to give some hints.

I think that contact variables filled by tps_pack_message in tps_request_sent function from Record-Route header:
```
Sep 16 13:55:16 gw481 /usr/sbin/kamailio[11425]: DEBUG: {1 1 ACK 1-12131 at 87.250.237.98} topos [tps_msg.c:1006]: tps_request_sent(): handling outgoing request (1, 0)
Sep 16 13:55:16 gw481 /usr/sbin/kamailio[11425]: DEBUG: {1 1 ACK 1-12131 at 87.250.237.98} topos [tps_msg.c:415]: tps_pack_message(): compacted headers - x_via1: [SIP/2.0/UDP [2a02:6b8:0:6::5];branch=z9hG4bK7bb2.7dbc336ffe6a81233e57c387950431c8.0](83) - x_via2: [SIP/2.0/UDP 87.250.237.98:5070;received=87.250.237.98;rport=5070;branch=z9hG4bK-12131-1-5;sig=4100ba9a](102) - x_vbranch1: [z9hG4bK7bb2.7dbc336ffe6a81233e57c387950431c8.0](46)
Sep 16 13:55:16 gw481 /usr/sbin/kamailio[11425]: DEBUG: {1 1 ACK 1-12131 at 87.250.237.98} topos [tps_msg.c:483]: tps_pack_message(): single record routing by proxy
Sep 16 13:55:16 gw481 /usr/sbin/kamailio[11425]: DEBUG: {1 1 ACK 1-12131 at 87.250.237.98} topos [tps_msg.c:537]: tps_pack_message(): compacted headers - a_rr: [](0) - b_rr: [](0) - s_rr: [<sip:87.250.237.98:5070;lr;ftag=1c1658248864;did=626.1edbf0d5>](62)
Sep 16 13:55:16 gw481 /usr/sbin/kamailio[11425]: DEBUG: {1 1 ACK 1-12131 at 87.250.237.98} topos [tps_msg.c:542]: tps_pack_message(): compacted headers - as_contact: [sip:87.250.237.98:5070;lr;ftag=1c1658248864;did=626.1edbf0d5](60) - bs_contact: [sip:87.250.237.98:5070;lr;ftag=1c1658248864;did=626.1edbf0d5](60)
```


-- 
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/2852#issuecomment-922864587
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210920/550db0ad/attachment.htm>


More information about the sr-dev mailing list