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

Any way to obtain phone's call forwarding state? #34

Open
nalipaz opened this issue Nov 28, 2016 · 0 comments
Open

Any way to obtain phone's call forwarding state? #34

nalipaz opened this issue Nov 28, 2016 · 0 comments

Comments

@nalipaz
Copy link

nalipaz commented Nov 28, 2016

Currently there are methods for changing the call forwarding state. Phone.enable() and Phone.disable() set the call forwarding for configured phones. However, I was attempting to be able to simply obtain the current value. Truthfully it would more than likely be best that the value were actually set on the phone's dict when returned from the listed phones. Such as:

#!/usr/bin/env python
from googlevoice import Voice,Phone,util
import sys

voice = Voice()
voice.login()

for phone in voice.phones:
    print phone.call_forwarding

On a side note, I did see some properties that seems like they might be of use, but they did not get the state correctly. It seems that many of the phone properties are meant to represent a contact entry rather than a phone per se, being they are returned from voice.contacts['phones']

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

1 participant