Skip to content

Commit

Permalink
and black strikes again...
Browse files Browse the repository at this point in the history
  • Loading branch information
key2peace committed Jan 16, 2024
1 parent 88394d4 commit 0b0d354
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pyVoIP/SIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,8 @@ def gen_sip_version_not_supported(self, request: SIPMessage) -> str:
+ f"{request.headers['From']['tag']}\r\n"
)
response += (
f"To: {request.headers['To']['raw']};tag=" + f"{self.gen_tag()}\r\n"
f"To: {request.headers['To']['raw']};tag="
+ f"{self.gen_tag()}\r\n"
)
response += f"Call-ID: {request.headers['Call-ID']}\r\n"
response += (
Expand Down Expand Up @@ -1278,7 +1279,8 @@ def gen_busy(self, request: SIPMessage) -> str:
+ f"{request.headers['From']['tag']}\r\n"
)
response += (
f"To: {request.headers['To']['raw']};tag=" + f"{self.gen_tag()}\r\n"
f"To: {request.headers['To']['raw']};tag="
+ f"{self.gen_tag()}\r\n"
)
response += f"Call-ID: {request.headers['Call-ID']}\r\n"
response += (
Expand Down Expand Up @@ -1311,7 +1313,8 @@ def gen_ok(self, request: SIPMessage) -> str:
+ f"{request.headers['From']['tag']}\r\n"
)
okResponse += (
f"To: {request.headers['To']['raw']};tag=" + f"{self.gen_tag()}\r\n"
f"To: {request.headers['To']['raw']};tag="
+ f"{self.gen_tag()}\r\n"
)
okResponse += f"Call-ID: {request.headers['Call-ID']}\r\n"
okResponse += (
Expand Down Expand Up @@ -1560,7 +1563,8 @@ def gen_ack(self, request: SIPMessage) -> str:
ackMessage += self._gen_response_via_header(request)
ackMessage += "Max-Forwards: 70\r\n"
ackMessage += (
f"To: {request.headers['To']['raw']};tag=" + f"{self.gen_tag()}\r\n"
f"To: {request.headers['To']['raw']};tag="
+ f"{self.gen_tag()}\r\n"
)
ackMessage += f"From: {request.headers['From']['raw']};tag={tag}\r\n"
ackMessage += f"Call-ID: {request.headers['Call-ID']}\r\n"
Expand Down

0 comments on commit 0b0d354

Please sign in to comment.