Fix crash of session
Merge request reports
Activity
requested review from @iryna.antsyferova
assigned to @slujagrz
@Yalu FYI I pushed 3 new commits here - please do not mark "squash commits" as better to deliver these commits separately:
Commits "Use pkgconfig to find sdl and libxml2" and "Add ubus notification for rdkb" are for the following 3 patch files in rdk which I will remove from being applied - instead we will have them in asterisk_rdkb branch https://dev.iopsys.eu/rdk-factory/provider/oem/askey/meta-rdk-askey/-/tree/devel/meta-rdk-iopsys/recipes-telephony/asterisk/files?ref_type=heads
The top commit is fixing the crash when the Session-ID header is longer than 32 chars in DT environment:
SIP/2.0 200 OK Via: SIP/2.0/UDP 84.133.49.195:5060;received=84.133.49.195;rport=5060;branch=z9hG4bKPj1db6665f-d166-4389-bcbd-76cf83804189 From: "+4961516678481" sip:+4961516678481@tel.t-online.de;tag=21f155a5-5a06-47aa-b0a0-5635ae6b4335 To: sip:0046739618674@tel.t-online.de;tag=p65545t1711028345m125100c15039s1_3568717477-1119373811 Call-ID: 61c1d311-5d57-4e78-bc64-a5c300a13e90 CSeq: 2048 INVITE Require: timer Session-Expires: 1800;refresher=uas Supported: 100rel Supported: timer Contact:sip:mavodi-0-266-b85-4-fffffff0-d41a0000-610bc3b1cbd74-a90-ffffffffffffffff-@217.0.146.5:5060;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel" Allow: REGISTER,REFER,NOTIFY,SUBSCRIBE,UPDATE,INFO,MESSAGE,PRACK,INVITE,ACK,OPTIONS,CANCEL,BYE Record-Route: sip:mavodi-0-266-5d1-1-ffffffff-36450000-610bc3c0bb589-ac9-ffffffffffffffff-mavsipodi-0-26c-17d-1-90d90000-610bc3bfc7d08-ac9@217.0.146.5:5060;transport=udp;lr;mavsipodi-0-26c-17d-1-90d90000-610bc3bfc7d08-ac9 Authentication-Info: nc=00000001,cnonce="fd514844bdfe444ba93110177d6da8b9",rspauth="bfd1da6f539bacca4a65f1a71d6d7aa8",qop=auth Session-ID: 9abb7fcff46847c0d6ef98eddf7f683c;remote=78d45419ce727a117af042173c31ead6 Content-Type: application/sdp Content-Length: 227
I will cherry-pick the crash fix to devel as well when this commit will be approved. Corresponding change in tr104 which reads the Session-Id from callLog: tr104!67 (merged)
Edited by Grzegorz Sluja327 362 (int) (tdata->buf.end - tdata->buf.start), tdata->buf.start); 328 363 } 329 364 365 if (tdata->msg->type == PJSIP_REQUEST_MSG) 366 logging_send_ubus_event(tdata); changed this line in version 2 of the diff
- Resolved by Yalu Zhang
added 1 commit
- 379e9083 - Fix a crash when Session-ID header is longer than 32 bytes