Set up your own SIP address, place Audio/Video/SMS calls as sending mail via email address. e.g. sip:[email protected]
#Install and clean up default config files.
- apt install asterisk asterisk-opus (asterisk-opus is optional to enable opus codes)
- mv /etc/asterisk /etc/asterisk.sample #Do NOT use the default configs.
- cd /etc
- git clone https://github.com/basncy/my-sip-address.git asterisk
- chown -R asterisk:asterisk asterik #keep the owner same as default.
- systemctl restart asterisk
#Minimal settings
- on router, do port mapping. udp 6060 defined in pjsip.conf tcp 6060 defined in pjsip.conf udp 8000-9000 defined in rtp.conf
- edit pjsip.conf put your LAN into localnet put your public ip address or domain name into external_signaling_address
#(Option) Advanced settings.
- Keep your DDNS A recored updated.
- Add SRV DNS record if listen on none standard port: _sip._udp.sip.ddns.org 0 0 6060 sip.ddns.org
- Add SRV DNS record if listen on none standard port: _sip._tcp.sip.ddns.org 0 0 6060 sip.ddns.org
#Client.
- linphone is open source with full features, download from linphone.org
#DEBUG asterisk -rvvvv pjsip set logger host 192.168.0.1 rtp set debug on