Hi,<div>You can add a OpenSIPS peer in you asterisk sip.conf without any username and password with param &quot;insecure=invite,port&quot; that way your asterisk would not worry about asking for credentials on incoming INVITES from opensips.</div>
<div><br></div><div>Regards,</div><div>Sammy.<br><br><div class="gmail_quote">On Sun, Dec 4, 2011 at 9:28 PM, Matt Hamilton <span dir="ltr">&lt;<a href="mailto:mistral9999@hotmail.com">mistral9999@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div><div dir="ltr">
<br>I&#39;m a little confused about Opensips doing the registrations for Asterisk.<br><br>I integrated Opensips with Asterisk Realtime (Asterisk sipusers/peers point to Opensips subscribe table via a view). Opensips does the authorization and saves the location. However, when a call comes in (INVITE is routed to Asterisk), it seems like Asterisk doesn&#39;t know about the user (or sees the users as not authorized), so can&#39;t create the SIP channel.<br>
<br>If I route the REGISTER to Asterisk after authorizing in Opensips (and doing a consume_credentials()), Asterisk does the Authorization again from scratch. In that case call goes through, but I end up duplicating the authorization process. If I don&#39;t use consume_credentials(), Asterisk&#39;s authorization challenge doesn&#39;t match with Opensips, the user is not authenticated.<br>
<br>I was hoping to take the load of handling registrations from Asterisk.  I&#39;m fairly new to both Asterisk and Opensips - what am I missing?<br><br>Thanks,<br>Matt<br><br><br><br>                                               </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>