Hi All,
I am trying to setup an incoming SIP trunk, and I have a strange behavior from Asterisk.
When an incoming arrives it seems Asterisk is trying to identify by the “contact” field instead of the “Invite”
INVITE sip:0427XXXXX@91.XXX.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 85.119.XXX.XXX:5060;branch=z9hG4bK76a4e8dd;rport
From: "0495XXXXXX" <sip:0495XXXXXX@85.119.XXX.XXX>;tag=as4019bede
To: <sip:0427XXXXX@91.XXX.XXX.XXX>
Contact: <sip:0495XXXXXX@85.119.XXX.XXX>
Call-ID: 3859b9767dd66cb44cd907636b838e15@85.119.XXX.XXX
CSeq: 102 INVITE
User-Agent: Remote PBX
Max-Forwards: 70
Date: Mon, 04 Jul 2011 23:39:16 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Diversion: <sip:0427XXXXXX@ast2>
Content-Type: application/sdp
Content-Length: 336
v=0
o=root 12453 12453 IN IP4 85.119.XXX.XXX
s=session
c=IN IP4 85.119.XXX.XXX
t=0 0
m=audio 14398 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
<------------->
--- (15 headers 16 lines) ---
Sending to 85.119.XXX.XXX:5060 (no NAT)
Using INVITE request as basis request - 3859b9767dd66cb44cd907636b838e15@85.119.XXX.XXX
No matching peer for '0495XXXXXX' from '85.119.XXX.XXX:5060'
[Jul 5 01:38:34] NOTICE[7156]: chan_sip.c:21512 handle_request_invite: Sending fake auth rejection for device "0495XXXXXX" <sip:0495XXXXXX@85.119.XXX.XXX>;tag=as4019bede
My Asterisk installed version is : 1.8.4.2
I have a peer defined in my sip.conf (which is working for outbound calls)
I defined a register: username:password@host
In the extension.conf a context (used in the context field of my peer) is routing the “s” extension.
I tried a lot of combination without success, I am still having this message except if I am defining “allowguest=yes”, but I would like to avoid this.
Thanks in advance for you help.
Christian