FreePBX/Asterisk missing DID; how to force DID on trunk

If you get a SIP account from a provider which isn’t really a trunk it can be configured as a trunk in FreePBX but DID on incoming calls is set to “s” so it is impossible to get an inbound route working.

The trunk in this case will only have one DID so a workaround is to set the DID “hardcoded” on the trunk in order to get the inbound route working.

Edit extensions_custom.conf and add something like this, but replace “123456789” with the DID you wish to set:

[custom-123456789]
exten => s,1,Noop(Setting DID to 123456789)
exten => s,n,Goto(from-trunk,123456789,1)

Now edit the trunk and go to the pjsip tab and enter custom-123456789 (replacing “123456789” with your DID) in the Context field.

Now all incoming calls in this trunk will get your desired DID and your inbound route will be able to catch them by the DID.

FreePBX extension receives call from wrong queue

It turned out that the extension earlier had been a dynamic agent for the queue, and it was logged in as an active agent for the queue when the extension was removed from the queue. This caused calls in the queue being sent to the extension still.

Solution: Edit the Queue, add the extension as a dynamic agent, call *45 from the extension (“agent logged off”), dial *45 again (“agent logged in”) and finally dial *45 one more time (“agent logged off”). Now edit the Queue again and remove the extension from dynamic agents.

osTicket “Excessive errors processing emails for” reported by Mail Fetcher

The email account was set up as an IMAP account.

The reason turned out to be the fact that the Inbox of the account contained many emails (>18.000) so I just moved all emails from the Inbox to an Archive folder and the problem was resolved.

JA Simpli featured articles blog layout not working after upgrade from Joomla! 3 to 4 or 5

Using the template JA Simpli with a menu item displaying featured articles in a blog layout. I had set up a 3 column layout but after upgrade to Joomla! 4 and 5 the featured articles was displayed full width stacked on eachother.

Solution:

  • Rename the current menu item, espcially the alias field.
  • Create a new menu item of the type Featured articles and set it up exactly as the old one. Use the old alias.

The blog layout now displays correctly and the old menu item can be deleted.

Contact Form 7 and All in one WP security and firewall

If you unable to submit forms through Contact Form 7 while not logged in (i.e. test in incognito mode) and All in one WP security and firewall is used, make sure that the Disallow unauthorized REST requests is NOT enabled in AIOWP Security and Firewall. (It is mentioned in the yellow info box *hint* *hint*.)

The settings are found in WP Security -> Firewall -> WP REST API tab

I

How to do a SharePoint PnPonline connect with PowerShell 7

If you want to do a connection to SharePoint Online with a PowerShell script. You will need to make a connecting user and a certificate for logon. The legacy function with plain text user/password does not work anymore.

The PowerShell CMD-let SharePoint Online PnP has been beprecated and is replaced with PnP PowerShell. Do the following to confirm right installed CMD-let

To check if you have the right version of PowerShell. You will need at least PowerShell 7.3

1 $PSVersionTable.PSVersion

Get all installed SharePoint Online PnP PowerShell Modules

1 Get-module -ListAvailable *pnp*

If both or PnP Classic is installed

1 Uninstall-Module PnP.PowerShell -AllVersions -Confirm:$False

2 Uninstall-Module SharePointPnPPowerShellOnline -AllVersions -Confirm:$False

Some versions of PowerShell need to change the TLS to version 1.2 for uninstall and install to work

1 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Install the latest version of PnP.PowerShell. Choose install option Yes to All

1 Set-ExecutionPolicy RemoteSigned

2 Install-Module PnP.PowerShell

You have now installed the new Module

To make a connection to SharePoint Online you will need a global account to your Tenant and some information.

Make a folder for your certs at the local computer “c:\mycertificates”. Do not use spaces or local characters for the folder name. Register the account.

$result = Register-PnPEntraIDApp -ApplicationName “[MySharePointAppName]” -Tenant [TenantName].onmicrosoft.com -OutPath c:\mycertificates -Interactive
$result

