Any Asterisk Trainer Here? (Paid)

On Tuesday 16 July 2024 at 18:41:39, shafty via Asterisk Community wrote:

My Research results Nothing what about yours? :wink:

Please - are you seriously trying to tell us that you cannot successfully use
a search engine to find documentation, books, tutorials or guides on how to get
started with Asterisk?

And, your initial comment in this entire thread was that you have been
“Struggling to get a grasp on Asterisk for the past 15 years but still
couldn’t”.

I seriously question how much time you have put in per week, per month or even
per year in order to try to get anywhere.

Let’s try this a totally different way:

  1. Please post in a more relevant section of this forum than “paid jobs”.

  2. Please explain what you have available to you in order to “try things out”:

  • what Operating System and version you are using
  • which version of Asterisk you have installed
  • whether you have any hardware SIP telephones
  • whether you have an account with any external SIP provider
  1. Please give us some idea of your level of comfort / experience with things
    like:
  • network routing
  • what NAT is
  • how NAT works
  • how to create / edit text files
  • how to start / stop / check status of processes on your system
  • what “client / server” means
  • how HTTP requests work between browsers and web servers

Note that it doesn’t matter if your answers to (hopefully only some of) these
are “I have no idea” - it’s just useful for us to know what your background
starting point is. I would assume, though, that if you’ve been trying to get
the hang of Asterisk for 15 years now, you’re adequately comfortable with many
of the things on that list. If not, maybe it would help to tell us what else
you have been doing (with computers) in the past 15 years.

  1. Please outline the simplest example you can think of to explain what you
    would like to be able to do first with Asterisk - what are you actually trying
    to achieve (at this stage, anyway).

The above information might give us some meaningful starting point for trying
to help you, but all I’ve seen in the discussion thread so far is “I can’t do
this myself, please will someone else do it for me?” and that’s really not the
way this forum works.

Plenty of people here are happy to help people who have specific problems with
Asterisk and can show that they’ve made a reasonable attempt to solve them
themselves, or who are trying to understand something technical which may not
be sufficiently documented, but simply hand-holding someone who says “I know
nothing and I even need someone to point me to where I can find a guide to how
to work with Asterisk” is not the way things work here.

So, tell us where you’re starting from and what you’re currently trying to
achieve and you may get a more helpful response.

I can’t guarantee it, because we’re all volunteers here, putting in our own
time to help others (in many cases because we have received similar help from
others in the past), but the more information you give, and the more you show
that you’ve made some effort yourself, the more likely it is that someone else
will be inclined to help out.

Antony.


A committee is a group of people who keep minutes and waste hours.

  • Milton Berle

                                                Please reply to the list;
                                                      please *don't* CC me.
    

23:06 Here. Tomorrow Morning I will explain everything.

Assuming this list is authoritative, I’d say CentOS is pretty poverty-stricken in the packages it supports.

You could either install something like PyMySQL from PyPi or source, or you could switch to a richer distro like Debian or a derivative.

Hi Antony. Good Morning. Thanks for your reply. I am a Novice in Asterisk Programming but have 15 years of experience in automating Ms Office tools using VBA. I am VBA Developer basically. We do automate Excel and Word and other office tools. I clearly know what is computer and how it works and all. But I don’t posses a good amount of Knowledge networking, Hardware and other things. But learning to program an IVR is a dream project of mine. Yes. I have been trying it for more than15 years but not entirely consistent on Asterisk. Very recently only I have known this book. But the from the starting itself its daunting to achieve what the author has communicated. Either one thing or the other is not perfectly getting installed as the author intended us to… Still confused. Please Help.

How good is your Linux skills?

Beginner

what you need ?

Hello Shafty. From my own experience learning Asterisk (about 20 years ago) I would say sort of a beginner’s to medium Linux is great to have before installing Asterisk. Particularly important is some skill in installing the pre-requisite libraries (mysql, etc) since they are highly dependent on the Linux flavor you will be using. (Centos is limited in my opinion) Actually I notice most of your issues in installing Asterisk come at installing those libraries, which is the reason why it would not be covered in the Asterisk book, since it is outside its scope. It is also the reason why at your level you should rely more in other Linux sources other than the Asterisk book. Look at it this way: Asterisk is a great reason for you to increase your Linux skills, and that’s a good thing.

