siprec icon indicating copy to clipboard operation
siprec copied to clipboard

SIPREC XML structure does not comply with RFC 7865

Open a72 opened this issue 1 year ago • 10 comments

Hello, and thank you for the project.

I attempted to use the SIPREC functionality, but unfortunately the current Go structure does not match the XML schema defined in RFC 7865, which makes it impossible to process standard SIPREC metadata.

For example, the following struct in your code:

type RSMetadata struct {
    XMLName               xml.Name        `xml:"urn:ietf:params:xml:ns:recording:1 recording"`
    SessionID             string          `xml:"session,attr"`
    State                 string          `xml:"state,attr"`
    Reason                string          `xml:"reason,attr,omitempty"`
    Sequence              int             `xml:"sequence,attr,omitempty"`
    ReasonRef             string          `xml:"reasonref,attr,omitempty"`
    Expires               string          `xml:"expires,attr,omitempty"`
    MediaLabel            string          `xml:"label,attr,omitempty"`
    Direction             string          `xml:"direction,attr,omitempty"`
    Group                 []Group         `xml:"group"`
    Participants          []RSParticipant `xml:"participant"`
    Streams               []Stream        `xml:"stream"`
    SessionRecordingAssoc RSAssociation   `xml:"sessionrecordingassoc"`
}

does not reflect the actual metadata format from RFC 7865. Because of this, I cannot test or use your SIPREC implementation with standards-compliant XML.

Here is an example XML directly from RFC 7865 section 8.1:

<?xml version="1.0" encoding="UTF-8"?>
<recording xmlns='urn:ietf:params:xml:ns:recording:1'>
  <datamode>complete</datamode>
  <group group_id="7+OTCyoxTmqmqyA/1weDAg==">
    <associate-time>2010-12-16T23:41:07Z</associate-time>
    <!-- Standardized extension -->
    <call-center xmlns='urn:ietf:params:xml:ns:callcenter'>
      <supervisor>sip:[email protected]</supervisor>
    </call-center>
    <mydata xmlns='http://example.com/my'>
      <structure>FOO!</structure>
      <whatever>bar</whatever>
    </mydata>
  </group>
  <session session_id="hVpd7YQgRW2nD22h7q60JQ==">
    <sipSessionID>ab30317f1a784dc48ff824d0d3715d86;
    remote=47755a9de7794ba387653f2099600ef2</sipSessionID>
    <group-ref>7+OTCyoxTmqmqyA/1weDAg==</group-ref>
  </session>
  <participant participant_id="srfBElmCRp2QB23b7Mpk0w==">
    <nameID aor="sip:[email protected]">
      <name xml:lang="it">Bob</name>
    </nameID>
  </participant>
</recording>

a72 avatar Oct 21 '25 14:10 a72

chages were made, please pull and test again

loreste avatar Oct 21 '25 15:10 loreste

Your recent fixes unfortunately did not resolve the issue. I am still unable to parse valid SIPREC metadata from an RFC-compliant XML. The server now rejects the metadata with the following error:

{"error":"critical SIPREC metadata validation failure: [missing recording state]","level":"error","message":"Failed to parse SIPREC metadata","siprec":true,"timestamp":"2025-10-22T12:16:52.329526754+03:00"}

It appears that your implementation expects a attribute, but this attribute does not exist in RFC 7865 and is not present in any official examples. Because of this strict validation, your parser rejects standard XML.

Below is my INVITE with XML that fully matches RFC 7865 — this XML should be considered valid, but your SIPREC module fails to accept it:

2025/10/22 12:16:52.327953 192.168.81.54:5060 -> 192.168.81.54:5090
INVITE sip:192.168.81.54:5090 SIP/2.0
Via: SIP/2.0/UDP 192.168.81.54:5060;branch=z9hG4bK4dfb.18bc7034.0
To: <sip:192.168.81.54:5090>
From: <sip:192.168.81.54:5090>;tag=1dda36f3c891949c2f65b74177ef6cca-ce21
CSeq: 2 INVITE
Call-ID: B2B.160.6732928.1761124611.1315329229
Max-Forwards: 70
Content-Length: 2420
User-Agent: GIGA (SipREC)
Require: siprec
Content-Type: multipart/mixed;boundary=OSS-unique-boundary-42
Contact: <sip:192.168.81.54:5060>;+sip.src

--OSS-unique-boundary-42
Content-Type: application/sdp

