hi , thank you for the answer Daniel, but I am a little confused
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the # path determined by record-routing if (has_totag()) { if (loose_route()) { if(method=="INVITE" && (!allow_trusted())) { if (!proxy_authorize("","subscriber")) { proxy_challenge("","0"); exit; } else if (!check_from()) { sl_send_reply("403", "Forbidden, use From=ID"); exit; };
### section for asterisk #### route[4] { rewritehostport("192.168.10.1:5070"); t_relay(); route(1); }
route[10] { append_hf("P-hint: inbound->inbound \r\n"); if (uri=~"^sip:[29][0-9]{7}@") { if (is_user_in("credentials","local")) { route(4); exit;
} else { sl_send_reply("403", "Not permissions local call"); exit; };
}; if (uri=~"^sip:1[2-9][1-9]{3}@") { if (is_user_in("credentials","int")) { route(4); exit; } else { sl_send_reply("403", "Not permissions internal call"); exit; }; };
if (uri=~"^sip:011[0-9]*@") { if (is_user_in("credentials","international")) { route(4); exit;
ettc etc ,
inside the sip.conf
[openser] type=friend context=netsoluciones insecure=very host=localhost disallow=all allow=alaw allow=g729
;(
which the best form is to authenticate the invites or not? if asterisk and openser are in the same box
where my error can be ?
regards
rickygm
----- Original Message ---- From: Daniel-Constantin Mierla miconda@gmail.com Sent: Friday, July 18, 2008 8:16:31 AM Subject: Re: [OpenSER-Users] openser and asterisk in the same pc
Hello,
the authentication is required by openser -- that means there is a mistake in your configuration file if you don't want to authenticate such INVITE. The phone should respond with a new INVITE having credentials header -- you have to set the username and password in you phone as well.