Fix an issue where a service discovery request could crash Asterisk.