Sign in with your Admin account and the script will return a client ID on success. Store the client ID for feature use. You will receive two certificates in your certificate folder.

To make a connection to SharePoint

Connect-PnPOnline [TenantName].sharepoint.com/sites/[folder] -ClientId [ClientIDNo] -Tenant [TenantName].onmicrosoft.com -CertificatePath “C:\mycertificates\[MySharePointAppName].pfx”

Doro PMR walkie talkie key lock

How to lock and unlock the key lock on a Doro PMR walkie talkie:

  • Press and hold the power button
  • Press UP button

This way the locked symbol is toggled.

Anytone AT-D878UV not displaying roaming channel – fixed!

When I got my first Anytone AT-D878UV in 2019 the roaming function used to display which channel it had roamed onto but later on, probably after a firmware upgrade this disappeared rendering the roaming function rather useless.

This continued even though I switched to the latest AT-D878UVII Plus. I recently asked a friend who also got the latest model if he had the same problem – which he hadn’t.

This made me suspect that this is an error that had occurred in my codeplug and continued to exist even though I’ve switching models (since the RDT-files are upward compatible I didn’t bother to make a new codeplug for the new radio, so I just opened the RDT-file from the old one).

So I exported everyting on my current codeplug to CSV-files, went into the CPS and made a new codeplug, imported the CSV files and walked through Optional settings to set up everyting as I wanted. Then wrote the new codeplug to the radio and guess what – now it displays the channel it is roaming on!

Acymailing Joomla frontend error 'Uncaught ReferenceError: acymModule is not defined' solved

Acymailing Joomla frontend module error ‘Uncaught ReferenceError: acymModule is not defined’ [Solution]

To solve this, I changed the settings of the module to -> Advanced -> Load javascript module = On the module itself

Anytone AT-D878UV / AT-D578UV wishlist

This is my wishlist for features / fixes for the Anytone AT-D878UV and AT-D587UV DMR radios. Comments, additions and suggestions are welcome, contact me on sm0rgm@helander.se. Maybe the Anytone people will read it 😉 I will submit it through my dealer as well, for them to forward to the Anytone developers.

  • In the analog APRS message, add the possibility to enter a code which will be replaced by the radio’s current frequency, mode etc so people who sees my APRS packet knows what frequency I am listening on, for example %QRV1 will be replaced by the frequency, mode etc receiver 1 is set to. And %QRV2 will be the corresponding for receiver 2 in my radio. For example, if receiver 1 is set to 434.650 MHz DMR, CC04, TS2 the analog APRS will become “434.650 CC01 TS2”. And if it is set to for example 145.600 MHz FM it would become “145.600 FM”.
  • Make APRS Voice Alert work. The problem is that CTCSS filtering is done before AX.25 APRS decoding. Turn them around, so AX.25 APRS decoding is done before CTCSS filtering. Doing that, Voice Alert would work well on the Anytone since you can select no CTCSS for the APRS transmission but select CTCSS, both TX and RX for the APRS monitoring channel, which also will be used when you press PTT to make a voice alert. (Today, if I set CTCSS RX filter to 136.5 Hz in europe or 100 Hz in US, no APRS will be received at all.)
  • Scanning. When scanning and the scan stops on a channel with traffic, it would be very nice if the radio stayed on that channel when pressing exit to stop scan. Now it goes back the the channel that was selected when scanning started and I have to manually go to the channel with traffic. Also a quick press on the PTT should stop the scanning on the current channel.
  • Roaming. Please bring back so the radio displays which channel it is roaming on. This was the case in early firmwares but disappeared, so now it just displays the channel that was selected when roaming was started. Which means that on a roaming channel, I have no idea which repeater I am using or even which band I am transmitting on. Useless! I know there was a problem if there were more than one channel in the roaming zone with the same freqency, CC etc, the first one in the list matching was displayed even if it was the wrong one. Still, this is better than now knowing at all.