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 "[email protected]" 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
[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