[OpenSIPS-Users] 403 reply forbidden
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Aug 24 19:07:15 CEST 2012
Well, pretty simply - the RURI of the INVITE (especially the domain
part) is not recognized by opensips as a local domain (see the
uri==myself test).
use the "alias" core param to add domain to be considered local.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 08/24/2012 03:31 PM, yassine.ab wrote:
> Hi,
>
> thanks for your response, I checked, I am in this case:
> ______________________________________________
>
> if ( !(is_method("REGISTER") ) ) {
> if (from_uri==myself)
> {
> # authenticate if from local subscriber
> # authenticate all initial non-REGISTER request that pretend to be
> # generated by local subscriber (domain from FROM URI is local)
> if (!proxy_authorize("", "subscriber")) {
> proxy_challenge("", "0");
> exit;
> }
> if (!db_check_from()) {
> sl_send_reply("403","Forbidden auth ID");
> exit;
> }
> consume_credentials();
> # caller authenticated
> } else {
> *# if caller is not local, then called number must be local*
>
> *if (!uri==myself) {
> send_reply("403","Rely forbidden");
> exit;
> }*
> }
> }
> ______________________________________________
> but I did not understand the message "if caller is not local, then called
> number must be local " BECAUSE the same user "titi at open-ims.test" in both
> the OpenSIPS and openIMS
>
> regards
> yassine
>
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/403-reply-forbidden-tp7581343p7581377.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list