$ sudo chown asterisk:asterisk /etc/asterisk ; sudo chmod 664 /etc/asterisk
$ sudo -u asterisk vim /etc/asterisk/modules.conf

I am getting “Permission Denied” for the file to edit. What to do? I have followed the book exactly so far…

Learn to use the ls command to look at file/directory ownerships and permissions. That should give you a better idea of what is going on. Blindly typing cryptic sequences of commands by rote is not a good way to learn Linux.

Showing
Owner: asterisk [1001]
Group: asterisk [1001]
with an octal of 0664

But when I tried to run the following command to create a file:

sudo -u asterisk vim /etc/asterisk/modules.conf

I am getting “Permission Denied”
What to do? Where it went wrong. Please explain if possible. Thanks.

These are really basic Linux stuff and you will struggle to get anyone here to hand hold you on Linux. Did you successfully install Asterisk yet? The /etc/asterisk directory is available only after a successful install of asterisk.

What’s the output of : ls -l /etc/asterisk?

On Thursday 18 July 2024 at 12:31:38, airsay via Asterisk Community wrote:

These are really basic Linux stuff and you will struggle to get anyone here
to hand hold you on Linux.

Agreed - this is an Asterisk forum / list, and it seems to me like you need to
get some basic familiarity with working on a Linux system first, before getting
puzzled by more complex things such as building an IVR.

What’s the output of : ls -l /etc/asterisk?

I would start with the output of “ls -ld /etc/asterisk”.

Antony.


René Descartes walks in to a bar.
The barman asks him “Do you want a drink?”
Descartes says “I think not,” and disappears.

                                               Please reply to the list;
                                                     please *don't* CC me.
  1. As the author instructs, I chose not to create sample configuration files.
  2. ps -ef | grep asterisk is showing the below output:
    astmin 1459 874 0 16:17 tty1 00:00:00 grep --color=auto asterisk (in orange color)
  3. ls -ld /etc/asterisk is showing:
    drw-rw-r–. 2 asterisk 6 jul 18 16:13 /etc/asterisk (in blue color)

selinux is set to Permissive

On Thursday 18 July 2024 at 13:10:49, shafty via Asterisk Community wrote:

ps -ef | grep asterisk is showing the below output:
astmin 1459 874 0 16:17 tty1 00:00:00 grep --color=auto asterisk

What is this user astmin?

At least the command output shows that asterisk is not running.

Which distribution and version of Linux are you working on?

Which version of Asterisk have you installed?

Please can you point us to the instructions you followed to install it?

Antony.


Police have found a cartoonist dead in his house. They say that details are
currently sketchy.

                                               Please reply to the list;
                                                     please *don't* CC me.

The following are from the book in the Asterisk installation chapter:
Download and Prerequisites
Log out of the system, and log back in as user astmin.
Type the following commands from the shell in order to download the Asterisk
source code:

$ mkdir ~/src
$ cd ~/src
$ wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
$ tar zxvf asterisk-20-current.tar.gz
$ cd asterisk-20.<TAB> # tab should auto-complete (unless it has more than one match)

We can now run a few prerequisites that the Asterisk team has defined, and also have
the environment checked:

