Pipe audio sink and audio source to and from Asterisk/FreePBX

Hello,is it possible to pipe audio sink and audio source to Asterisk or a cellular phone module, from a IP camera with loadspeaker, or a Raspberry PI with picoreplayer ( squeezebox player light) ,HiFiBerry AMP+ and a USB microphone connected to a squeeze box server?

A hypothetical situation: Say that the alarm system goes off, then you can monitor the situation with cameras. You can also record the sound of the burglars talking while they rummage through your place. It should also be possible to talk to them and inform them that the police is on the way. ( I don’t recommend getting physically involved, keep a distance, monitor the situation and let the authorities handle it)

Is that possible?