Please check no other peers with &quot;insecure&quot; entry are registered from the same IP. Asterisk takes some shortcut and try authenticating peers by IP address before authenticating them by username/password.<div><br>
</div><div>Leandro<br><br><div class="gmail_quote">2011/9/23 David Björkevik <span dir="ltr">&lt;<a href="mailto:david@dynamore.se">david@dynamore.se</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Leandro,<br>
<br>
Thank you for your input!<br>
<br>
I tried this and it&#39;s still the same.<br>
(although I still have _unrelated_ peers with the insecure entry)<br>
<br>
/David<br>
<div class="im"><br>
On 2011-09-23 14:24, Leandro Dardini wrote:<br>
&gt; Add &quot;match_auth_username=yes&quot; in the [general] section of sip.conf<br>
&gt;<br>
&gt; Remove from each peer any &quot;insecure&quot; entry<br>
&gt;<br>
&gt; Usually I add also &quot;auth&quot;, &quot;defaultuser&quot; and &quot;username&quot; to the peer<br>
&gt; definition, but some of these entries are not needed.<br>
&gt;<br>
&gt; Leandro<br>
&gt;<br>
</div>&gt; 2011/9/23 David Björkevik &lt;<a href="mailto:david@dynamore.se">david@dynamore.se</a> &lt;mailto:<a href="mailto:david@dynamore.se">david@dynamore.se</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt;<br>
&gt;     Dear list,<br>
&gt;<br>
&gt;     We are switching to a new provider for SIP-trunks. We have 20 numbers,<br>
&gt;     each defined as a separate SIP peer.<br>
&gt;<br>
&gt;     With the old provider everything works.<br>
&gt;<br>
&gt;     When switching to the new provider&#39;s account data, it only works as long<br>
&gt;     as I only define one of the accounts.  If multiple accounts are defined,<br>
&gt;     I can only place outgoing calls on one of them, for the other(s)<br>
&gt;     authentication fails, &quot;FORBIDDEN&quot;.<br>
&gt;<br>
&gt;     It is almost like Asterisk is using just one of the defined passwords to<br>
&gt;     authenticate all peers on that host.<br>
&gt;<br>
&gt;     Any input is very appreciated.<br>
&gt;<br>
&gt;     Regards<br>
&gt;     David Björkevik, Engineer<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     _____________________________________________________________________<br>
&gt;     -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt;     New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;                   <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;<br>
&gt;     asterisk-users mailing list<br>
&gt;     To UNSUBSCRIBE or update options visit:<br>
&gt;       <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;                <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
</div></div>--<br>
David Björkevik, Engineer<br>
DYNAmore Nordic AB - <a href="http://www.dynamore.se/" target="_blank">http://www.dynamore.se/</a><br>
Full contact information: <a href="http://people.dynamore.se/david" target="_blank">http://people.dynamore.se/david</a><br>
Voice: <a href="tel:%2B46%20%280%2913-23%2066%2080" value="+4613236680">+46 (0)13-23 66 80</a><br>
<br>
On July 1, DYNAmore Nordic AB acquired all of the business of<br>
Engineering Research. Read more on <a href="http://www.dynamore.se/dynamore-purchase" target="_blank">www.dynamore.se/dynamore-purchase</a><br>
<br>
Note the new @<a href="http://dynamore.se" target="_blank">dynamore.se</a> E-mail endings, previous<br>
@<a href="http://erab.se" target="_blank">erab.se</a> endings will work until the end of 2011.<br>
<br>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>