Hello,
I am trying to play a recording with a dialplan. I am using a Yeastar TG100modem connected to Asterisk. When I make a call it just plays white noise then drops the call. I dont get any logs on Asterisk about the tha call. Why could this be?
Here is my asterisk configuration:
extensions.conf
[default]
exten => 100,1,Answer()
same => n,Playback(hello-world)
same => n,Hangup()
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
local_net=192.168.178.0/24
; external_* lines are usually used behind NAT, but fine if you’re exposing public IP or STUN
; The Auth object for user 100
[100_auth]
type=auth
auth_type=userpass
username=100
password=1234
realm=192.168.178.37
; The AOR to hold our contact for 100
[100]
type=aor
max_contacts=1
contact=sip:192.168.178.55:5060
; The Endpoint definition
[100]
type=endpoint
context=default
disallow=all
allow=ulaw
auth=100_auth
aors=100
direct_media=no
from_domain=192.168.178.37 ; force calls/regs to consider this domain
rewrite_contact=yes ; sometimes helps if NAT or domain mismatch
force_rport=yes
; Identify by IP or username (choose whichever you prefer)
; Option 1: Match by IP
[identify_100]
type=identify
endpoint=100
match=192.168.178.55
; or Option 2: if TG100 sends correct 'From:' username/domain,
; we could match by username/domain. But usually IP is easiest