Skip to content

Commit e81a768

Browse files
DEBUG COMMIT
1 parent 89893fb commit e81a768

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Monal/Classes/MLCall.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ -(void) offerSDP
931931
DDLogDebug(@"WebRTC reported local SDP '%@', sending to '%@': %@", [RTCSessionDescription stringForType:sdp.type], self.fullRemoteJid, sdp.sdp);
932932

933933
NSArray<MLXMLNode*>* children = [HelperTools sdp2xml:sdp.sdp withInitiator:YES];
934-
if(children.count == 0)
934+
if(children == nil || children.count == 0)
935935
{
936936
DDLogError(@"Could not serialize local SDP to XML!");
937937
[self handleEndCallActionWithReason:MLCallFinishReasonError];

rust/sdp-to-jingle/src/xep_0167.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ impl JingleRtpSessionsPayloadType {
328328
pub fn to_sdp_fmtp(&self) -> Result<Option<SdpAttributeFmtp>, SdpParserInternalError> {
329329
// don't return any SdpAttributeFmtp if no attributes are present in xml
330330
// this avoids returning default values for everything, which results in bogus sdp
331+
eprintln!("to_sdp_fmtp parameters: {}", self.parameters);
331332
if self.parameter.is_empty() {
332333
return Ok(None);
333334
}
@@ -398,6 +399,7 @@ impl JingleRtpSessionsPayloadType {
398399
},
399400
};
400401
retval.parameters.unknown_tokens = self.get_fmtp_unknown_tokens_vec(&known_param_names);
402+
eprintln!("to_sdp_fmtp unknown_tokens: {}", retval.parameters.unknown_tokens);
401403
Ok(Some(retval))
402404
}
403405

0 commit comments

Comments
 (0)