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