v=0
o=Huawei 396755516 396755516 IN IP4 192.168.22.133
s=SipCall
t=0 0
m=audio 18448 RTP/AVP 8 108
c=IN IP4 192.168.82.21
a=label:0
a=rtpmap:8 PCMA/8000
a=rtpmap:108 telephone-event/8000
a=3gOoBTC
a=sendonly
a=rtcp:18449
a=ptime:20
m=audio 19480 RTP/AVP 8 108
c=IN IP4 192.168.82.21
a=label:1
a=rtpmap:8 PCMA/8000
a=rtpmap:108 telephone-event/8000
a=3gOoBTC
a=sendonly
a=rtcp:19481
a=ptime:20

--OSS-unique-boundary-42
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session

<?xml version="1.0" encoding="UTF-8"?>
<recording xmlns='urn:ietf:params:xml:ns:recording:1'>
 <datamode>complete</datamode>
 <session session_id="y5I25Gf2RuG9NQJyJkL1rw==">
  <sipSessionID>[email protected]</sipSessionID>
 </session>
 <participant participant_id="XHWWTVWST5G/3G6NVExIIA==">
  <nameID aor="sip:[email protected];transport=udp;user=phone">
   <name>+123</name>
  </nameID>
 </participant>
 <participant participant_id="vioNTaFfTB+i4a8sSi4M+Q==">
  <nameID aor="sip:[email protected];transport=udp;user=phone">
   <name>+321</name>
  </nameID>
 </participant>
 <stream stream_id="7RFzdpqQRHCi5c+zpgK48g==" session_id="y5I25Gf2RuG9NQJyJkL1rw==">
  <label>1</label>
 </stream>
 <stream stream_id="JoCeAfr4SAuAaPHyFcX/Yw==" session_id="y5I25Gf2RuG9NQJyJkL1rw==">
  <label>0</label>
 </stream>
 <sessionrecordingassoc session_id="y5I25Gf2RuG9NQJyJkL1rw==">
  <associate-time>2025-10-22T12:16:48+0300</associate-time>
 </sessionrecordingassoc>
 <participantsessionassoc participant_id="XHWWTVWST5G/3G6NVExIIA==" session_id="y5I25Gf2RuG9NQJyJkL1rw==">
  <associate-time>2025-10-22T12:16:48+0300</associate-time>
 </participantsessionassoc>
 <participantsessionassoc participant_id="vioNTaFfTB+i4a8sSi4M+Q==" session_id="y5I25Gf2RuG9NQJyJkL1rw==">
  <associate-time>2025-10-22T12:16:48+0300</associate-time>
 </participantsessionassoc>
 <participantstreamassoc participant_id="XHWWTVWST5G/3G6NVExIIA==">
  <send>7RFzdpqQRHCi5c+zpgK48g==</send>
  <recv>JoCeAfr4SAuAaPHyFcX/Yw==</recv>
 </participantstreamassoc>
 <participantstreamassoc participant_id="vioNTaFfTB+i4a8sSi4M+Q==">
  <send>JoCeAfr4SAuAaPHyFcX/Yw==</send>
  <recv>7RFzdpqQRHCi5c+zpgK48g==</recv>
 </participantstreamassoc>
</recording>
--OSS-unique-boundary-42--

a72 avatar Oct 22 '25 09:10 a72

Thanks for that, I made some more changes, I am only testing with go and don't have a siprec client to test with since I am traveling. Please test it and hopefully it will be good. You shouldn't encounter that error again though.

loreste avatar Oct 22 '25 14:10 loreste

I don't get 200 OK on INVITE

log

