Skip to content
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

Call.number returning None #83

Open
simaogomes opened this issue Apr 23, 2017 · 1 comment
Open

Call.number returning None #83

simaogomes opened this issue Apr 23, 2017 · 1 comment

Comments

@simaogomes
Copy link

Using the built-in example for receiving calls, when the call is received using the script incoming_call_demo.py, the number is shown as None...

@AUitto
Copy link

AUitto commented Aug 9, 2021

Although it seems like this project is somewhat abandoned, I'm facing the same issue. I'm guessing that the problem is the assumption the line always starts with RING and after that is the CLIP with the number. However, I've had several times two RINGs (which leads to none, as the second one is not the CLIP) and also several times without the RING at all, just the CLIP message.

I think the better way to handle these messages would be, instead of popping the values out of the original list, to iterate them and per message recognize the message type on line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants