Errata

Asterisk: The Definitive Guide

Errata for Asterisk: The Definitive Guide

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
???
Chapter 7, code block in the "Configuring trunks for origination" section

The code block lists the following:

[pstn-in]
exten => 4169671111,1,Dial(sets,100,1)
exten => 4167363636,1,Dial(sets,101,1)

[sets]
exten => 100,1,Dial(${UserA_DeskPhone})

Unless I'm mistaken, the Dial() application does not support dialing into a different context. I believe in the [pstn-in] section that you meant to use Goto()?

Jeff Shantz  Oct 24, 2020 
Other Digital Version Chapter 3. Installing Asterisk
Dependencies

Install instructions are wrong/obsolete

- This doesn't work because redirection happen before sudo:
sudo echo "[starfish]" >> /etc/ansible/hosts &&
sudo echo "localhost ansible_connection=local" >> /etc/ansible/hosts

- Ansible playbook does not work:
1) Indent under "- name: Install other dependencies" is wrong for "state: present"
2) MySQL-python package is not found

- Specific version of Python (python2 or python3) should be specified (or Ansible be installed more simply by sudo yum install ansible)

Christine VACHER  May 07, 2022 
ePub Page Initial Configuration, first Notes section
unknown

In an earlier section, the book says Asterisk can either be installed from a package manager (e.g., apt-get) or built from sources. In the Installation/Notes section, the book goes into great detail regarding SQL, but since I installed from apt-get, there is no SQL. Should this section be skipped, or is the Debian package incomplete and I should build from source instead?

Steve Matzura  Apr 05, 2023 
Printed Page 21
First paragraph of Hardware section

A small Oxford comma error, there is a comma missing between "BRI (EuroISDN)" and "SS7 (mostly T1 and E1)".

Jean-Sebastien Carle  Oct 24, 2020 
Printed Page 23
note 1

Note says (about the book itself):

"It's been released under a Creative Commons license, so if you have purchased a hard copy (and we thank you!) you can download a soft copy for searching and copying/pasting."

Where can I download a soft copy of the book? I cannot find a legal way to do this.

Note from the Author or Editor:
The location of the download was not clearly defined in the book, but it is currently at
https://cdn.oreillystatic.com/pdf/Asterisk_The_Definitive_Guide.pdf

I'm not sure how best to add this.

Jorge Montes  Jan 03, 2020 
PDF Page 30
The playbook

The installation process seems to be deprecated in several tools, so it's no impossible to follow the installation in the book. It makes it really hard to follow the examples. It would be really appreciated if the authors could take a look at the deprecated packages in dnf with regard to mysql, python and pip and push an updated installation script to the Git repository :)

Anonymous  Aug 06, 2021 
Printed, PDF Page 40
above the Raven picture

Dear O'Reilly team,
i got stuck at Chapter 3. With building the needed Tables at the asterisk Database.
With this command -> alembic -c ./config.ini upgrade head
And this error message -> ModuleNotFoundError: No module named 'MySQLdb'
If someone else bought this Book this year 2021 and is also a non coder - > here is what i did:
- created linux user pinstall
- worked as long as i got this confirmation
- python3 -m pip --version -> pip 21.1.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
- python3 -m pip install -U pip -> Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/local/lib/python3.6/site-packages (21.1.1)
- created this file at /contrib/ast-db-manger/__init__.py -> with this two lines
- import pymysql
- pymysql.install_as_MySQLdb()
- sudo yum install python3-devel mysql-devel
- pip install mysqlclient
- double checked with -> alembic history
- And did once more -> alembic -c ./config.ini upgrade head
- And the Tables got created.

The issue was all the time the connection between alembic and the DB
established through this entry in the config.ini
- sqlalchemy.url = mysql://asterisk:YouNeedAReallyGoodPasswordHereToo@localhost/asterisk

At this point i don't mention the issue with ansible -> this was another story.

But guys keep the phones ringing.

Bye for now from

HansPeter
Support Field Specialist
Switzerland

HansPeter Schlatter  May 16, 2021 
Printed Page 64
4th paragraph, last line

The line reads "The softphone is dead; long live the softphone.". Unless its a Monty Python joke I don't get, I think you meant: "The hardphone is dead; long live the softphone.".

Jean-Sebastien Carle  Oct 24, 2020