Asterisk Authentication

Home » Asterisk Users » Asterisk Authentication
Asterisk Users 4 Comments

Hi,

I am trying to setup asterisk so that anyone from any IP can call using any callerid as long they have an account – also no registration is required.

However, it seems like asterisk tries to find peer based on either the IP
address or from header. What I really want is asterisk to find account/peer based on username passed as part of the authentication and NOT
from the IP address or the from header.

Any idea how to achieve this.

Thanks

4 thoughts on - Asterisk Authentication

  • It has to be either fixed IP address or username and password with a dynamic host. This is no in between to the best of my knowledge.

    Regards

    Ish

  • I am not sure if you understood the problem. Asterisk introduced
    “match_auth_username” option for what I exactly want but it doesn’t seem to be work.

  • Try setting the sip.conf entry to friend, not peer and not user.

    —–Original Message—