On Thu, Sep 01, 2016 at 03:07:46PM +0200, Daniel-Constantin Mierla wrote: > I pushed a new commit, aiming to avoid overwriting record route set with > session updates. Let me know if it makes the difference.
The same scenario (callee wants sessiontimers refreshed by the uac) works kind of. ACKs are routed correctly but: -Route to the callee has trailing nulls (starting from the first ACK to the callee (packet 7 in pcap)) -At random (seen it happen in both testcalls) the Via header to the caller is borked (packet 77) in the 200 OK to the caller. Someone (not the callee for sure, and doesn't look like a packet from the caller) is generating a CANCEL (packet 95) and next the caller will hangup. -When enabling topos module, kamailio leaks memory like crazy at a rate of about 1 GB in 2 hours without any calls (only OPTIONS and replies) BTW might any of these be because of the way I test? I update the git tree and copy the topos module stuff into my 4.2 tree (debian source package), build the package, and copy only topos.so to live.
l M<+ �������� Linux 3.16.0-4-amd64 - Dumpcap 1.12.1 (Git Rev Unknown from unknown) l P eth0 port 5060 Linux 3.16.0-4-amd64 P 0 �; �\ PV�p��x�E� Eq) ?y�m� 9�=Dj���oINVITE sip:+31407110...@sip.itco.nl SIP/2.0 Record-Route: <sip:109.235.32.57;lr> Via: SIP/2.0/UDP 109.235.32.57;branch=z9hG4bK9041.0a8941568735d7aedf991ce158a26d4b.0 Via: SIP/2.0/UDP 109.235.35.42:5060;rport=5060;branch=z9hG4bK3523c800 Max-Forwards: 70 From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl> Contact: <sip:+31402938662@109.235.35.42:5060;alias=109.235.35.42~5060~1> Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 INVITE Date: Fri, 02 Sep 2016 09:40:53 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Diversion: <sip:+31407110385@109.235.35.42>;reason=unconditional Content-Type: application/sdp Content-Length: 323 P-Asserted-Identity: <sip:+31402938662@109.235.35.42;user=phone> Path: <sip:loadbalancer@109.235.32.57;lr;received=sip:109.235.35.42:5060> v=0 o=root 143938538 143938538 IN IP4 109.235.35.42 s=POCOS c=IN IP4 109.235.35.42 t=0 0 m=audio 11370 RTP/AVP 8 9 111 18 101 a=rtpmap:8 PCMA/8000 a=rtpmap:9 G722/8000 a=rtpmap:111 G726-32/8000 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 0 �; ^�^ � � ��R PV�p� E߸p @4¹=Djm� 9��ˍ�SIP/2.0 100 trying -- your call is important to us Via: SIP/2.0/UDP 109.235.32.57;branch=z9hG4bK9041.0a8941568735d7aedf991ce158a26d4b.0 Via: SIP/2.0/UDP 109.235.35.42:5060;rport=5060;branch=z9hG4bK3523c800 From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl> Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 INVITE Server: kamailio (4.4.2 (x86_64/linux)) Content-Length: 0 � �; ��_ � � PV�p��x�E� E�q6 ?}Xm� 9�=Dj��o�@SIP/2.0 100 Trying Via: SIP/2.0/UDP 185.61.68.106;branch=z9hG4bK9041.b97ef6624c46e9d46ee73bbea80cf572.0;rport=5060 From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl> Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 INVITE Server: kamailio (4.3.6 (x86_64/linux)) Content-Length: 0 � 0 �; q�_ PV�p��x�E� Eq7 ?z�m� 9�=Dj���"SIP/2.0 200 OK Via: SIP/2.0/UDP 185.61.68.106;rport=5060;branch=z9hG4bK9041.b97ef6624c46e9d46ee73bbea80cf572.0 Record-Route: <sip:109.235.32.57;transport=tcp;r2=on;lr> Record-Route: <sip:109.235.32.57;r2=on;lr> From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl>;tag=as7e255cd1 Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 INVITE Server: Asterisk PBX 11.13.1~dfsg-2+b1 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Session-Expires: 90;refresher=uac Contact: <sip:tryba@172.16.0.2:5060;transport=TCP;alias=109.235.34.226~46091~2> Content-Type: application/sdp Require: timer Content-Length: 242 v=0 o=root 1555074539 1555074539 IN IP4 172.16.0.2 s=Asterisk PBX 11.13.1~dfsg-2+b1 c=IN IP4 172.16.0.2 t=0 0 m=audio 16562 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 0 � �; v2` � � ��R PV�p� E��x @2�=Djm� 9��s�PSIP/2.0 200 OK From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl>;tag=as7e255cd1 Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 INVITE Server: Asterisk PBX 11.13.1~dfsg-2+b1 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Session-Expires: 90;refresher=uac Content-Type: application/sdp Require: timer Content-Length: 414 Via: SIP/2.0/UDP 109.235.32.57;branch=z9hG4bK9041.0a8941568735d7aedf991ce158a26d4b.0,SIP/2.0/UDP 109.235.35.42:5060;rport=5060;branch=z9hG4bK3523c800 Contact: <sip:atpsh-57c94287-eae4-6@185.61.68.106> Record-Route: <sip:109.235.32.57;lr> v=0 o=root 1555074539 1555074539 IN IP4 109.235.32.58 s=Asterisk PBX 11.13.1~dfsg-2+b1 c=IN IP4 109.235.32.58 t=0 0 m=audio 42526 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv a=rtcp:42527 a=candidate:yfCggx3n2ADIKI8N 1 UDP 2130706431 109.235.32.58 42526 typ host a=candidate:yfCggx3n2ADIKI8N 2 UDP 2130706430 109.235.32.58 42527 typ host � P �; �8` . . PV�p��x�E� E q= ?|�m� 9�=Dj�� w[ACK sip:atpsh-57c94287-eae4-6@185.61.68.106 SIP/2.0 Via: SIP/2.0/UDP 109.235.32.57;branch=z9hG4bK9041.dfc8b73ca2e2ce1d9d67002b72ff4c43.0 Via: SIP/2.0/UDP 109.235.35.42:5060;rport=5060;branch=z9hG4bK6ab0bfeb Max-Forwards: 70 From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl>;tag=as7e255cd1 Contact: <sip:+31402938662@109.235.35.42:5060;alias=109.235.35.42~5060~1> Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 ACK Content-Length: 0 P \ �; ��` < < ��R PV�p� E.�~ @4e�=Djm� 9����ACK sip:tryba@172.16.0.2:5060;transport=TCP;alias=109.235.34.226~46091~2 SIP/2.0 Via: SIP/2.0/UDP 185.61.68.106;branch=z9hG4bK9041.0f6a8b0366d6c81e1acbb93a97a8c409.0 Max-Forwards: 69 From: <sip:+31402938662@109.235.35.42>;tag=as5e9d9ffa To: <sip:+31407110...@sipcluster2.pocos.nl>;tag=as7e255cd1 Call-ID: 680a695110fecd374d60d61b364a32d0@109.235.35.42:5060 CSeq: 102 ACK Content-Length: 0 Route: <sip:109.235.32.57;r2=on;lr>