Traceback in calld when a SIP trunks register or deregister
Description
Zendesk Ticket IDs
Activity
Pascal Cadotte November 3, 2020 at 8:24 PM(edited)
The second traceback happens when a trunk with no endpoint exists on the system.
I created another ticket for this one
Pascal Cadotte November 3, 2020 at 8:24 PM
More info on this bug. At the moment, only the username in the auth_section of an endpoint is part of the bus events and tracked in calld. This makes sense for lines but not so much for trunks where the majority of them will not use the auth_section but will rely on the outbound_auth_section and/or the registration_outbound_auth_section.
Bus events need to include the username of other sections and calld needs to get it’s username from there for trunks.
Pascal Cadotte October 19, 2020 at 2:41 PM
2020-10-18 01:28:18,005 [22317] (ERROR) (xivo.pubsub): local variable 'techno' referenced before assignment
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/xivo/pubsub.py", line 39, in publish_one
callback(message)
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/bus.py", line 60, in on_peer_status
endpoint.registered = False
File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
next(self.gen)
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/services.py", line 107, in update
self._notify_fn(endpoint)
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/notifier.py", line 28, in endpoint_updated
trunk = self._confd_cache.get_trunk(endpoint.techno, endpoint.name)
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/services.py", line 169, in get_trunk
return self._get_endpoint_by_index(techno, name, self._trunks, index='name')
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/services.py", line 208, in _get_endpoint_by_index
self._initialize()
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/services.py", line 220, in _initialize
self._update_trunk_cache(trunks)
File "/usr/lib/python3/dist-packages/wazo_calld/plugins/endpoints/services.py", line 263, in _update_trunk_cache
'technology': techno,
UnboundLocalError: local variable 'techno' referenced before assignment
Details
Details
Priority
Assignee
Reporter
Approvers
Fix versions
Sprint
Zendesk Ticket Count
Zendesk Support
Linked Tickets2
Zendesk Support

In wazo-calld.log I can see the following error when a trunk fails to register
I still don't know if there's an effect that is noticeable for the user