Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 2.01 KB

README.md

File metadata and controls

48 lines (40 loc) · 2.01 KB

asterisk-hikari

Asterisk server on Docker that connects to Hikari Denwa via NTT East Home Gateway (e.g., PR-400NE).

Usage

Setup config

  • Edit the following config files
    • pjsip.conf
    • pjsip_wizard.conf: Your endpoints that you want to connect to this SIP server.
    • extensions.conf
    • iax.conf (If you want IAX connection)
  • Change following variables
    • __HOME_GATEWAY_IP__: IP address of NTT East Home Gateway (e.g., 192.168.1.1)
    • __SIP_CLIENT_ID__: ID of SIP terminal registered to HGW (e.g., 1). For username, you might have to use 4 digit id 0001 depending on your setting
    • __SIP_CLIENT_PASSWORD__: Password of SIP terminal registered to HGW
    • __YOUR_PASSWORD__ (in pjsip_wizard.conf and iax.conf): Password for new SIP terminal that you want to connect to this SIP server.
    • __YOUR_HIKARI_PHONE_NUMBER__: Your phone number for Hikari Denwa (0AB-J number)

Start Docker container

docker compose up -d

Connect from SIP/IAX clients

Useful commands

# Open bash inside container
$ docker exec -it asterisk-asterisk-1 bash

# Inside container
asterisk -vvvrc
> pjsip reload
> pjsip show endpoints
> pjsip show registrations

Notes

  • Setting network_mode: bridge in docker-compose.yml could cause RTP/IAX connectivity issues where the phone audio is not transmitted properly
  • Confirmed that phone calls can be made on SIP clients connected with Tailscale

Refrerences