David Björkevik
2011-Sep-22 23:26 UTC
[asterisk-users] Problem with multiple sip-peers against the same host
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 553 bytes Desc: OpenPGP digital signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110923/ffee7db5/attachment.pgp>
C F
2011-Sep-23 03:01 UTC
[asterisk-users] Problem with multiple sip-peers against the same host
Can you please post: 1. Relevant sip.conf 2. sip debug when trying to make a call? On Thu, Sep 22, 2011 at 7:26 PM, David Bj?rkevik <david at dynamore.se> wrote:> 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 >
Leandro Dardini
2011-Sep-23 12:24 UTC
[asterisk-users] Problem with multiple sip-peers against the same host
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 <david at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110923/524fda7e/attachment.htm>