Asterisk issues on DD-WRT

Hi,

I am struggling to find any decent information about the issues I have with Asterisk.

I have a TP-Link Archer C8 Router. I have put in a 500MB USB drive and split it into partitions using ext2 format.If I give a label of Optware, it will automount to the /opt location.

I followed as many guides as I could find on DD-WRT. I installed Entware to /opt, and then installed Asterisk.

I then started to follow the guide Hello World - Asterisk Project - Asterisk Project Wiki

When it comes to starting Asterisk - astrisk -cvvvvv
I then get 2 errors.

I am an experienced IT specialist, however, I have very little knowledge of routing, less of Linux and even less of Asterisk.

The errors I have are:

No ethernet interface found for seeding global EID. You will have to set it manually.
Asterisk 18.7.1, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Unable to open Asterisk database ‘/opt/var/lib/asterisk/astdb.sqlite3’: unable to open database file
ASTdb initialization failed. ASTERISK EXITING!

Now, I have also taken a look, and found that the No Interface error, is looking for eth0. When I do an ifconfig to the router, I can see the eth0 interface, but the mac address it is tied to doesn’t appear in any of the dd-wrt pages, against WAN, LAN or Wireless.

I would really like to get this going.

I have seen a post on here recently that mentions Soho66 and IPv6. This is the same reason I want to go to asterisk, but, I have already decided I will leave Soho66 and get a sip trunk, and take my number with me.

Any help will be greatly appreciated. I have asked for help on DD-WRT and while they are trying to help, Asterisk is not something that they can help much with.

Which version of Asterisk are you running?

A couple of years ago I looked at the DD-WRT Asterisk packages and they were already outdated. I guess DD-WRT has evolved as well as Asterisk. That said, are you using DD-WRT as a router? In case you do, you have to consider quite a lot of things and there is nothing that comes out of the box.

Not sure how to get the version number, especially when I can’t get it running, but when it was installing, it looked like 18.1.xx

I used Entware to install it. opkg install asterisk

I am using the latest DD-WRT as well, and yes, as a router. I am doing it this way, as I don’t have a Linux server, but ideally need a fully functional VoIP package, such as Asterisk. I would like to create extensions.

I am telnetting into DD-WRT if it helps.

18.1 or 1.8.1? The latest version I saw was 13.something from 2017.

How can I tell?

I am pretty sure it said 18.1. I did think about that before, so when I reinstalled it, I watched the numbers.

In fact, the error message in my opening post… is is showing 18.7.1 (sorry, I thought it was 18.1.something)

You are right, it is 18.7.1, so age is not the problem. Searching for “global EID” returned this page:
https://issues.asterisk.org/jira/browse/ASTERISK-10094
But this problem was obviously solved about 15 years ago. If you do not load any DUNDI related modules, does the problem still exist? What is the output of “ip address” (or “ifconfig -a”)?

This is actually the problem and what prevented Asterisk from loading. It couldn’t open/create the astdb at the given path. Could be permissions, for example.

@EkFudrek

The output is quite large… but here it is…

br0       Link encap:Ethernet  HWaddr C4:6E:1F:54:AF:40
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::c66e:1fff:fe54:af40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3626738 errors:0 dropped:25 overruns:0 frame:0
          TX packets:6607427 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:796769472 (759.8 MiB)  TX bytes:6898999787 (6.4 GiB)

ctf0      Link encap:Ethernet  HWaddr 00:23:6A:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr C4:6E:1F:54:AF:3E
          inet6 addr: fe80::c66e:1fff:fe54:af3e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8509193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4684041 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2047533143 (1.9 GiB)  TX bytes:2762405234 (2.5 GiB)
          Interrupt:179 Base address:0x4000

eth1      Link encap:Ethernet  HWaddr C4:6E:1F:54:AF:40
          inet6 addr: fe80::c66e:1fff:fe54:af40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:1 overruns:0 frame:157862
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:163

eth2      Link encap:Ethernet  HWaddr C4:6E:1F:54:AF:4C
          inet6 addr: fe80::c66e:1fff:fe54:af4c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2993962 errors:0 dropped:1 overruns:0 frame:76186
          TX packets:4390010 errors:158 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:573714088 (547.1 MiB)  TX bytes:835832437 (797.1 MiB)
          Interrupt:169

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1452  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MULTICAST  MTU:65536  Metric:1
          RX packets:3691 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3691 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:354706 (346.3 KiB)  TX bytes:354706 (346.3 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

teql0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vlan1     Link encap:Ethernet  HWaddr C4:6E:1F:54:AF:3E
          inet6 addr: fe80::c66e:1fff:fe54:af3e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1357914 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2189473 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:372087157 (354.8 MiB)  TX bytes:2029285088 (1.8 GiB)

vlan2     Link encap:Ethernet  HWaddr C4:6E:1F:54:AF:3F
          inet addr:REMOVED BY ME  Bcast:86.16.243.255  Mask:255.255.252.0
          inet6 addr: fe80::c66e:1fff:fe54:af3f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7151279 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2494559 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5783211036 (5.3 GiB)  TX bytes:714383180 (681.2 MiB)

@jcolp

I don’t know how to achieve this.

I don’t appear to have a lib folder, so anything afterwards is not going to be there. (I have /opt/var)

Any guidance on how to achieve this would be appreciated.

Asterisk is expecting to be able to create the sqlite3 database at that location. If that location doesn’t exist, then it is unlikely it would be able to. Why it doesn’t exist could be due to the way it was installed. You could try creating the path yourself. You don’t need to create the database or anything, Asterisk does that automatically at startup if one does not exist.

Created the folders… ran asterisk -cvvvvv and got a LOT of text, and it is saying endpoint is now reachable.

It has now turned green on my phone for the extension I set up. I have just tried to run the Hello World by calling 100 in the Getting Started page (I mentioned at the start) and it says that playback failed. Probably because it can’t find a hello world.

However, at this moment in time… I am very happy with this progress.

Onwards and upwards. I will keep experimenting now.

Start with asterisk -c and then you see only errors, then you can increase the verbosity and fix things step by step.

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