RE: Multiple registers with the same SIP provider

Comment on Asterisk SIP user vs peer
GarethP
Joined: Sun 08 of Oct, 2006

RE: Multiple registers with the same SIP provider

Posted:Sun 08 of Oct, 2006 (21:11 UTC)
I forgot to mention, this should work with a single account that does incoming and outgoing by the way. The key there is to use the insecure=invite setting as this is what causes the 407. You will still authenticate on outgoing connections, just not incoming ones (which would seem to be what we want)

[provider.tld]   ; incoming and outgoing 
type=peer 
host=2x2.2x3.x56.2x6 
username=3378 
secret=??????? 
context=testB
fromuser=3378 
fromdomain=2x2.2x3.x56.2x6
insecure=invite
nat=no 

Havent really tested it in depth but pretty sure it was one of the things I had tried in arriving at the solution below.