You are not logged in.

#1 2011-11-06 20:07:23

behzad
Member
Registered: 2011-11-06
Posts: 2

Asterisk 1.8.7. Where is "DIAL" command?

Hello,
I just installed asterisk from AUR and I can run the server correctly
without any problems.

# rc.d start asterisk [DONE]
# asterisk -rvvvvv

and I have a CLI.

Now...

I opened the book "Asterisk: The Definitive Guide" to play with my fresh
installation of Asterisk.

I realized that under Arch, every configuration file of Asterisk has a ".default" suffix.
There is no active config files after installation!!!  Why is that?

I simply renamed every "xxx.conf.default" to "xxx.conf" and followed the examples in the book.

In the Asterisk's CLI, most commands are unavailable.
For example, there is no "reload".
There is no "dial", there is no "console".

I'm wondering why on Arch, asterisk is like this?
I just want to start using asterisk based on the book and other online
tutorials. All Asterisk tutorials assume that once you've installed asterisk,
the "DIAL" command is available.

The wiki lacks enough information on this issue.
I searched the forum and did not find anything on this.

Please HELP.

Offline

#2 2011-11-06 20:13:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Asterisk 1.8.7. Where is "DIAL" command?

Post you question on the AUR page of the package you installed, maybe somebody will know how to help you.

Offline

#3 2011-11-06 22:25:09

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: Asterisk 1.8.7. Where is "DIAL" command?

The "console ..." commands come either from the chan_alsa or chan_oss asterisk module. If you don't have these commands, it's because none of these modules are loaded. There can be a few reasons why they are not loaded, the most probable reason being that the module might not be part of the AUR package.

As for the "reload" command, it's an alias for "module reload" in asterisk 1.8, and if you want the alias to work, you need to have the "res_clialiases" module loaded with a configuration file that define the reload alias, etc...

As for the "dial" command, again, it's an alias for "console dial".

One thing you can do if you don't like the AUR package is installing a Debian/Ubuntu server in a virtual machine and then using the packages that the asterisk developers offers: https://wiki.asterisk.org/wiki/display/ … k+Packages

Offline

#4 2011-11-07 14:23:31

behzad
Member
Registered: 2011-11-06
Posts: 2

Re: Asterisk 1.8.7. Where is "DIAL" command?

Hello hexanol,
Thanks for your prompt reply.

With chan_oss.so, DIAL and CONSOLE are available.
I tried to load this module manually.

arch*CLI> module load chan_oss.so
Loaded chan_oss.so
  == Parsing '/etc/asterisk/oss.conf':   == Found
  == Registered channel type 'Console' (OSS Console Channel Driver)
 Loaded chan_oss.so => (OSS Console Channel Driver)
arch*CLI> 

But with chan_alsa.so, it fails like this:

arch*CLI> module load chan_alsa.so
Unable to load module chan_alsa.so
Command 'module load chan_alsa.so' failed.
  == Parsing '/etc/asterisk/alsa.conf':   == Found
  == No sound card detected -- console channel will be unavailable
  == Turn off ALSA support by adding 'noload=chan_alsa.so' in /etc/asterisk/modules.conf
arch*CLI> 

By the way, I'm running asterisk as root, and alsamixer finds the sound card.
I can play wave files when using asterisk user.
# asterisk
$ aplay /home/behzad/alaram.wav
and I plays the file.

Do you know what is the problem?
Why asterisk is unable to detect the sound card from CLI.
Please let me know.

Last edited by behzad (2011-11-07 14:55:35)

Offline

#5 2011-11-07 22:16:12

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: Asterisk 1.8.7. Where is "DIAL" command?

No, I personally don't know why your chan_alsa doesn't work. That said I don't really have any experience with it. Maybe your /etc/asterisk/alsa.conf configuration file is missing something.

But if chan_oss works, then I guess it doesn't matter much if chan_oss doesn't work.

I personally use SIP softphones to do tests instead of using the chan_alsa/chan_oss.

Offline

Board footer

Powered by FluxBB