How to dial from console in asterisk 13


#1

How to dial from console in asterisk 13 like we use to do in asterisk 11

console dial 123


#2

Should be the same, did you compiled the channel?


#3

I am working on pjsip when I run the command module reload chan*

I only found chan_iax.so, so i guess this is the problem so should I have chan_pjsip.so? right


#4

Sorry actually reload i guess does not support showing pjsip

but when I ran the below command it shows
localhost*CLI> module load chan_pjsip.so
Unable to load module chan_pjsip.so
Command 'module load chan_pjsip.so ’ failed.
[Sep 14 00:52:07] WARNING[7283]: loader.c:1077 load_resource: Module ‘chan_pjsip.so’ already exists.

so any guess what can be the issue?


#5

Now I’m confused, you want to load PJSIP or Console channel? It are different, if you want to use console dial be sure that you have compiled and loaded chan_console.


#6

Sorry I thought console dial works only if chan_pjsip loaded.

I have 2 Asterisk box one is having asterisk 11.4 in which chan_console is not loaded still console dial is working fine but
on the other hand I have asterisk box with 13.13 same chan_console showing XXX so it means no chan_channel compiled and loaded and no console dial is working in cli

Why it is so? can you please suggest if am missing out out something


#7

You need to install the dependency for chan_console, it is shown in the bottom left corner when you highlight the channel. Or you can install all the dependencies with the install_prereq script located in the contrib folder inside the sources.


#8

I have installed the dependencies with the
./install_prereq install

Usage: ./install_prereq install Really install.

Status::
Complete!
#############################################
## install completed successfully
#############################################

Still no LUCK!


#9

And did you ran the configure script, compile again, restart asterisk and load the channel??


#10

Thanks @navaismo I have configured and enabled chan_console then loaded but why it is working in 11.4 if chan_console is disabled in menuselect.

Anyways Thanks Once Again…


#11

No idea, maybe was a module from the previous version.


#12

Yeah may be…Great Thanks :slight_smile:


#13

Hi @navaismo,

One strange thing is happening that every time I restarts my server I have to load the chan_console, is it the way it works in new version?


#14

Edit your modules.conf and check if by the directive noload is used by that channel, if not just add the load directive.


#15

Ok I did preload so any difference in load and preload?


#16

The sample doc says:

; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using ‘preload’. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those configuration
; files are initialized.


#17

preload
Indicates that a module should be loaded at the beginning of the module load order. This directive is much less relevant than it used to be; modules now have a load priority built into them that solves the problems that this directive was previously used to solved

load
Defines a module that should be loaded. This directive is only relevant if autoload is set to no.


#18

This is how you should dial console dial 101@contextname If you dont specify the context name it will look up for the extension on the default context