No matching peer found - SIP UA registration - although user/pass correct

Hi,

I have just installed Freepbx 2.10 on Asterisk 10.3 (ubuntu) and i cannot get my SIP UA’s to register. I am seeing the register come in (sip set debug on). It is being rejected 'Registration from “301” sip:[email protected] failed for x.x.x.x:5060 - no matching peer found.

The username and passwords are definately correct and i tried 2 different SIP UA’s and different extension numbers and passwords.

Could it be something wrong with my installation?

Possibley as apache is running as www:data,from asterisk try

sip show peers

you might need to edit

/etc/apache2/envars

export APACHE_RUN_USER=asterisk
export APACHE_RUN_GROUP=asterisk

and restart apache2 so FreePBX can talk to Asterisk, conversely you can edit

/etc/default/asterisk

as the init files will look to that to choose the user:group

That’s why I asked about

sip show peers

If they are not there then FreePBX is not writing them.

ps aux|grep -iE “asterisk|apache”

should confirm that asterisk and apache are running as the same user.

amportal admin dbug

will give a realtime version of what is going wrong as youi “use” FreePBX

thanks for the reply. I had changed the envvars entries during the install so i dont think they’re the issue

from some googling it seems something to do with confg not being written to sip_additional.conf/sip.conf

any ideas on this?