How I can check that asterisk is able to perform phone calls?

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.

Is there a way to do that?

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


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 >>

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