If I understand correctly, you want to authenticate an arbitrary user (not taken from the message) against the subscriber table. The way you should do this is to use the pv_*_authorize() functions. A snippet for this is:

1. translate from alias to a known subscriber
2. query the subscriber table to find the password that should be used
3. set the username_spec to the real (translated) value of the user
4. set tha password_spec to whatever is in the subscriber table
5. call pv_proxu_authorize()

Hope this helps,

[1] https://opensips.org/docs/modules/2.4.x/auth.html#func_pv_www_authorize

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 9/23/20 4:38 PM, HS wrote:
Hello all.

I am trying to either:

1. Authenticate with alias_name+alias_domain against password in subscribers. 2. If above is not possible, be able to change the Caller ID (I have tried changing RPID - and that did not work).

Any suggestions?

Thx.

_______________________________________________
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