Error : No matching peer found

Hello every body,
As I have just begin discovering Asterisk world, I countered some problems. Finally, after having successfully installed asterisk, I have errors when I tried to test some functions. I have an error on registration of a peer : Registration from ‘sip:XXX@xxx’ failed for ‘xxx’ - No matching peer found, and in the log of my x-lite softphone, I found this error : PhonePort.dll is absent
I tried in vain many solutions posted.
I really need urgent help.
These are my configuration files :

sip.conf :
[b][general]
port = 5060 ; Port to bind to
bindaddr = 0.0.0.0 ; Address to bind to
context = sip ;default Default for incoming calls

register => user@mysipproxy.com/1000

[mysipproxy.com]
type=peer
host=adresse
fromuser=andy
secret=pass
fromdomain=mysipproxy.com

[phone1]
type=friend
host=dynamic
defaultip=192.168.1.64
username=user1
secret=pass
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=1000 ; Mailbox for message waiting indicator
context=sip
callerid=“Me” <2124>

[phone2]
type=friend
secret=pass
host=dynamic
defaultip=192.168.1.3
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=1000 ; Mailbox for message waiting indicator
context=sip
callerid=“Mini Me” <2123>[/b]

extensions.conf :
[b][general]

static=yes
writeprotect=no

[sip]

exten => 1,1,Dial(SIP/phone1,20,tr)
exten => 2,1,Dial(SIP/phone2,20,tr)
exten => 1000,1,Dial(SIP/phone1&SIP/phone2,20,tr)[/b]

Did I forget anything?
Thanks for your answers. ^^

Hello,
actually, my peers are registered but still have the same error message when trying to connect from my xlite softphone.
When I check what port asterisk is listening, I found that is not 5060, want to know why?
I changed my config files :

sip.conf :
[b]
[general]
;port = 5060 ; Port to bind to
bindport = 5060
bindaddr = 0.0.0.0 ; Address to bind to
context = sip ;default Default for incoming calls

register => xlite:user@***.***.***.***
register => xlite1:user1@e***.***.***.***

[xlite]
;Turn off silence suppression in X-Lite (“Transmit Silence”=YES)!
;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
username=xlite
secret=user
callerid=“Ayadi” <5678>
host=dynamic
nat=yes ; X-Lite is behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT
disallow=all
;allow=gsm ; GSM consumes far less bandwidth than G711-u (ulaw)
allow=ulaw
allow=alaw

[xlite1]
;Turn off silence suppression in X-Lite (“Transmit Silence”=YES)!
;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
username=xlite1
secret=user1
callerid=“Mira” <1234>
host=dynamic
nat=yes ; X-Lite is behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT
disallow=all
;allow=gsm ; GSM consumes far less bandwidth than G711-u (ulaw)
allow=ulaw
allow=alaw
[/b]

extension.conf:
[b]
[general]

static=yes
writeprotect=no

[sip]

exten => 5678,1,Dial(SIP/xlite:5060,20,tr)
exten => 1234,1,Dial(SIP/xlite1:5060,20,tr)
[/b]

Thanks for help

Howdy,

Here’s a config for Xlite, see the attachment.

Here’s a sip.conf entry for the client:

[malcolm]
type=peer
secret=malcolm
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
context=testing

Here’s an extensions.conf entry to do a basic playback:

[testing]
exten => 100,1,Background(demo-congrats)

Please do NOT post private messages to board admins or moderators just because you haven’t received a response to your questions. They won’t respond, because doing so means that any assistance or knowledge is thus not posted in public for everyone to benefit.

Thanks a lot for your response and sorry about that :blush:

No worries. Best of luck. :smile:

Thanks a lot ^^

Dr Mr Malcolm,

i am facing the same issue as posted , i see your reply as well but im unable to view attachments can u kindly share xlite settings as well.

I am facing NOTICE1647 no matching peer found

-Best Regards,
-abid