Hello,
are you using topos module?
If yes, can you try without it and see if there is any difference?
Also, the sip trace you pasted in the previous message does not have both incoming and outgoing sip messages -- having them is useful for troubleshooting.
Cheers,
Daniel
On 23.07.21 22:16, João Vitor Arruda wrote:
Hello all,
I recently built an SBC to integrate Kamailio with MS Teams following Henning Westerholt blob post and all the other awesome tips I was able to find here in the list.
Everything is working great. The only missing piece I would like some thoughts on is about why MS Teams is not accepting the BYE sent from Kamailio.It eventually replies with "504 Server Time-out"
The below trace shows the entire call.
||||||||||||||||||||====================tag: rcvpid: 3381process: 63time: 1627070235.086307date: Fri Jul 23 19:57:15 2021proto: tls ipv4srcip: 52.114.76.76srcport: 4672dstip: SBC_IP_ADDRdstport: 5061~~~~~~~~~~~~~~~~~~~~INVITE sip:+5515XXXXXXXXX@SBC-FQDN:5061;user=phone;transport=tls SIP/2.0FROM: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544CSEQ: 1 INVITECALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eMAX-FORWARDS: 70VIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bK60895c91CONTENT-LENGTH: 1103MIN-SE: 300SUPPORTED: timerUSER-AGENT: Microsoft.PSTNHub.SIPProxy v.2021.6.15.17 i.EUNO.0CONTENT-TYPE: application/sdpALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFYPRIVACY: idSESSION-EXPIRES: 3600
v=0o=- 599625 0 IN IP4 127.0.0.1s=sessionc=IN IP4 52.113.58.181b=CT:10000000t=0 0m=audio 50122 RTP/SAVP 104 9 103 111 18 0 8 97 101 13 118c=IN IP4 52.113.58.181a=rtcp:50123a=ice-ufrag:fTy/a=ice-pwd:tQKGN0Szi7Q/vTdf6SiXUSpja=rtcp-muxa=candidate:1 1 UDP 2130706431 52.113.58.181 50122 typ srflx raddr 10.0.33.230 rport 50122a=candidate:1 2 UDP 2130705918 52.113.58.181 50123 typ srflx raddr 10.0.33.230 rport 50123a=candidate:2 1 tcp-act 2121006078 52.113.58.181 49152 typ srflx raddr 10.0.33.230 rport 49152a=candidate:2 2 tcp-act 2121006078 52.113.58.181 49152 typ srflx raddr 10.0.33.230 rport 49152a=label:main-audioa=mid:1a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:PC00Mgk39GjTYJ+mUSNQg++TU6zJKar4VYDj4/ET|2^31a=sendrecva=rtpmap:104 SILK/16000a=rtpmap:9 G722/8000a=rtpmap:103 SILK/8000a=rtpmap:111 SIREN/16000a=fmtp:111 bitrate=16000a=rtpmap:18 G729/8000a=fmtp:18 annexb=noa=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:97 RED/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=rtpmap:13 CN/8000a=rtpmap:118 CN/16000a=ptime:20||||||||||||||||||||====================tag: sndpid: 3381process: 63time: 1627070235.089106date: Fri Jul 23 19:57:15 2021proto: tls ipv4srcip: SBC_IP_ADDRsrcport: 5061dstip: 52.114.76.76dstport: 4672~~~~~~~~~~~~~~~~~~~~SIP/2.0 100 trying -- your call is important to usFROM: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544CSEQ: 1 INVITECALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eVIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bK60895c91;rport=4672Server: kamailio (5.3.7 (x86_64/linux))Content-Length: 0
||||||||||||||||||||====================tag: sndpid: 3291process: 18time: 1627070235.111825date: Fri Jul 23 19:57:15 2021proto: tls ipv4srcip: SBC_IP_ADDRsrcport: 5061dstip: 52.114.76.76dstport: 4672~~~~~~~~~~~~~~~~~~~~SIP/2.0 180 RingingFROM: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544t:<sip:+5515XXXXXXXXX@SBC-FQDN:5061;user=phone>;tag=e55N8paBUgZacCALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eCSEQ: 1 INVITEUser-Agent:FreeSWITCH-mod_sofia/1.10.3-release~64bitAccept:application/sdpAllow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFYk:path,replacesu:talk,hold,conference,referl:0Via: SIP/2.0/TLS 52.114.76.76:5061;rport=4672;branch=z9hG4bK60895c91Record-Route: <sip:192.168.1.253:5060;r2=on;ftag=bafa0f5a573749a7b494917c0309f544;lr=on>,<sip:SBC-FQDN:5061;transport=tls;r2=on;ftag=bafa0f5a573749a7b494917c0309f544;lr=on>P-SR-XBranch: z9hG4bKe7d4.5ae277881edb9c04a7ac65af016e582e.0
||||||||||||||||||||====================tag: sndpid: 3298process: 21time: 1627070245.043621date: Fri Jul 23 19:57:25 2021proto: tls ipv4srcip: SBC_IP_ADDRsrcport: 5061dstip: 52.114.76.76dstport: 4672~~~~~~~~~~~~~~~~~~~~SIP/2.0 183 Session ProgressFROM: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544t:<sip:+5515XXXXXXXXX@SBC-FQDN:5061;user=phone>;tag=e55N8paBUgZacCALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eCSEQ: 1 INVITEUser-Agent:FreeSWITCH-mod_sofia/1.10.3-release~64bitAllow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFYk:path,replacesu:talk,hold,conference,referc:application/sdpContent-Disposition:sessionl:323Via: SIP/2.0/TLS 52.114.76.76:5061;rport=4672;branch=z9hG4bK60895c91Record-Route: <sip:192.168.1.253:5060;r2=on;ftag=bafa0f5a573749a7b494917c0309f544;lr=on>,<sip:SBC-FQDN:5061;transport=tls;r2=on;ftag=bafa0f5a573749a7b494917c0309f544;lr=on>P-SR-XBranch: z9hG4bKe7d4.5ae277881edb9c04a7ac65af016e582e.0
v=0o=FreeSWITCH 1627045233 1627045234 IN IP4 SBC_IP_ADDRs=FreeSWITCHc=IN IP4 SBC_IP_ADDRt=0 0m=audio 49692 RTP/SAVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:eMGqj0jubamtvLsI/E/YSj8UqNKgUB5DTHGWc7PYa=nortpproxy:yes
||||||||||||||||||||====================tag: sndpid: 3293process: 19time: 1627070255.938770date: Fri Jul 23 19:57:35 2021proto: tls ipv4srcip: SBC_IP_ADDRsrcport: 5061dstip: 52.114.76.76dstport: 4672~~~~~~~~~~~~~~~~~~~~SIP/2.0 200 OKFROM: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544t:<sip:+5515XXXXXXXXX@SBC-FQDN:5061;user=phone>;tag=e55N8paBUgZacCALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eCSEQ: 1 INVITEUser-Agent:FreeSWITCH-mod_sofia/1.10.3-release~64bitAllow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFYk:path,replacesu:talk,hold,conference,referc:application/sdpContent-Disposition:sessionl:323Via: SIP/2.0/TLS 52.114.76.76:5061;rport=4672;branch=z9hG4bK60895c91Record-Route: <sip:192.168.1.253:5060;r2=on;ftag=bafa0f5a573749a7b494917c0309f544;lr=on>,<sip:SBC-FQDN:5061;transport=tls;r2=on;ftag=bafa0f5a573749a7b494917c0309f544;lr=on>P-SR-XBranch: z9hG4bKe7d4.5ae277881edb9c04a7ac65af016e582e.0
v=0o=FreeSWITCH 1627045233 1627045234 IN IP4 SBC_IP_ADDRs=FreeSWITCHc=IN IP4 SBC_IP_ADDRt=0 0m=audio 49692 RTP/SAVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:eMGqj0jubamtvLsI/E/YSj8UqNKgUB5DTHGWc7PYa=nortpproxy:yes
||||||||||||||||||||====================tag: rcvpid: 3370process: 57time: 1627070255.957735date: Fri Jul 23 19:57:35 2021proto: tls ipv4srcip: 52.114.76.76srcport: 4672dstip: SBC_IP_ADDRdstport: 5061~~~~~~~~~~~~~~~~~~~~FROM: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544TO: <sip:+5515XXXXXXXXX@SBC-FQDN:5061>;user=phone;tag=e55N8paBUgZacCSEQ: 1 ACKCALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eMAX-FORWARDS: 70VIA: SIP/2.0/TLS 52.114.76.76:5061;branch=z9hG4bKe3747d68CONTENT-LENGTH: 0USER-AGENT: Microsoft.PSTNHub.SIPProxy v.2021.6.15.17 i.EUNO.0ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFYP-SR-XUID: atpsh-60fb1b5d-d35-1
||||||||||||||||||||====================tag: sndpid: 3302process: 23time: 1627070275.228363date: Fri Jul 23 19:57:55 2021proto: tls ipv4srcip: SBC_IP_ADDRsrcport: 5061dstip: 52.114.75.24dstport: 5061~~~~~~~~~~~~~~~~~~~~Record-Route: <sip:192.168.1.253:5060;r2=on;ftag=e55N8paBUgZac;lr=on>Via: SIP/2.0/TLS SBC_IP_ADDR:5061;branch=z9hG4bK92fc.fcb147cf8e5e6e6e960d0f2401ad6383.0v:SIP/2.0/UDP 192.168.1.254;received=192.168.1.254;rport=5060;branch=z9hG4bKgvXrQrcNjNj3mf:<sip:+5515XXXXXXXXX@SBC-FQDN:5061;user=phone>;tag=e55N8paBUgZact:"Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544i:c9b2aa4f658f5788aa7090bef0f5e35eCSeq:38981345 BYEUser-Agent:FreeSWITCH-mod_sofia/1.10.3-release~64bitAllow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFYk:path,replacesReason:Q.850;cause=16;text="NORMAL_CLEARING"Max-Forwards: 64l:0P-SR-XUID: atpsh-60fb1b5d-d35-1
||||||||||||||||||||====================tag: rcvpid: 3385process: 65time: 1627070300.423499date: Fri Jul 23 19:58:20 2021proto: tls ipv4srcip: 52.114.75.24srcport: 5061dstip: SBC_IP_ADDRdstport: 5061~~~~~~~~~~~~~~~~~~~~SIP/2.0 504 Server Time-outFROM: <sip:+5515XXXXXXXXX@SBC-FQDN:5061;user=phone>;tag=e55N8paBUgZacTO: "Last, First Name"<sip:+8979994;ext=01180@sip.pstnhub.microsoft.com:5061;user=phone>;tag=bafa0f5a573749a7b494917c0309f544CSEQ: 38981345 BYECALL-ID: c9b2aa4f658f5788aa7090bef0f5e35eVIA: SIP/2.0/TLS SBC_IP_ADDR:5061;branch=z9hG4bK92fc.fcb147cf8e5e6e6e960d0f2401ad6383.0CONTENT-LENGTH: 0ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFYSERVER: Microsoft.PSTNHub.SIPProxy v.2021.6.15.17 i.EUWE.3Via: SIP/2.0/UDP 192.168.1.254;received=192.168.1.254;rport=5060;branch=z9hG4bKgvXrQrcNjNj3mRecord-Route: <sip:SBC-FQDN:5061;transport=tls;r2=on;ftag=e55N8paBUgZac;lr=on>,<sip:192.168.1.253:5060;r2=on;ftag=e55N8paBUgZac;lr=on>P-SR-XBranch: z9hG4bK92fc.fcb147cf8e5e6e6e960d0f2401ad6383.0
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda