I attempt to install asterisk into Frtizbox 7360. I want to test that my configuration works and is able to perform a call. Therefore, how I can make a call firectly from asterisk via an ssh session tot he router that has installed it?
What I want to to type a copmmand perform a call in my cellphone and then after few seconds to hangup, so I can check that sip settings to my provider's sip server work.
First of all, please stick to OpenWrt related questions.
Assuming that you have configured correctly your provider's settings in sip.conf and a dialplan in extensions.conf, the commands you need are console dial and console hangup.
Connect to the asterisk CLI, using the command asterisk -rvvv, and execute: console dial phonenumber@contextname
Example:
asterisk*CLI> console dial 0888123456@outgoing
-- Executing [0888123456@outgoing:1] Dial("Console/dsp", "SIP/Vivacom/0888123456,90") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/Vivacom/0888123456
-- SIP/Vivacom-00000083 is making progress passing it to Console/dsp
asterisk*CLI> console hangup
== Spawn extension (outgoing, 0888123456, 1) exited non-zero on 'Console/dsp'
<< Hangup on console >>
asterisk*CLI>