domingo, 7 de junio de 2026

Grandstream setup

If you want to get a proper file for the voice prompt, to reduce the codec

ffmpeg -i welcome.wav -ar 8000 -ac 1 -acodec pcm_s16le fixed.wav

Then to cut the file it is good this one
ffmpeg -i fixed.wav -t 48 -c copy inbound-welcome.wav

 

 First edit analog trunks

 

 Configure Outbound Routes

In the Main Trunk of the outbound rule set the fxo-1 

 

Create a custom voice prompt in PBX Settings - Voice Prompt - Custom Prompt



Creates an IVR in Call Features

 


 Setup a inbound route

 

 

The config like this

 

 

 

martes, 12 de mayo de 2026

Open web browser from wsl

Add these lines to .bashrc

# Open URLs in the Windows default browser from WSL
export BROWSER=wslview


Run this once (needs your password):
sudo apt-get update && sudo apt-get install -y wslu


Then reload your shell:
source ~/.bashrc


Verify:
wslview https://example.com 
# should open in Windows Firefox 

echo $BROWSER 
# should print: wslview

How this fixes your AWS SSO flow
wslu provides wslview, which hands URLs to Windows' default browser via cmd.exe.

Setting BROWSER=wslview is what the AWS CLI (and most tools) check first when they want to open a URL.

xdg-open on Ubuntu/WSL also delegates to $BROWSER for http(s):// URLs, so your earlier xdg-open error will be gone too.

jueves, 16 de abril de 2026

yamlfmt on wsl

Steps to install yamlfmt and go in wsl

sudo apt update && sudo apt install -y golang
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc
source ~/.bashrc