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
# Wait for the call to be answered
while call.state != CallState.ANSWERED:
print("Current call state:", call.state)
# Process audio once the call is answered
while call.state == CallState.ANSWERED:
# print("Current call state:", call.state)
audio_bytes = call.readAudio()
if audio_bytes:
call.writeAudio(audio_bytes)
else:
print("No audio data received.")
# Handle call end
if call.state == CallState.ENDED:
print("Call ended.")
except Exception as e:
print("An error occurred:", e)`
The text was updated successfully, but these errors were encountered:
Hi , Did you get any fix for this issue, i am using asterisk as sip server and i am facing the same call drop issue after 30 secs.
If would be great help if someone can reply to this issue @authors?
`import time
from pyVoIP.VoIP import VoIPPhone, CallState
import threading
phone = VoIPPhone(
server="192.168.88.5",
port=5060,
username="5001",
password="hello123817239",
myIP="192.168.88.10",
sipPort=53563
)
phone.start()
start_thread=False
try:
call = phone.call('5000')
print("Call initiated. Send mode:", call)
# while True:
# print(call.state)
except Exception as e:
print("An error occurred:", e)`
The text was updated successfully, but these errors were encountered: