Description

Crash when length($uac_req(callid)) > 128

Troubleshooting

Reproduction

function send_options()
	local KAM_DOMAIN = "192.168.100.131"
	-- length(callid)  is 129
	local callid = "0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0123456789-0000000" 
	local tu = "sip:1001@" .. KAM_DOMAIN
	local sut = "sip:192.168.100.132:5080"

	KSR.pv.sets("$uac_req(method)", "OPTIONS")		
	KSR.pv.sets("$uac_req(callid)", callid)
	KSR.pv.sets("$uac_req(furi)", "sip:" .. "kamailio" .. "@" .. KAM_DOMAIN)
	KSR.pv.sets("$uac_req(ruri)", tu)
	KSR.pv.sets("$uac_req(turi)", tu)
	KSR.pv.sets("$uac_req(ouri)", sut)
	KSR.pv.seti("$uac_req(evroute)", 1)
	KSR.uac.uac_req_send()
end

Debugging Data

Log Messages

(paste your log messages here)

SIP Traffic

(paste your sip traffic here)

Possible Solutions

https://github.com/kamailio/kamailio/blob/5.5/src/modules/uac/uac_send.c#L425

check len

Additional Information

Kamailio5.5.4
Debian11


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3135@github.com>