|
From: | Leland Green |
Subject: | Re: [Linphone-developers] Linphone Python: Callbacks list |
Date: | Thu, 7 Apr 2016 17:21:14 -0500 |
callbacks = {
'call_state_changed': self.call_state_changed,
}
The method call_state_changed(), within the class, gets called when the call state is changed. I believe there are other events, but I'm not sure about that. Look at that method to see how I check for different call states.
Yes, the C callback is the same as the Python callback, at least in concept. Only the mechanics are different.
Does that help?
Leland...
Hello Leland, thank you for you quick answer and your words about my English. I reviewed your project and is amazing, good work!.
Back to the callbacks :D..
1. Just to clarify maybe I did not explain well. The two webpages contains Python code (check again):
-https://pythonhosted.org/linphone/getting_started.html
-https://wiki.linphone.org/wiki/index.php/Raspberrypi:start
The first one (pythonhosted) contains the Python API's Documentation. And the second contains a brief documentation and one example about the Linphone Python for the Raspberry Pi. I know that the second site talks mainly of the C/C++ reference (Libliphone), but have too this little page for Raspberry Pi programmers, even in this page they puts a link to your webcam project.
2. I have some (and brief) previous Python/C/C++ programing experience. Correct me if I'm wrong: a callback is Python code that is called by Linphone API (in this case) when something happens. For example, if the registration state is changed then raise an event called registration_state_changed (I think), or like in the example, if call state is changed then raise call_state_changed event. So my question is: where is the Python callbacks list? (if exists). Something like Libliphone Api Documentation:
http://www.linphone.org/docs/liblinphone/group__initializing.html#ga68ced292f486a95a34aa45e416b34572
Or is the same?
Thanks a lot! and sorry for the delay, -I reviewed a couple of times my grammar-.
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
[Prev in Thread] | Current Thread | [Next in Thread] |