I would suggest using Asterisk Call Files
Create the file name /tmp/example.call , for example:
Channel: SIP/peerdevice/1234 Application: Playback Data: silence/1&tt-weasels
And then copy this file and move it to the outgoing asterisk coil, for example:
cp /tmp/example.call /tmp/example.call.new mv /tmp/example.call.new /var/spool/asterisk/outgoing
You will notice that a new call will be created on the Asterisk CLI.
You can make another asterisk field by answering a call automatically by saying the answer to it in the dialplan, for example. If you have another SIP/peerdevice device and you type 1234 for my example, in your dialplan:
[somecontext] exten => 1234,1,Answer() same => n,Noop(Example call inbound) same => n,Playback(hello-world) same => n,Hangup()
And you can create several extensions to do what you like, change the behavior of the call.
source share