Asterisk Realtime incoming not working

When using asterisk realtime to setup pjsip endpoints, the incoming calls stops working, but with same configuration as static, call are working. I am using pgsql database

with realtime
[Sep 9 05:52:50] NOTICE[1508436]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'INVITE' from '"09876543210" <sip:09876543210@x.x.x.x;user=phone>' failed for 'x.x.x.x:5061' (callid: 328DDE663C03051F00@ngn.ttl.in) - No matching endpoint found [Sep 9 05:52:51] NOTICE[1508436]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'INVITE' from '"09876543210" <sip:09876543210@x.x.x.x;user=phone>' failed for 'x.x.x.x:5061' (callid: 328DDE66B103051F00@ngn.ttl.in) - No matching endpoint found

[Sep 9 05:53:08] NOTICE[1508436]: res_pjsip/pjsip_distributor.c:673 log_failed_request: Request 'OPTIONS' from '<sip:x.x.x.x>' failed for 'x.x.x.x:5061' (callid: 723119812434432337@x.x.x.x) - No matching endpoint found

without realtime

Executing [00911234567890@external:1] NoOp("PJSIP/tatasip-00000000", "Enternal Dial Plan 00911234567890 From 09876543210") in new stack -- Executing [00911234567890@external:2] Dial("PJSIP/tatasip-00000000", "PJSIP/7003") in new stack

configuration is same for both the endpoints

static pjsip.conf

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
local_net = y.y.y.y/28
allow_reload=yes

[tatasip]
type = aor
contact = sip:00911234567890@x.x.x.x:5061

[tatasip]
type = identify
endpoint = tatasip
match = x.x.x.x:5061

[tatasip]
type = auth
auth_type = userpass
username = 00911234567890
password = 1234

[tatasip]
type = endpoint
transport = transport-udp
context = external
disallow = all
allow = ulaw
rtp_symmetric = yes
force_rport = yes
timers = no
direct_media = no
from_user = 00911234567890
from_domain = y.y.y.y
outbound_auth = tatasip
aors = tatasip

realtime sorcery.conf

[res_pjsip]
endpoint=realtime,ps_endpoints
auth=realtime,ps_auths
aor=realtime,ps_aors
transport=realtime,ps_transports
identify=realtime,ps_endpoint_id_ips

can you tell me what I am doing wrong?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.