# No Matching Peer found only when matching peer is found

**URL:** <https://community.asterisk.org/t/no-matching-peer-found-only-when-matching-peer-is-found/24051>\
**Category:** Asterisk Support\
**Created:** [November 11, 2008, 9:24pm UTC](https://community.asterisk.org/t/no-matching-peer-found-only-when-matching-peer-is-found/24051 "2008-11-11T21:24:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnkpaul](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@johnkpaul](https://community.asterisk.org/u/johnkpaul)\
**Post date:** [November 11, 2008, 9:24pm UTC](https://community.asterisk.org/t/no-matching-peer-found-only-when-matching-peer-is-found/24051/1 "2008-11-11T21:24:19Z")

</div>

My current goal to understand asterisk is to get a local softphone to call a remote asterisk server.

My sip.conf is :

[code][general]  
context=testcontext  
bindaddr=0.0.0.0  
port=5060

[testuser]  
secret=testuser  
type=friend  
host=dynamic  
context=testcontext  
fromuser=testuser  
[/code]

I am using these settings in my softphone (QuteCom on OSX)

```auto
login/username:testuser
password:testuser
SIP Domain/Realm: ipaddress of server
Display Name: testuser
```

I keep getting this error on the asterisk console:

```auto
Registration from '<sip:nobody@216.blah.my.remote.ip>' failed for '216.blah.my.local.ip' - No matching peer found
```

I don’t understand what’s going on here. It is definitely getting to the remote server. What is weird is that if I change the login/username to anything other than test user, such as testaccount, I get this:

```auto
Registration from '<sip:testaccount@216.blah.my.remote.ip>' failed for '216.blah.my.local.ip' - No matching peer found
```

For some reason only when I try what is in my sip.conf, it suddently becomes “nobody.” I also don’t know if I’m setting up everything correctly. I didn’t use a register directive because I am not considering any outgoing calls from asterisk yet. Any ideas as to what is wrong? Thanks!

---

<div class="post-metadata">

**Author:** ![COpeter](https://avatars.discourse-cdn.com/v4/letter/c/5f9b8f/32.png) [@COpeter](https://community.asterisk.org/u/COpeter)\
**Post date:** [November 12, 2008, 9:19am UTC](https://community.asterisk.org/t/no-matching-peer-found-only-when-matching-peer-is-found/24051/2 "2008-11-12T09:19:20Z")

</div>

you did not define a username for the user

one of my users look like this:

`[tester]
type=friend
context=internal
host=dynamic
username=tester
secret=abc123
callerid="tester" <2002>
regcontext=internal
regexten=2002
dtmfmode=rfc2833
canreinvite=yes
nat=yes
qualify=yes
`  
additionally, in the [general] i used

```auto

```

in my XLite i use domain pbxtestomgeving and i use my servers ip as proxy to connect with
