Traceback in calld when a SIP trunks register or deregister

Description

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

Zendesk Ticket IDs

2478,8716

Activity

Yann Christophe 
July 5, 2023 at 9:05 AM
(edited)

Hello i have found the same issue with a Stack on 23.01 so is it a regression or anything else ? You can see som traceback in the ticket Zendesk 8716 also i have started a discussion in Mattermost here

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

Done

Details

Priority

Assignee

Reporter

Approvers

François Blackburn

Fix versions

Sprint

Zendesk Ticket Count

Zendesk Support

2
Created September 28, 2020 at 12:08 PM
Updated September 9, 2024 at 6:04 PM
Resolved January 11, 2021 at 9:20 PM