Hi,
I’m running asterisk 13.9.1 with pjsip real-time. Our DDI provider sending call to IP Address. I have created “anonymous” endpoint to receive calls, everything working as normal.
Because of this reason
“res_pjsip_session.c: Call from ‘anonymous’ (UDP:209.126.120.9:5070) to extension ‘++00972597634083’ rejected because extension not found in context ‘not-real-context’.”
I just want to allow only IP from my DDI provider. I believe it can be done in ACL. How do I do this real-time or acl.conf?
You can use an identify section to match only that IP address, direct it to an appropriate endpoint, and then to a context. You wouldn’t need an anonymous endpoint then. An example configuration for an ITSP is on the wiki[1] and you can store this in the database too.
Thank you, its working as you explain but only one problems I have to use Configuration files rather than database because our DDI provider use 10 deferent IP so its not enough to store in database. Mach column only have 80 char