{"level":"info","message":"Received INVITE request","method":"INVITE","timestamp":"2025-10-22T17:55:30.372088659+03:00"}
{"level":"info","message":"Processing initial SIPREC INVITE","method":"INVITE","timestamp":"2025-10-22T17:55:30.3725762+03:00"}
{"body_size":2420,"branch":"z9hG4bKa885.767d2e35.0","call_id":"B2B.160.4448412.1761144929.662219441","from_tag":"8e0f297418014d7021733acf18a6deee-ce21","level":"info","message":"Processing SIPREC INVITE with large metadata","siprec":true,"timestamp":"2025-10-22T17:55:30.372641406+03:00","transport":"udp"}
{"level":"info","message":"Extracted SIPREC metadata","metadata_size":1802,"siprec":true,"timestamp":"2025-10-22T17:55:30.373265226+03:00"}
{"level":"warning","message":"SIPREC metadata validation warnings","timestamp":"2025-10-22T17:55:30.373936412+03:00","warnings":["missing recording state attribute; defaulting to unknown","stream tfolcBVuSCq0/eQ2zchnYA== missing type attribute","stream f8yGqwf2StuZvtjEJN+StA== missing type attribute","session association missing both call-ID and fixed-ID"]}
{"direction":"unknown","level":"info","message":"Created recording session from SIPREC metadata","participant_count":2,"policy_updates":0,"recording_state":"active","session_groups":0,"session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec":true,"stream_count":2,"timestamp":"2025-10-22T17:55:30.374004418+03:00"}
{"level":"info","message":"Successfully created recording session from SIPREC metadata","participant_count":2,"recording_state":"active","session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec":true,"timestamp":"2025-10-22T17:55:30.374054853+03:00"}
{"error":"EOF","level":"warning","message":"Failed to parse received SDP, using default","siprec":true,"timestamp":"2025-10-22T17:55:30.374294304+03:00"}
{"call_uuid":"B2B.160.4448412.1761144929.662219441","channels":1,"level":"info","message":"Audio processing initialized","noise_reduction":true,"timestamp":"2025-10-22T17:55:30.375018752+03:00","vad_enabled":true}
{"level":"info","message":"Generated SIPREC multipart response","participant_count":2,"sequence":1,"session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec":true,"state":"active","stream_count":2,"timestamp":"2025-10-22T17:55:30.375195602+03:00"}
{"call_id":"B2B.160.4448412.1761144929.662219441","error":"size of packet larger than MTU. transaction transport error","level":"error","message":"Failed to send SIP response over transaction layer","method":"INVITE","status":200,"timestamp":"2025-10-22T17:55:30.375284626+03:00"}
{"audit":true,"audit_action":"invite","audit_category":"sip","audit_outcome":"success","call_id":"B2B.160.4448412.1761144929.662219441","fields.timestamp":"2025-10-22T14:55:30.375321687Z","level":"info","message":"audit.event","session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec_metadata":true,"span_id":"a3ca771ada771b00","tenant":"unknown","timestamp":"2025-10-22T17:55:30.375336793+03:00","trace_id":"58269efe46b2a6ada847f13fe9a5dda6","transport":"udp","users":["+123","+321"]}
{"call_id":"B2B.160.4448412.1761144929.662219441","level":"info","local_tag":"tag-1761144930372881183","message":"Successfully responded to SIPREC INVITE","siprec":true,"timestamp":"2025-10-22T17:55:30.375388915+03:00"}
{"call_uuid":"B2B.160.4448412.1761144929.662219441","level":"info","message":"Routing STT stream to provider","requested":"","resolved":"google","timestamp":"2025-10-22T17:55:30.375451364+03:00"}
{"attempt":1,"call_uuid":"B2B.160.4448412.1761144929.662219441","level":"warning","message":"STT provider not registered; skipping","provider":"google","timestamp":"2025-10-22T17:55:30.375547748+03:00"}
2025/10/22 17:55:35 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:35.375994888+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:35.375972698+03:00"},"Events":[]}
2025/10/22 17:55:35 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:35.375994888+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:35.375972698+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:55:40 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:40.376193226+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:40.376187561+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:55:45 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:45.376048131+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:45.376040448+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:55:50 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:50.375908869+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:50.375901836+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]}
^[[B^[[B^[[B^[[C^[[B2025/10/22 17:55:55 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:55.376685743+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:55.376677706+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:55:55 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:55.376685743+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:55.376677706+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]}
^[[C2025/10/22 17:56:00 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:00.376505364+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:00.376498335+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]}
{"call_uuid":"B2B.160.4448412.1761144929.662219441","last_rtp":"2025-10-22T17:55:30.374619331+03:00","level":"info","message":"RTP timeout detected, closing forwarder","timeout":30000000000,"timestamp":"2025-10-22T17:56:00.376628573+03:00"}
^[[B^[[C^[[B^[[B2025/10/22 17:56:05 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:05.378905313+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:05.378898864+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:56:10 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:10.37739706+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:10.377368303+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:56:10 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:10.37739706+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:10.377368303+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]}
^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB2025/10/22 17:56:15 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:15.380137466+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:15.380129522+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]}

2025/10/22 17:56:20 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:20.377432574+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:20.377426337+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:56:25 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:25.379910263+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:25.379903355+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:56:25 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:25.379910263+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:25.379903355+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:25.380052244+03:00","Details":{"voice_ratio":0}}]}
2025/10/22 17:56:30 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:30.377603706+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:30.377595987+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:25.380052244+03:00","Details":{"voice_ratio":0}}]}
^C{"level":"info","message":"Received shutdown signal, cleaning up...","signal":"interrupt","timestamp":"2025-10-22T17:56:32.399986414+03:00"}
{"level":"info","message":"Shutting down HTTP server...","timestamp":"2025-10-22T17:56:32.400070252+03:00"}
{"error":"accept tcp 0.0.0.0:5090: use of closed network connection","level":"error","message":"Failed to start SIP server on TCP","port":5090,"timestamp":"2025-10-22T17:56:32.400184294+03:00"}
{"level":"info","message":"HTTP server shut down successfully","timestamp":"2025-10-22T17:56:32.400232765+03:00"}
{"level":"info","message":"Shutting down SIP handler and all components","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400305008+03:00"}
{"level":"info","message":"Shutting down WebSocket transcription hub","timestamp":"2025-10-22T17:56:32.400326429+03:00"}
{"active_calls":0,"level":"info","message":"Active calls before shutdown","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400333748+03:00"}
{"component":"cleanup","level":"info","message":"Cleaning up all active calls","timestamp":"2025-10-22T17:56:32.400390006+03:00"}
{"level":"info","message":"SIP Handler shutdown - server resources managed by CustomSIPServer","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400415774+03:00"}
{"level":"info","message":"SIP handler shutdown complete","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400433554+03:00"}
{"level":"info","message":"SIP server shut down successfully","timestamp":"2025-10-22T17:56:32.400447887+03:00"}
{"level":"info","message":"SIP server context cancelled, shutting down","timestamp":"2025-10-22T17:56:32.400312688+03:00"}

a72 avatar Oct 22 '25 15:10 a72

please make sure you are using tcp because this is too large for udp

On Wed, Oct 22, 2025 at 11:03 AM a72 @.***> wrote:

a72 left a comment (loreste/siprec#4) https://github.com/loreste/siprec/issues/4#issuecomment-3432849541

I don't get 200 OK on INVITE

log

{"level":"info","message":"Received INVITE request","method":"INVITE","timestamp":"2025-10-22T17:55:30.372088659+03:00"} {"level":"info","message":"Processing initial SIPREC INVITE","method":"INVITE","timestamp":"2025-10-22T17:55:30.3725762+03:00"} {"body_size":2420,"branch":"z9hG4bKa885.767d2e35.0","call_id":"B2B.160.4448412.1761144929.662219441","from_tag":"8e0f297418014d7021733acf18a6deee-ce21","level":"info","message":"Processing SIPREC INVITE with large metadata","siprec":true,"timestamp":"2025-10-22T17:55:30.372641406+03:00","transport":"udp"} {"level":"info","message":"Extracted SIPREC metadata","metadata_size":1802,"siprec":true,"timestamp":"2025-10-22T17:55:30.373265226+03:00"} {"level":"warning","message":"SIPREC metadata validation warnings","timestamp":"2025-10-22T17:55:30.373936412+03:00","warnings":["missing recording state attribute; defaulting to unknown","stream tfolcBVuSCq0/eQ2zchnYA== missing type attribute","stream f8yGqwf2StuZvtjEJN+StA== missing type attribute","session association missing both call-ID and fixed-ID"]} {"direction":"unknown","level":"info","message":"Created recording session from SIPREC metadata","participant_count":2,"policy_updates":0,"recording_state":"active","session_groups":0,"session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec":true,"stream_count":2,"timestamp":"2025-10-22T17:55:30.374004418+03:00"} {"level":"info","message":"Successfully created recording session from SIPREC metadata","participant_count":2,"recording_state":"active","session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec":true,"timestamp":"2025-10-22T17:55:30.374054853+03:00"} {"error":"EOF","level":"warning","message":"Failed to parse received SDP, using default","siprec":true,"timestamp":"2025-10-22T17:55:30.374294304+03:00"} {"call_uuid":"B2B.160.4448412.1761144929.662219441","channels":1,"level":"info","message":"Audio processing initialized","noise_reduction":true,"timestamp":"2025-10-22T17:55:30.375018752+03:00","vad_enabled":true} {"level":"info","message":"Generated SIPREC multipart response","participant_count":2,"sequence":1,"session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec":true,"state":"active","stream_count":2,"timestamp":"2025-10-22T17:55:30.375195602+03:00"} {"call_id":"B2B.160.4448412.1761144929.662219441","error":"size of packet larger than MTU. transaction transport error","level":"error","message":"Failed to send SIP response over transaction layer","method":"INVITE","status":200,"timestamp":"2025-10-22T17:55:30.375284626+03:00"} {"audit":true,"audit_action":"invite","audit_category":"sip","audit_outcome":"success","call_id":"B2B.160.4448412.1761144929.662219441","fields.timestamp":"2025-10-22T14:55:30.375321687Z","level":"info","message":"audit.event","session_id":"w1VXnJx5QQOnJZtZ/GgnvQ==","siprec_metadata":true,"span_id":"a3ca771ada771b00","tenant":"unknown","timestamp":"2025-10-22T17:55:30.375336793+03:00","trace_id":"58269efe46b2a6ada847f13fe9a5dda6","transport":"udp","users":["+123","+321"]} {"call_id":"B2B.160.4448412.1761144929.662219441","level":"info","local_tag":"tag-1761144930372881183","message":"Successfully responded to SIPREC INVITE","siprec":true,"timestamp":"2025-10-22T17:55:30.375388915+03:00"} {"call_uuid":"B2B.160.4448412.1761144929.662219441","level":"info","message":"Routing STT stream to provider","requested":"","resolved":"google","timestamp":"2025-10-22T17:55:30.375451364+03:00"} {"attempt":1,"call_uuid":"B2B.160.4448412.1761144929.662219441","level":"warning","message":"STT provider not registered; skipping","provider":"google","timestamp":"2025-10-22T17:55:30.375547748+03:00"} 2025/10/22 17:55:35 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:35.375994888+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:35.375972698+03:00"},"Events":[]} 2025/10/22 17:55:35 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:35.375994888+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:35.375972698+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:55:40 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:40.376193226+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:40.376187561+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:55:45 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:45.376048131+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:45.376040448+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:55:50 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:50.375908869+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:50.375901836+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]} ^[[B^[[B^[[B^[[C^[[B2025/10/22 17:55:55 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:55.376685743+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:55.376677706+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:55:55 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:55:55.376685743+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:55:55.376677706+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]} ^[[C2025/10/22 17:56:00 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:00.376505364+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:00.376498335+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]} {"call_uuid":"B2B.160.4448412.1761144929.662219441","last_rtp":"2025-10-22T17:55:30.374619331+03:00","level":"info","message":"RTP timeout detected, closing forwarder","timeout":30000000000,"timestamp":"2025-10-22T17:56:00.376628573+03:00"} ^[[B^[[C^[[B^[[B2025/10/22 17:56:05 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:05.378905313+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:05.378898864+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:56:10 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:10.37739706+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:10.377368303+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:56:10 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:10.37739706+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:10.377368303+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]} ^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB^[OB2025/10/22 17:56:15 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:15.380137466+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:15.380129522+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]}

2025/10/22 17:56:20 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:20.377432574+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:20.377426337+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:56:25 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:25.379910263+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:25.379903355+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:56:25 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:25.379910263+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:25.379903355+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:25.380052244+03:00","Details":{"voice_ratio":0}}]} 2025/10/22 17:56:30 analytics snapshot: {"CallID":"B2B.160.4448412.1761144929.662219441","SentimentTrend":[],"Keywords":[],"Topics":[],"Compliance":[],"Metrics":{"TotalTalkTime":0,"TotalSilenceTime":0,"InterruptionCount":0,"LastSpeechAt":"0001-01-01T00:00:00Z"},"QualityScore":0,"UpdatedAt":"2025-10-22T17:56:30.377603706+03:00","Audio":{"MOS":2.2,"VoiceRatio":0,"NoiseFloor":0.01,"PacketLoss":0,"JitterMs":0,"Timestamp":"2025-10-22T17:56:30.377595987+03:00"},"Events":[{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:35.376296652+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:55:55.376823099+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:10.37755032+03:00","Details":{"voice_ratio":0}},{"Type":"silence","Confidence":0.9,"Timestamp":"2025-10-22T17:56:25.380052244+03:00","Details":{"voice_ratio":0}}]} ^C{"level":"info","message":"Received shutdown signal, cleaning up...","signal":"interrupt","timestamp":"2025-10-22T17:56:32.399986414+03:00"} {"level":"info","message":"Shutting down HTTP server...","timestamp":"2025-10-22T17:56:32.400070252+03:00"} {"error":"accept tcp 0.0.0.0:5090: use of closed network connection","level":"error","message":"Failed to start SIP server on TCP","port":5090,"timestamp":"2025-10-22T17:56:32.400184294+03:00"} {"level":"info","message":"HTTP server shut down successfully","timestamp":"2025-10-22T17:56:32.400232765+03:00"} {"level":"info","message":"Shutting down SIP handler and all components","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400305008+03:00"} {"level":"info","message":"Shutting down WebSocket transcription hub","timestamp":"2025-10-22T17:56:32.400326429+03:00"} {"active_calls":0,"level":"info","message":"Active calls before shutdown","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400333748+03:00"} {"component":"cleanup","level":"info","message":"Cleaning up all active calls","timestamp":"2025-10-22T17:56:32.400390006+03:00"} {"level":"info","message":"SIP Handler shutdown - server resources managed by CustomSIPServer","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400415774+03:00"} {"level":"info","message":"SIP handler shutdown complete","operation":"sip_shutdown","timestamp":"2025-10-22T17:56:32.400433554+03:00"} {"level":"info","message":"SIP server shut down successfully","timestamp":"2025-10-22T17:56:32.400447887+03:00"} {"level":"info","message":"SIP server context cancelled, shutting down","timestamp":"2025-10-22T17:56:32.400312688+03:00"}

— Reply to this email directly, view it on GitHub https://github.com/loreste/siprec/issues/4#issuecomment-3432849541, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBAMCW4HZZV5CYLGQV73T3Y6MDZAVCNFSM6AAAAACJZKABNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZSHA2DSNJUGE . You are receiving this because you commented.Message ID: @.***>

loreste avatar Oct 22 '25 15:10 loreste

not 200 OK

{"level":"info","message":"Received INVITE request","method":"INVITE","timestamp":"2025-10-22T18:49:41.248023421+03:00"}                   
{"level":"info","message":"Processing initial SIPREC INVITE","method":"INVITE","timestamp":"2025-10-22T18:49:41.24827705+03:00"}           
{"body_size":2420,"branch":"z9hG4bK1fcd.2ead3703.0","call_id":"B2B.160.5603385.1761148180.1479285524","from_tag":"a05a14441f2d1e96d922283dd
c9565f0-ce21","level":"info","message":"Processing SIPREC INVITE with large metadata","siprec":true,"timestamp":"2025-10-22T18:49:41.248345
352+03:00","transport":"udp"}                                                                                                              
{"level":"info","message":"Extracted SIPREC metadata","metadata_size":1802,"siprec":true,"timestamp":"2025-10-22T18:49:41.248534128+03:00"}
{"level":"warning","message":"SIPREC metadata validation warnings","timestamp":"2025-10-22T18:49:41.249038445+03:00","warnings":["missing r
ecording state attribute; defaulting to unknown","stream seGAYyg/QNemHlhRdlZknA== missing type attribute","stream A481Xd52SMim1vm1iA+R2w== 
missing type attribute","session association missing both call-ID and fixed-ID"]}                                                          
{"direction":"unknown","level":"info","message":"Created recording session from SIPREC metadata","participant_count":2,"policy_updates":0,"
recording_state":"active","session_groups":0,"session_id":"hHqfjbiSTlWNUx3McDKSpQ==","siprec":true,"stream_count":2,"timestamp":"2025-10-22
T18:49:41.249088865+03:00"}                                                                                                                
{"level":"info","message":"Successfully created recording session from SIPREC metadata","participant_count":2,"recording_state":"active","s
ession_id":"hHqfjbiSTlWNUx3McDKSpQ==","siprec":true,"timestamp":"2025-10-22T18:49:41.249125664+03:00"}                                     
{"error":"EOF","level":"warning","message":"Failed to parse received SDP, using default","siprec":true,"timestamp":"2025-10-22T18:49:41.249
288399+03:00"}                                                                                                                             
{"level":"info","message":"Generated SIPREC multipart response","participant_count":2,"sequence":1,"session_id":"hHqfjbiSTlWNUx3McDKSpQ==",
"siprec":true,"state":"active","stream_count":2,"timestamp":"2025-10-22T18:49:41.249458353+03:00"}                                         
{"call_id":"B2B.160.5603385.1761148180.1479285524","error":"size of packet larger than MTU. transaction transport error","level":"error","m
essage":"Failed to send SIP response over transaction layer","method":"INVITE","status":200,"timestamp":"2025-10-22T18:49:41.249515311+03:0
0"}                                                                                                                                        
{"audit":true,"audit_action":"invite","audit_category":"sip","audit_outcome":"success","call_id":"B2B.160.5603385.1761148180.1479285524","f
ields.timestamp":"2025-10-22T15:49:41.249552139Z","level":"info","message":"audit.event","session_id":"hHqfjbiSTlWNUx3McDKSpQ==","siprec_me
tadata":true,"span_id":"adbf3b1499496cc3","tenant":"unknown","timestamp":"2025-10-22T18:49:41.249560803+03:00","trace_id":"cab51ca6486855fa
cf1fe312ac4a248c","transport":"udp","users":["+123","+345"]}                                                               
{"call_id":"B2B.160.5603385.1761148180.1479285524","level":"info","local_tag":"tag-1761148181248435159","message":"Successfully responded t
o SIPREC INVITE","siprec":true,"timestamp":"2025-10-22T18:49:41.249606679+03:00"}                                                          
{"call_uuid":"B2B.160.5603385.1761148180.1479285524","channels":1,"level":"info","message":"Audio processing initialized","noise_reduction"
:true,"timestamp":"2025-10-22T18:49:41.250033528+03:00","vad_enabled":true}
{"call_uuid":"B2B.160.5603385.1761148180.1479285524","level":"info","message":"Routing STT stream to provider","requested":"","resolved":"g
oogle","timestamp":"2025-10-22T18:49:41.25071555+03:00"}
{"attempt":1,"call_uuid":"B2B.160.5603385.1761148180.1479285524","level":"warning","message":"STT provider not registered; skipping","provi
der":"google","timestamp":"2025-10-22T18:49:41.25077045+03:00"}

a72 avatar Oct 22 '25 15:10 a72

please try now, should be running TCP

On Wed, Oct 22, 2025 at 11:57 AM a72 @.***> wrote:

a72 left a comment (loreste/siprec#4) https://github.com/loreste/siprec/issues/4#issuecomment-3433130312

not 200 OK

{"level":"info","message":"Received INVITE request","method":"INVITE","timestamp":"2025-10-22T18:49:41.248023421+03:00"} {"level":"info","message":"Processing initial SIPREC INVITE","method":"INVITE","timestamp":"2025-10-22T18:49:41.24827705+03:00"} {"body_size":2420,"branch":"z9hG4bK1fcd.2ead3703.0","call_id":"B2B.160.5603385.1761148180.1479285524","from_tag":"a05a14441f2d1e96d922283dd c9565f0-ce21","level":"info","message":"Processing SIPREC INVITE with large metadata","siprec":true,"timestamp":"2025-10-22T18:49:41.248345 352+03:00","transport":"udp"} {"level":"info","message":"Extracted SIPREC metadata","metadata_size":1802,"siprec":true,"timestamp":"2025-10-22T18:49:41.248534128+03:00"} {"level":"warning","message":"SIPREC metadata validation warnings","timestamp":"2025-10-22T18:49:41.249038445+03:00","warnings":["missing r ecording state attribute; defaulting to unknown","stream seGAYyg/QNemHlhRdlZknA== missing type attribute","stream A481Xd52SMim1vm1iA+R2w== missing type attribute","session association missing both call-ID and fixed-ID"]} {"direction":"unknown","level":"info","message":"Created recording session from SIPREC metadata","participant_count":2,"policy_updates":0," recording_state":"active","session_groups":0,"session_id":"hHqfjbiSTlWNUx3McDKSpQ==","siprec":true,"stream_count":2,"timestamp":"2025-10-22 T18:49:41.249088865+03:00"} {"level":"info","message":"Successfully created recording session from SIPREC metadata","participant_count":2,"recording_state":"active","s ession_id":"hHqfjbiSTlWNUx3McDKSpQ==","siprec":true,"timestamp":"2025-10-22T18:49:41.249125664+03:00"} {"error":"EOF","level":"warning","message":"Failed to parse received SDP, using default","siprec":true,"timestamp":"2025-10-22T18:49:41.249 288399+03:00"} {"level":"info","message":"Generated SIPREC multipart response","participant_count":2,"sequence":1,"session_id":"hHqfjbiSTlWNUx3McDKSpQ==", "siprec":true,"state":"active","stream_count":2,"timestamp":"2025-10-22T18:49:41.249458353+03:00"} {"call_id":"B2B.160.5603385.1761148180.1479285524","error":"size of packet larger than MTU. transaction transport error","level":"error","m essage":"Failed to send SIP response over transaction layer","method":"INVITE","status":200,"timestamp":"2025-10-22T18:49:41.249515311+03:0 0"} {"audit":true,"audit_action":"invite","audit_category":"sip","audit_outcome":"success","call_id":"B2B.160.5603385.1761148180.1479285524","f ields.timestamp":"2025-10-22T15:49:41.249552139Z","level":"info","message":"audit.event","session_id":"hHqfjbiSTlWNUx3McDKSpQ==","siprec_me tadata":true,"span_id":"adbf3b1499496cc3","tenant":"unknown","timestamp":"2025-10-22T18:49:41.249560803+03:00","trace_id":"cab51ca6486855fa cf1fe312ac4a248c","transport":"udp","users":["+123","+345"]} {"call_id":"B2B.160.5603385.1761148180.1479285524","level":"info","local_tag":"tag-1761148181248435159","message":"Successfully responded t o SIPREC INVITE","siprec":true,"timestamp":"2025-10-22T18:49:41.249606679+03:00"} {"call_uuid":"B2B.160.5603385.1761148180.1479285524","channels":1,"level":"info","message":"Audio processing initialized","noise_reduction" :true,"timestamp":"2025-10-22T18:49:41.250033528+03:00","vad_enabled":true} {"call_uuid":"B2B.160.5603385.1761148180.1479285524","level":"info","message":"Routing STT stream to provider","requested":"","resolved":"g oogle","timestamp":"2025-10-22T18:49:41.25071555+03:00"} {"attempt":1,"call_uuid":"B2B.160.5603385.1761148180.1479285524","level":"warning","message":"STT provider not registered; skipping","provi der":"google","timestamp":"2025-10-22T18:49:41.25077045+03:00"}

— Reply to this email directly, view it on GitHub https://github.com/loreste/siprec/issues/4#issuecomment-3433130312, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBAMDMMB2QF44PLD3Z7RD3Y6SPJAVCNFSM6AAAAACJZKABNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZTGEZTAMZRGI . You are receiving this because you commented.Message ID: @.***>

loreste avatar Oct 22 '25 16:10 loreste

solves the problem of sending 200 OK by setting the MTU in sipgo

sip.UDPMTUSize = 4096

But there is a problem when sending 200 Ok, the port is not taken into account. I have port 5090, while Contact uses 5060.

Contact: <sip:192.168.81.54:5060>;+sip.src

a72 avatar Oct 22 '25 17:10 a72

I will look at that

On Wed, Oct 22, 2025, 1:46 PM a72 @.***> wrote:

a72 left a comment (loreste/siprec#4) https://github.com/loreste/siprec/issues/4#issuecomment-3433502238

solves the problem of sending 200 OK by setting the MTU in sipgo

sip.UDPMTUSize = 4096

But there is a problem when sending 200 Ok, the port is not taken into account. I have port 5090, while Contact uses 5060.

Contact: sip:192.168.81.54:5060;+sip.src

— Reply to this email directly, view it on GitHub https://github.com/loreste/siprec/issues/4#issuecomment-3433502238, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBAMFRV524B2WAIPWEYML3Y67HLAVCNFSM6AAAAACJZKABNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZTGUYDEMRTHA . You are receiving this because you commented.Message ID: @.***>

loreste avatar Oct 22 '25 19:10 loreste

I made the changes, thanks for updating theMTU size.

On Wed, Oct 22, 2025 at 3:33 PM Lance Oreste @.***> wrote:

I will look at that

On Wed, Oct 22, 2025, 1:46 PM a72 @.***> wrote:

a72 left a comment (loreste/siprec#4) https://github.com/loreste/siprec/issues/4#issuecomment-3433502238

solves the problem of sending 200 OK by setting the MTU in sipgo

sip.UDPMTUSize = 4096

But there is a problem when sending 200 Ok, the port is not taken into account. I have port 5090, while Contact uses 5060.

Contact: sip:192.168.81.54:5060;+sip.src

— Reply to this email directly, view it on GitHub https://github.com/loreste/siprec/issues/4#issuecomment-3433502238, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBAMFRV524B2WAIPWEYML3Y67HLAVCNFSM6AAAAACJZKABNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZTGUYDEMRTHA . You are receiving this because you commented.Message ID: @.***>

loreste avatar Oct 22 '25 21:10 loreste