You are here

Asterisk16 on GL-iNet-AR

15 posts / 0 new
Last post
nc8q
nc8q's picture
Asterisk16 on GL-iNet-AR

I have asterisk16 and chan-sip loaded on my GL iNet AR300M16.
It is sip-trunked to my rasPBX.
I have 2 IP phones sip-registered.
flash=5328KB.

I tried to dial the other phone:
[Mar 24 19:53:55] ERROR[2304][C-00000001]: rtp_engine.c:489 ast_rtp_instance_new: No RTP engine was found. Do you have one loaded?

Next, I need to find out what a RTP is and how to configure it.

 73, Chuck

 

nc8q
nc8q's picture
Nightly Build 1079 released late in the day.
I was not expecting a Nighly Build to be released in the middle of the day.
I will load currently nightly (1079) and reinstall asterisk16, chan-sip, and chan-rtp.
I hope chan-rtp is the missing module.

Chuck

 
nc8q
nc8q's picture
Asterisk16 on GL-iNet-AR

Is now Asterisk16 on GL-iNet-AR750, Nightly 1094.
I have 2 extensions and 1 trunk.
Extensions can dial each other.
Working on trunk configuration so I can 'dial-out' to my 'main' local-AREDN-PBX.
flash=4664KB. So, there is quite a bit of RAM still available.
Memory=67308KB. So this should install on a 64 MB RAM device.
Last item will be to complete the install automation.

 

HB9EDI
Need help
Dear Chuck

wonder how you installed Asterisk. What architecture and from where did you take the packages ? directly from OpenWRT ? struggling here as i always get wrong version when trying to install (Mips24kc on Mikrotik Hap AC Lite) ... Wich version of OpwenWRT is matching AREDN Version.

thanks for any hints
73' Serge
N2MH
N2MH's picture
A few years ago ...

A few years ago I successfully installed asterisk and a full MeshPhone package on an AR750. It was not easy. Among other things, I found that there was insufficient storage in the AR750 to do the job. Along the way, I lit up the USB socket which had the additional advantage of lighting up the uSD slot. Thus, I was able to install a 64 GB memory chip and install all of asterisk on it. For some of the expected file locations in asterisk, I had to put soft links pointing to actual locations on the memory chip.

@HB9EDI: I got all the openwrt asterisk packages from a mixture of openwrt itself (in its packages section) and from the AREDN archives. Neither location had *all* the necessary packages. Very important: before you begin, make sure you understand what version of openwrt is in your node before getting individual asterisk modules from anywhere.

Let me dig out that node and see which asterisk modules I needed. That node is battery powered and I have to charge its battery first.

73, Mark, N2MH

 

N2MH
N2MH's picture
Notes and asterisk /etc/modules.conf file

I went into the node and retrieved some build notes that I made at the time. I also retrieved the asterisk modules.conf file. This file instructs asterisk to upload various support files needed for operation. This is a very minimal installation of asterisk, thus there's not a lot of modules needed for operation. Basically, there is support for sip phones, iax trunking, some MeshPhone utilities and the ability to pass actual voice traffic between pbx endpoints.

The contents of modules.conf should give a hint as to the name of the various openwrt modules needed.

Please note that this work was done in early 2022. I think this was before the lua era of node software. Since this is only guideline material, the exact modules needed will have to be determined as you go along.

Apparently, the Forum will only allow one file attachment per message. My notes to follow in a another post. Be sure to rename the files.

73, Mark, N2MH
 

N2MH
N2MH's picture
build notes

File 2 of 2 - build notes

nc8q
nc8q's picture
wonder how you installed Asterisk; Trying to remember

Hi, Serge:
My work was 15 months ago.
Luckily I did put some comments in my scripts and have them saved on this workstation.

What architecture and from where did you take the packages ?
https://downloads.openwrt.org/releases/19.07.8/packages/mips_24kc/

Current Stable AREDN is "OpenWRT 22.03.3".

See 2 attached files.

My problem was running out of memory.
I wanted to use sip, but some requisits forced me to install many 'pjsip*.ipk's.
'pjsip' and all its requisits consumed too much memory. I gave up.
If someone would help with cross-compiling asterisk16 with a 'use smalled code size' argument,
I would like to try again.
Next, I am going to read Mark's posts.

73, Chuck
 

File Attachment: 
nc8q
nc8q's picture
the missing files.txt
is attached.
 
File Attachment: 
HB9EDI
Thanks
also for your notes.
Will for sure let all know if i can come up with an easy solution

73' Serge
N2MH
N2MH's picture
asterisk modules.conf file

File 1 of 2 - modules.conf

HB9EDI
Thanks
Hi Mark

thanks for your notes. will dig into. Perhaps the why I'm looking into this.
Yealink phones seams to be pretty picky if you want to use  @phone.local.mesh for direct calling. Works fine as long they have a SIP Server connected and get an 200 OK back. If no Service is available they refuse to accept the call. Only entering the IP works.
So I'm looking to have a SIP server on the localnode for just have phones registering. This works perfectly with this tiny SIP Server running on my PC
https://github.com/BarGabriel/SipServer
As I'm not a programmer at all, I would like to start with an Asterisk server and check if my skills are enough to port the simple SIP Server

73' Serge 
HB9EDI
It Works
thank you both

i have an asterisk server running on the MikroTik RouterBOARD 952Ui-5ac2nD (hAP ac lite)
Phones can register now.

73' Serge 
nc8q
nc8q's picture
Which release, what IPKs?

Hi, Serge:

Which version of Asterisk?
Which IPKs did you install?

73, Chuck

 

HB9EDI
Asterisk 16 from 19.07.0
I got it so far that phones could register and direct calling is possible on Yealink phones that require a valid registration to accept calls.
Wanted to set up a conference room but it seams the RTP implementation in v16 is based on PJSIP that requires a lot of additional stuff. So i decided to test it rather with the latest RC (seems to be based on 22.03, these OpenWRT packes can be installed) and asterisk 18

73' Serge
Image Attachments: 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer