Hi,
I have a problem with receiving inbound calls using asterisk on raspberry pi 4 ( apt package ).
Outbound calls work correctly.
When I am making inbound calls I only get short beeps in phone speaker and no warnings or errors in asterisk.
If it got to extensions - then it would be visible in logs, right?
As much as I understand - when asterisk receives this inbound call, it does nothing with it.
Standalone voip communicators like microsip work for both inbound and outbound calls when connecting to provider directly.
I get this log on inbound call with ‘pjsip set logger on’.
It is pretty long, I didn’t notice enough patterns to truncate it. Hopefully its not too annoying.
pjsip.conf:
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[provider]
type=auth
auth_type=userpass
password=PASSWORD
username=USERNAME
[provider]
type=registration
endpoint=provider
server_uri=sip:sip.provider
client_uri=sip:USERNAME@sip.provider
line=yes
contact_user=USERNAME
[provider]
type=aor
contact=sip:sip.provider
[provider]
type=endpoint
context=exit
disallow=all
allow=alaw,ulaw
aors=provider
auth=provider
from_user=USERNAME
direct_media=no
rtp_symmetric=yes
force_rport=yes
ice_support=yes
rewrite_contact=yes
send_rpid=yes
allow_unauthenticated_options=yes
outbound_auth=provider
;insecure=invite
;identify_by=username
[provider_identify]
type=identify
endpoint=provider
match=XXX.XX.XX.0:5060/24
[201]
type=endpoint
context=city
allow=alaw
allow=ulaw
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
auth=201-auth
aors=201-aor
[201-auth]
type=auth
auth_type=userpass
password=PASSWORD
username=201
[201-aor]
type=aor
max_contacts=1
extensions.conf
[default]
exten => _.,1,GoTo(incoming,${SIP_HEADER(To):5:11},1})
[exit]
include => city
include => internal
[city]
exten => 112,1,Dial(pjsip/${EXTEN}@provider)
exten => _9XX,1,Dial(pjsip/${EXTEN}@provider)
exten => _XXX.,1,NoOp()
exten => _XXX.,n,Gotoif($[!${REGEX(“
{3}$”${CALLERID(num)})}]?clip-redirection)
exten => _XXX.,n,Goto(clip-${CALLERID(num)})
exten => _XXX.,n(clip-201),Set(CALLERID(num)=REDACTED_PHONE_NUMBER)
exten => _XXX.,n,Goto(end-clip)
exten => _XXX.,n(clip-redirection),Set(CALLERID(num)=REDACTED_PHONE_NUMBER)
exten => _XXX.,n(end-clip),NoOp()
exten => _XXX.,n,Dial(pjsip/${EXTEN}@provider,60,tT)
[internal]
exten => _[2-8]XX,1,Dial(pjsip/account-${EXTEN},30,tTk)
exten => _[2-8]XX,n,Hangup()
[incoming]
exten => REDACTED_PHONE_NUMBER,1,GoTo(internal,201,1)