[sr-dev] [kamailio/kamailio] add rport to uac register msg (#2639)

Seven Du notifications at github.com
Tue Feb 16 13:50:45 CET 2021


with docker image     image: kamailio/kamailio-ci:5.4.4-alpine

added the following config I get err

local_rport=yes

```
xcc-kamailio    |  0(9) CRITICAL: <core> [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 128, column 12: syntax error
xcc-kamailio    |  0(9) CRITICAL: <core> [core/cfg.y:3592]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 128, column 12: unknown config variable
xcc-kamailio    |  0(9) CRITICAL: <core> [core/cfg.y:3589]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 128, column 13-15:
xcc-kamailio    | ERROR: bad config file (3 errors)
```

with lua routing, I'm sure the following code is touched, but no rport in the request

```
function ksr_tm_event(evname)
	KSR.info("===== tm module triggered event: " .. evname .. "\n");
	if evname == "tm:local-request" then
		KSR.info("===== add local rport =====\n");
		KSR.add_local_rport();
	end
	return 1;
end
```

```
REGISTER sip:x.y.z SIP/2.0.
Via: SIP/2.0/UDP 192.168.7.7:17070;branch=z9hG4bK2474.c07cb8d4000000000000000000000000.0.
To: <sip:xxxx at x.y.z>.
...
```

maybe I can build master code and try.


-- 
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/2639#issuecomment-779816237
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210216/cdacc611/attachment.htm>


More information about the sr-dev mailing list