Doorbel / command line start call

I’m just sure if you can set a CID when using Originate from CLI. I think only when doing it via AMI.

you might well have the asterisk chan_console driver built and available and working as extension complete with callerid if based on Raspberry , it can use your microphone and either one of the audio output devices all defined in

/etc/asterisk/console.conf

you can run it on any available shell

rasterisk -x "console dial 3235551212"

for example

Thinking now. If all you want to do is generating a call. You can do it with callfiles, and with callfiles you can set a CID.

Thanks for helping me with another option.
I only have no idea where or what to do with a callfile but will check google right away what it is. Thanks

Found this example
http://the-asterisk-book.com/1.6/call-file.html
but it doesnt work…
i have the extension 2000
but is an extension the same as SIP/2000?

Depends if it is ChanSIP or PJSIP. Also, didn’t you use 5555 till now?

Try this:

Channel: local/5555@from-internal
Callerid: "John Doe" <100>
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: movie-setup
Extension: s

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files

1 Like

Cool! It works
So from-internal is still the script for what happens
Thanks for your help and quick replies!
I go on testing :wink:

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