From 4530a484db324d0417ecca1e851161546110c7a2 Mon Sep 17 00:00:00 2001 From: TJ Porter Date: Mon, 8 Jan 2024 17:59:34 -0600 Subject: [PATCH] [FIX] Fixed incorrect imports --- pyVoIP/SIP/__init__.py | 4 ---- pyVoIP/VoIP/phone.py | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pyVoIP/SIP/__init__.py b/pyVoIP/SIP/__init__.py index a039aa5..a1bcd7e 100644 --- a/pyVoIP/SIP/__init__.py +++ b/pyVoIP/SIP/__init__.py @@ -1,7 +1,3 @@ -from pyVoIP.SIP import error -from pyVoIP.SIP import client -from pyVoIP.SIP import message - __all__ = [ "error", "client", diff --git a/pyVoIP/VoIP/phone.py b/pyVoIP/VoIP/phone.py index fa23ddd..9526736 100644 --- a/pyVoIP/VoIP/phone.py +++ b/pyVoIP/VoIP/phone.py @@ -1,7 +1,7 @@ from pyVoIP import RTP from pyVoIP.credentials import CredentialsManager from pyVoIP.SIP.client import SIPClient -from pyVoIP.SIP.message import SIPMessage, SIPStatus +from pyVoIP.SIP.message import SIPMessage, SIPMessageType, SIPStatus from pyVoIP.sock.sock import VoIPConnection from pyVoIP.sock.transport import TransportMode from pyVoIP.types import KEY_PASSWORD @@ -105,7 +105,7 @@ def callback( self, conn: VoIPConnection, request: SIPMessage ) -> Optional[str]: # debug("Callback: "+request.summary()) - if request.type == pyVoIP.SIPMessageType.REQUEST: + if request.type == SIPMessageType.REQUEST: # debug("This is a message") if request.method == "INVITE": self._callback_MSG_Invite(conn, request)