[OpenSIPS-Users] Matching calls with uac_registrant records
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Dec 7 09:30:31 EST 2021
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211207/453619fd/attachment.html>
More information about the Users
mailing list