Skip to content

Commit

Permalink
Fixes #55
Browse files Browse the repository at this point in the history
[FIX] Changed socket out to be a reference to socket in for RTPClient.
      Some systems were just replying to the port they were receiving RTP on
      instead of sending RTP to the port specified in the SDP of the INVITE or
      OK message. This was causing loss of audio and DTMF on those systems.
  • Loading branch information
tayler6000 committed Jun 2, 2023
1 parent 3161551 commit 99124e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyVoIP/RTP.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ def __init__(

def start(self) -> None:
self.sin = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.sout = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Some systems just reply to the port they receive from instead of
# listening to the SDP.
self.sout = self.sin
self.sin.bind((self.inIP, self.inPort))
self.sin.setblocking(False)

Expand Down

0 comments on commit 99124e8

Please sign in to comment.