Hi Volkan,

Well, there is no really straight forward way to do that. Normally, the calls you receive from the registrar should have in the RURI the actual Contact URI you registered. So this is a way to do it.

Another one, if you do not have multiple accounts registered against the same registrar, you can do the detection based on the source IP of the calls - it will have to match the IP address of the registrar server (or outbound server) - but this means you should have this registrar and OBP addresses in the DB as IPs (for easy matching).

In both cases you will need to do some DB queries which are not by default provided the uac_registrant module, like fetch the ID of a registrant based on its Contact URI or Registrar IP.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 12/6/21 3:24 PM, Volkan Oransoy wrote:
Hi all,

I am using uac_registrant to register a bunch of sip accounts to remote sip registrars. There are multiple remote registrars and a we can register more than one account to a registrar. My Opensips instance can succesfully register and can receive calls as of now. What I am trying to accomplish is to identify calls and match with my registered accounts to route the call to the appropriate destination and for security. I can check the source IP addresses along with contact headers but I don’t have any experience whether this is the right way or not. Can you suggest a way to match these calls with my uac_registrants?

Thanks

/Volkan

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to