$ cd contrib/scripts (or cd ~/src/asterisk-20.<TAB>/contrib/scripts
$ sudo ./install_prereq install # asterisk has a few prerequisites that this simplifies
$ cd ../..
$ ./configure --with-jansson-bundled

Asterisk is now ready to compile and install, but there are a few tweaks worth making
to the configuration before compilation.
Compiling and Installing
$ make menuselect
You will see a menu that presents various options you can select for the compiler. Use
the arrow and Tab keys to move around, and the Enter key to select/deselect. For the
most part, the defaults should be fine, but we want to make a few tweaks to the sound
files in order to ensure we have all the sounds we want, in the best format.
Under Codec Translators (— External —):
• Select [] codec_opus
• Select [
] codec_silk
• Select [] codec_siren7
• Select [
] codec_siren14
• Select [] codec_g729a
36 | Chapter 3: Installing Asterisk
Under Core Sound Packages:
• Deselect [
] CORE-SOUNDS-EN-GSM
• Select [] CORE-SOUNDS-EN-WAV
• Select [
] CORE-SOUNDS-EN-G722
Under Extras Sound Packages:
• Select [] EXTRA-SOUNDS-EN-WAV
• Select [
] EXTRA-SOUNDS-EN-G722
Save and Exit.
Three more commands and Asterisk is installed:

$ make # this will take several minutes to complete
# (depending on the speed of your system)
$ sudo make install # you must run this with escalated privileges
$ sudo make config # this too

When the make config command has completed, it will suggest
some commands to install the sample configuration files. For the
purposes of this book, you do not want to do this. We will be building
the necessary files by hand, so the sample files will only serve to
disrupt and confuse that process. Having said that, the sample files
are useful, and we will mention them throughout this book, since
they are excellent reference material
Reboot the system.
Once the boot is complete, log back in as the astmin user, and temporarily set SELinux
to Permissive (it will revert to Enforcing after each boot, so until we’ve sorted
out the SELinux portion of the install, this has to happen on every boot):

$ sudo setenforce Permissive
$ sudo sestatus

This should show Current mode: permissive
Verify that Asterisk is running with the following command:
$ ps -ef | grep asterisk
You want to see the /user/sbin/asterisk daemon running (currently as user root,
but we’ll fix that shortly).
Asterisk is now installed and is running; however, there are a few configuration settings
we’ll need to make before the system is in any way useful.
Asterisk Installation | 37
Initial Configuration
Asterisk stores its configuration files in the /etc/asterisk folder by default. The Asterisk
process itself doesn’t need any configuration files in order to run; however, it will
not be usable yet, since none of the features it provides have been specified. We’re
going to handle a few of the initial configuration tasks now.
The modules.conf file gives you fine-grained control over what modules Asterisk will
(and will not) load. It’s usually not necessary to explicitly define each module in this
file, but you could if you wanted to. We’re going to create a very simple file like this:

$ sudo chown asterisk:asterisk /etc/asterisk ; sudo chmod 664 /etc/asterisk
$ sudo -u asterisk vim /etc/asterisk/modules.conf
[modules]
autoload=yes
preload=res_odbc.so
preload=res_config_odbc.so

The original version where the author installs is asterisk 16 but I altered the command a bit to install Asterisk 20.8.1

On Thursday 18 July 2024 at 13:38:57, shafty via Asterisk Community wrote:

Which distribution and version of Linux are you working on?
centos 9

Which version of Asterisk have you installed?
20.8.1

Okay, that’s useful information.

Please can you point us to the instructions you followed to install it?

Log out of the system, and log back in as user astmin.

This is something I’m not familiar with, but the instructions appear to build
Asterisk and then install it using root privileges as usual. I don’t see that
the astmin user is later used for any purpose once Asterisk is running.

Verify that Asterisk is running with the following command:
$ ps -ef | grep asterisk
You want to see the /user/sbin/asterisk daemon running (currently as user
root, but we’ll fix that shortly).

“Asterisk is now installed and is running;”

Well, in your case it is not, so I would hope that there is some step in the
instructions you followed to get to this point which did not work correctly.

$ sudo chown asterisk:asterisk /etc/asterisk

That command will change the directory ownership to asterisk:asterisk but it
will not affect any files within that directory.

$ sudo chmod 664 /etc/asterisk
$ sudo -u asterisk vim /etc/asterisk/modules.conf

What do you see from “ls -l /etc/asterisk/modules.conf”?

Antony.


This sentence contains exacly three erors.

                                               Please reply to the list;
                                                     please *don't* CC me.

ls: cannot access ‘/etc/asterisk/modules.conf’ : Permission denied

On Thursday 18 July 2024 at 14:22:44, shafty via Asterisk Community wrote:

ls: cannot access ‘/etc/asterisk/modules.conf’ : Permission denied

I assume you are currently this “astmin” user…

Try “sudo ls -l /etc/asterisk/modules.conf”

Antony.


Normal people think “If it ain’t broke, don’t fix it”.
Engineers think “If it ain’t broke, it doesn’t have enough features yet”.

                                               Please reply to the list;
                                                     please *don't* CC me.