Make a call using asterisk command prompt

Good day all, is there a way on free PBX to make a call or send a voice message from the command prompt. Could someone point me to a working example.

Thanks.

This will bridge a call between a local extension (xxx) and the echo test. You can change the dial values to suit.

channel originate local/xxx@from-internal extension *43@from-internal
1 Like

what if my extenion is 7001 and i want to call this number ( 1-876-556-1282 ) and play / send a voice note?

channel originate local/7001@from-internal extension 18765561282@from-internal
2 Likes

I do this in a cron to play a lunch/break buzzer.

0 10 * * 1-5 /usr/sbin/asterisk -rx "channel originate local/5197@from-internal application playback en/custom/buzzer-1_GJ9hRbVu"
4 Likes

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