Hey All,
Good Evening. I am prabhakaran from India. This is my first ever real SIP setup. We have bought 40 channels from the Indian Government’s telecom company called BSNL. The problem is they have given only the following text as an instructions for asterisk setup.
register =>usernamechangedhere@tn.stbi.ims.bsnl.in:5060/usernamechangedhere
[BSNL-sip-trunk]
;host=10.191.4.1
host=tn.stbi.ims.bsnl.in
username=usernamechangedhere
fromuser=usernamechangedhere
secret=PIN Shared to Customer mobile number to generate Password
type=peer
qualify=yes
insecure=port,invite
disallow=all
allow=alaw
dtmfmode=rfc2833
fromdomain=tn.stbi.ims.bsnl.in
outboundproxy=10.191.4.1(Server IP)
context=trunkinbound
sendrpid=yes
[root@inuchntele01-ind-rsa-ins-com asterisk]# cat /etc/sysconfig/network-scripts/route-p1p1
10.191.4.0/24 via 172.23.0.1 dev p1p1
[root@inuchntele01-ind-rsa-ins-com asterisk]#
ifconfig vpn_vpn 172.23.24.85/19
route add 10.191.4.0/24 gw 172.23.0.1
VPN IP: 172.23.24.85
STATIC_IP:staticipchangedhere
Host NAME
117.198.215.29 or 117.198.215.30
Virtual hub BSNL_VH4
PORT 443, USER Name:usernamechangedhere
Adding to the above, I am not using Oracle Virtual box or any other virtual tool which supports Bridged-Adapter. We have chose Docker Desktop to go with. I am able to set pjsip.conf and extensions.conf which either connects phone to phone or endpoint to endpoint (present in LAN Network), But I am struggling severely on making a pjsip.conf which receives calls from bsnl and passes to the local extensions and vice versa.
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
; Use your Windows Ethernet IPv4 address
external_signaling_address = mycomputerIP(windows)
external_media_address = mycomputerIP(windows)
local_net = 192.168.1.0/24
local_net = 172.23.0.0/16
local_net = 10.191.4.0/24
[BSNL-registration]
type = registration
transport = transport-udp
outbound_auth = BSNL-auth
server_uri = sip:tn.stbi.ims.bsnl.in
client_uri = sip:usernamechangedhere@tn.stbi.ims.bsnl.in
outbound_proxy = sip:10.191.4.1;lr
[BSNL-auth]
type = auth
auth_type = userpass
username = usernamechangedhere
password = passwordchangedhere
[BSNL-endpoint]
type = endpoint
context = trunkinbound
disallow = all
allow = alaw,ulaw,g729,gsm
auth = BSNL-auth
aors = BSNL-aor
from_domain = tn.stbi.ims.bsnl.in
from_user = usernamechangedhere
direct_media = no
; — Link incoming IP to the MAIN endpoint —
[BSNL-identify]
type = identify
endpoint = BSNL-endpoint ; Point directly to the main endpoint
match = 10.191.4.1 ; IP of the BSNL server
[BSNL-aor]
type = aor
contact = sip:10.191.4.1 ; You MUST have a valid destination here for outbound calls
; ==========================================
; LAN EXTENSIONS (003, 007, 009)
; ==========================================
; — EXTENSION 003 —
[003] ; This is your unique Endpoint
type = endpoint
context = local-extensions
transport = transport-udp
aors = 003_aor ; Points to the AOR section below
auth = auth_003
disallow = all
allow = alaw,ulaw,gsm
[auth_003] ; This is your unique Auth
type = auth
auth_type = userpass
username = 003
password = 003
[003_aor] ; This is your unique AOR
type = aor
max_contacts = 2
remove_existing = yes
where am I going wrong? Please correct me. Thanks.