Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is/feature/custom headers #111

Merged
merged 13 commits into from
Oct 25, 2023
Merged

Is/feature/custom headers #111

merged 13 commits into from
Oct 25, 2023

Conversation

isaacakakpo1
Copy link
Contributor

WEBRTC-4632 - Ticket title

Passing and Accepting Custom Headers

  • passing custom headers from SIP INVITE to RTC INVITE (session_id=dcc9f896-6821-11ee-9e86-02420a0d3a69):

  • passing custom headers from RTC INVITE to SIP INVITE (session_id=cc59cbec-6823-11ee-acca-02420a0d6669)
    it works.

  • passing custom headers from answer RTC message on SIP responses (session_id=3e734902-6823-11ee-895c-02420a0d3a69)

After changes

Custom headers are passed for INVITE and ANSWER Messages

TODO

Complete Tutorial Docs.

✋ Manual testing

All call functionality works

Post Custom Headers from INVITE Messages
Add Custom Headers to ANSWER Messages
Post Custom Headers from ANSWER Messages
Conflicts:
	TelnyxRTC.xcodeproj/project.pbxproj
	TelnyxRTC/Telnyx/TxClient.swift
	TelnyxRTC/Telnyx/WebRTC/Call.swift
	TelnyxWebRTCDemo/Extensions/ViewControllerVoIPExtension.swift
TelnyxRTC/Telnyx/TxClient.swift Show resolved Hide resolved
TelnyxRTC/Telnyx/TxClient.swift Outdated Show resolved Hide resolved
TelnyxRTC/Telnyx/Verto/AnswerMessage.swift Show resolved Hide resolved
@@ -213,14 +220,14 @@ public class Call {
It sets the incoming sdp as the remoteDecription.
sdp: Is the remote SDP to configure in the current RTCPeerConnection
*/
private func answered(sdp: String) {
private func answered(sdp: String,custumHeaders:[String:String] = [:]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a space

TelnyxRTC/Telnyx/WebRTC/Call.swift Outdated Show resolved Hide resolved
TelnyxRTC/Telnyx/WebRTC/Call.swift Show resolved Hide resolved

let currentRoute = AVAudioSession.sharedInstance().currentRoute

func isSppeakerEnabled() -> Bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misspelling: double p in speaker

TelnyxRTC/Telnyx/TxClient.swift Show resolved Hide resolved
@isaacakakpo1 isaacakakpo1 merged commit fdf4420 into main Oct 25, 2023
1 check passed
@isaacakakpo1 isaacakakpo1 deleted the IS/Feature/CustomHeaders branch May 16, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants