Skip to content

Commit

Permalink
[FIX] Fixed flake8 error
Browse files Browse the repository at this point in the history
[FIX] Fixed black error
  • Loading branch information
tayler6000 committed Jan 18, 2024
1 parent aa186f1 commit ff806f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyVoIP/SIP/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ def gen_first_request(self, deregister=False) -> str:
port=self.bind_port,
header_parms=f";tag={tag}",
)
regRequest += self.__gen_from_to("To", self.user, self.server, method=method, port=self.port)
regRequest += self.__gen_from_to(
"To", self.user, self.server, method=method, port=self.port
)
regRequest += f"Call-ID: {self.gen_call_id()}\r\n"
regRequest += f"CSeq: {self.registerCounter.next()} REGISTER\r\n"
trans_mode = str(self.transport_mode)
Expand Down Expand Up @@ -1151,15 +1153,15 @@ def gen_message(
msg += self.__gen_via(self.server, branch)
msg += "Max-Forwards: 70\r\n"
method = "sips" if self.transport_mode is TransportMode.TLS else "sip"
regRequest += self.__gen_from_to(
msg += self.__gen_from_to(
"From",
self.user,
self.nat.get_host(self.server),
method=method,
port=self.bind_port,
header_parms=f";tag={self.gen_tag()}",
)
regRequest += self.__gen_from_to(
msg += self.__gen_from_to(
"To",
number,
self.server,
Expand Down

0 comments on commit ff806f2

Please sign in to comment.