-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every second call is waiting for server response #13
Comments
While I was using an older version for quite a while without issues, thanky you very much for the nice code! In my case, the log for a successful call looks like this: While every second call return this log: It seems that the "IP/2.0 200 OK" is not read from the buffer after cancelling the call causing the timeout every second call. However, after some trying, I could not really locate the error in the code and switched back to the old version. By the way, I am using Python 3.10 under Raspbian. Cheers |
Sorry for the late response. I guess that this commit is the culprit: I had to make that change because I suddenly had issues with packet fragmentation in my network. I've reverted this commit in the https://github.com/astoeckel/femtosip/tree/timeout_experiment Could you see whether the problem exists there as well? |
Thanks for the response! But I played a bit with the code to try to figure things out: The problem seems to be caused by the readout of the Sip Code 183 INFO:femtosip:response: SIP/2.0 183 Session Progress) However, in some cases, the return is not read correctly resulting, e.g., in such a result: ERROR:femtosip:Received invalid response code Even though the call was initiated properly, it is not cancelled due to the timeout handling. However, to try and solve the underlying issue, I stored some more information in the logfile, i.e., the actual read back code, protocol, message, and body. If read correctly, the result is: Code: 183 Protocol: SIP/2.0 Message: Session Progress Body: v=0 In the error cases, the results slightly vary, but basically the code, protocol, and message somehow contain information on the Fritzbox software version (7.57 from Sep. 2023 in my case): Code:(Sep Protocol: 113.07.57 Message: 1 2023) Body: v=0 I am happy for any hints on what could possibly cause this issue and how to solve it. Best regards, |
femtosip/femtosip.py
Line 617 in 8d8a3a2
Something must be wrong with this calculation because every second call the result is over 1.0 and the call was not triggered.
In an old version it work fine.
The text was updated successfully, but these errors were encountered: