You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-12-17 15:06:31,354 - PySIP.utils.logger - INFO - Detecting connection type (UDP/TCP/TLS). This might take some time...
2024-12-17 15:07:35,159 - PySIP.utils.logger - INFO - Connection type detected: UDP
2024-12-17 15:07:35,787 - PySIP.utils.logger - INFO - Sip Account: 1776008 registered to the server.
2024-12-17 15:07:36,416 - PySIP.utils.logger - INFO - CallHandler has been initialized..
2024-12-17 15:07:38,926 - PySIP.utils.logger - CRITICAL - No remote session info defined
2024-12-17 15:07:38,926 - PySIP.utils.logger - INFO - The call has ben stopped
2024-12-17 15:07:38,927 - PySIP.utils.logger - INFO - Call hanged up due to: Normal Stop
2024-12-17 15:07:48,126 - PySIP.utils.logger - WARNING - The call was already TERMINATED. stop call invoked more than once.
This is my code:
importasyncioimporttimefromPySIP.sip_accountimportSipAccountfromPySIP.sip_callimportSipCall# Initialize SIP account with credentials from .env fileaccount=SipAccount(
"username",
"passwrod",
"host:port"
)
@account.on_incoming_callasyncdefhandle_incoming_call(call: SipCall):
awaitcall.accept()
print("call ....")
awaitcall.call_handler.say("We have received your call successfully")
time.sleep(5)
awaitcall.call_handler.hangup()
asyncdefmain():
# Register the SIP accountawaitaccount.register()
# Make a call to a test number (e.g., '111')call=account.make_call("6000")
call_task=asyncio.create_task(call.start())
# Wait for the call to complete, then unregisterawaitcall_taskawaitaccount.unregister()
if__name__=="__main__":
asyncio.run(main())
The handle_incoming-call method was not triggered
The text was updated successfully, but these errors were encountered:
2024-12-17 15:06:31,354 - PySIP.utils.logger - INFO - Detecting connection type (UDP/TCP/TLS). This might take some time...
2024-12-17 15:07:35,159 - PySIP.utils.logger - INFO - Connection type detected: UDP
2024-12-17 15:07:35,787 - PySIP.utils.logger - INFO - Sip Account: 1776008 registered to the server.
2024-12-17 15:07:36,416 - PySIP.utils.logger - INFO - CallHandler has been initialized..
2024-12-17 15:07:38,926 - PySIP.utils.logger - CRITICAL - No remote session info defined
2024-12-17 15:07:38,926 - PySIP.utils.logger - INFO - The call has ben stopped
2024-12-17 15:07:38,927 - PySIP.utils.logger - INFO - Call hanged up due to: Normal Stop
2024-12-17 15:07:48,126 - PySIP.utils.logger - WARNING - The call was already TERMINATED. stop call invoked more than once.
This is my code:
The handle_incoming-call method was not triggered
The text was updated successfully, but these errors were encountered: