Auto Answer SIP Calls with Asterisk on Ubuntu 20.04

I am using Ubuntu 20.04 on a device and I want to set up Asterisk to automatically answer any incoming SIP call from another device on the same network. For example, I want to use Linphone with the command “call sip:@<ip_address>” without authentication, and have the device auto-answer the call. The call should only be able to be hung up by the caller.

I’ve updated the sip.conf and extensions.conf under /etc/asterisk, but I cannot get it to work. The device doesn’t pick up the call, and I don’t see any error logs, which makes it difficult to debug.

Does anyone know how to set this up with minimal changes after installing Asterisk via sudo apt install asterisk?

chan_sip is no longer supported, and has been deprecated for so long that most people here are not familiar with configuring it.

This is an impossible requirement for SIP. SIP BYEs cannot be rejected.

You haven’t provided your configuration files and logs, and haven’t described exactly what went wrong.

Auto answer on SIP phones is dangerous, because it allows the phone to be used as a bug, as such it normally needs to be enabled, locally, on the phone,before it can be used.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.