Errores #81
Error playing with buddies
| Status: | Resuelta | Start: | 07/20/2009 | |
|---|---|---|---|---|
| Priority: | Alta | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | YASS - core | |||
| Target version: | 0.5.1 |
Description
I was adding/removing budding and enabling/dissabling subscription for them while I saw this error:
Unhandled exception in thread started by <function _worker_thread_main at 0x265f6e0>
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/pjsua.py", line 2807, in _worker_thread_main
time.sleep(0.050)
File "/usr/lib/python2.5/site-packages/pjsua.py", line 2785, in _cb_on_buddy_state
_lib._cb_on_buddy_state(buddy_id)
File "/usr/lib/python2.5/site-packages/pjsua.py", line 2747, in _cb_on_buddy_state
buddy._cb.on_state()
File "/home/ibc/Proyectos/YASS/trunk/debian/yass/usr/lib/python2.5/site-packages/yass/core/callback/buddy_cb.py", line 33, in on_state
AttributeError: 'NoneType' object has no attribute 'name'
History
Updated by Iñaki Baz Castillo over 2 years ago
After this error occurs, YASS dones't authenticate anymore (for SUBSCRIBE, INVITE...) neither replies to Incoming NOTIFY and so. Most probably after this error it becomes completely unusable.
Updated by Saúl Ibarra Corretgé over 2 years ago
Same happened to me before, but I thought it was related to a bugfix... can you reproduce it?
Updated by Saúl Ibarra Corretgé over 2 years ago
rev 129 contains a sanity check to avoid that from happening. Please play a little with subscriptions (not too much xD) having ngrep running to see what happens.
Thanks!
Updated by Saúl Ibarra Corretgé over 2 years ago
- Status changed from Nueva to Resuelta
After some testing seems like rev 129 did the job :) I did the following tests against a Kamailio server:
- Addind and removing several existent and non existent buddies.
- Adding buddies when not registered.
Everything worked. If you still find a bug (hope not!) feel free to reopen this issue :)
Updated by Iñaki Baz Castillo over 2 years ago
Yes, I was also doing test by creating and removing buddies and the error doesn't happen anymore.
:)