I have noticed this on versions Asterisk 126.96.36.199 and Asterisk 188.8.131.52
In sip.conf, I have 2 entries with the same IP:
1- a peer, no context and 1 codec
2- a user, a context and 3 codecs
So, lets say that a call comes from that IP, asterisk should choose the settings of the entry set as a user, then go to the context and find an extension that matches the dialed number and go on from there.
What is happening is that is chooses the entry configured as a peer, since it has no context then it goes to the “default” context, since there is no extension that matches the call fails.
I have tried setting the “peer” with a context but it has the same effect, it chooses the peer instead of the “user”, I have also put the “user” first in the sip.conf. I have also tried with “friend” instead of “user” and the same thing happens.
The main reason to have IP twice is because we need a set of codecs when we send calls to that IP [peer] and another set of codecs when we receive from that IP [user or friend]
This used to work fine in version 1.6, could it be a bug or do we need to use a special configuration?
txs in advance