I need some help understanding how incoming SIP connections are handled.
I am trying to handle SIP calls (inwards) from a DID.
The DID directs the call to Philip@xx.xx.xx.xx (that is all I can specify, no username password etc.)
The incoming connection looks like this:
<--- SIP read from 204.11.194.35:5060 --->
INVITE sip:Philip@71.182.77.163 SIP/2.0
Via: SIP/2.0/UDP 204.11.194.35:5060;branch=z9hG4bK04a36259;rport
From: "15035380499" <sip:15035380499@204.11.194.35>;tag=as19c8ba3b
To: <sip:Philip@71.182.77.163>
Contact: <sip:15035380499@204.11.194.35>
Call-ID: 353a9cf00678d243580d46575898d305@204.11.194.35
CSeq: 102 INVITE
User-Agent: DIDWW
Max-Forwards: 70
Remote-Party-ID: "15035380499" <sip:15035380499@204.11.194.35>;privacy=off;screen=no
Date: Mon, 07 Sep 2009 20:04:41 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 409
v=0
o=root 8919 8919 IN IP4 204.11.194.35
s=session
c=IN IP4 204.11.194.35
t=0 0
m=audio 13330 RTP/AVP 0 8 18 4 111 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:111 G726-32/8000
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 19 lines) ---
Sending to 204.11.194.35 : 5060 (NAT)
Using INVITE request as basis request - 353a9cf00678d243580d46575898d305@204.11.194.35
Found no matching peer or user for '204.11.194.35:5060'
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 4
Found RTP audio format 111
Found RTP audio format 3
Found RTP audio format 101
Peer audio RTP is at port 204.11.194.35:13330
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G729 for ID 18
Found audio description format G723 for ID 4
Found audio description format G726-32 for ID 111
Found audio description format GSM for ID 3
Found audio description format telephone-event for ID 101
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x90f (g723|gsm|ulaw|alaw|g726|g729)/video=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 204.11.194.35:13330
Looking for Philip in default (domain 71.182.77.163)
list_route: hop: <sip:15035380499@204.11.194.35>
If I put an extension for ‘Philip’ in extensions.conf under [default] it works.
But I actually want to deliver the call to a different context.
The part that I don’t understand, even after reading all the documentation I can find on it is this:
Found no matching peer or user for '204.11.194.35:5060'
I have tried putting an entry in sip.conf:
[204.11.194.35:5060]
type=user
context=incoming_calls
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
insecure=very
nat=yes
It makes no difference.
Where is it looking for a match???
How do I set up incoming anonymous SIP calls to be delivered to a specific context?