Hi, I’m new to Asterisk and I’m working on a complex project where I’m finding some difficulties.
I have thought a solution but I don’t know if it’s an appropiate one and I can’t get it working, so I’m going to explain my use case briefly:
I need to receive SIP calls from multiple devices and be able to control (hold, redirect, etc) those calls programatically. My idea was to use Asterisk and develop an ARI app to control the calls.
On the asterisk app I’m going to control whether the calls are vaild or not, using the SIP direction and some other headers that I’ll check on a custom DB.
Now, as the accepted devices are already available on my custom database, I don’t want to manually set up an endpoint for each different device that could call me (that would be an insane work because there could be thousands). The only way I have found to avoid this is to set up an anonymous endpoint on pjsip.conf as explained here . However, even if I set up that endpoint, I can’t register on the server with an account whose endpoint is not created, and I get multiple Endpoint ‘anonymous’ has no configured AORs errors on the log. I found [this]p(PJSIP: how to correctly describe endpoint 'anonymous'?) refrence but it doesn’t explain how to solve the problem. I can’t perform calls neither.
The logs don’t show significant information.
Could somebody help me please? Why isn’t the anonymous endpoint working? Is there a better approach to solve this problem?
Thanks a lot!