Please check no other peers with "insecure" entry are registered from the
same IP. Asterisk takes some shortcut and try authenticating peers by IP
address before authenticating them by username/password.

Leandro

2011/9/23 David Björkevik <da...@dynamore.se>

> Leandro,
>
> Thank you for your input!
>
> I tried this and it's still the same.
> (although I still have _unrelated_ peers with the insecure entry)
>
> /David
>
> On 2011-09-23 14:24, Leandro Dardini wrote:
> > Add "match_auth_username=yes" in the [general] section of sip.conf
> >
> > Remove from each peer any "insecure" entry
> >
> > Usually I add also "auth", "defaultuser" and "username" to the peer
> > definition, but some of these entries are not needed.
> >
> > Leandro
> >
> > 2011/9/23 David Björkevik <da...@dynamore.se <mailto:da...@dynamore.se>>
> >
> >     Dear list,
> >
> >     We are switching to a new provider for SIP-trunks. We have 20
> numbers,
> >     each defined as a separate SIP peer.
> >
> >     With the old provider everything works.
> >
> >     When switching to the new provider's account data, it only works as
> long
> >     as I only define one of the accounts.  If multiple accounts are
> defined,
> >     I can only place outgoing calls on one of them, for the other(s)
> >     authentication fails, "FORBIDDEN".
> >
> >     It is almost like Asterisk is using just one of the defined passwords
> to
> >     authenticate all peers on that host.
> >
> >     Any input is very appreciated.
> >
> >     Regards
> >     David Björkevik, Engineer
> >
> >
> >     --
> >     _____________________________________________________________________
> >     -- Bandwidth and Colocation Provided by http://www.api-digital.com--
> >     New to Asterisk? Join us for a live introductory webinar every Thurs:
> >                   http://www.asterisk.org/hello
> >
> >     asterisk-users mailing list
> >     To UNSUBSCRIBE or update options visit:
> >       http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> >
> >
> > --
> > _____________________________________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > New to Asterisk? Join us for a live introductory webinar every Thurs:
> >                http://www.asterisk.org/hello
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> David Björkevik, Engineer
> DYNAmore Nordic AB - http://www.dynamore.se/
> Full contact information: http://people.dynamore.se/david
> Voice: +46 (0)13-23 66 80
>
> On July 1, DYNAmore Nordic AB acquired all of the business of
> Engineering Research. Read more on www.dynamore.se/dynamore-purchase
>
> Note the new @dynamore.se E-mail endings, previous
> @erab.se endings will work until the end of 2011.
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to