Today I modified my dialplan to the following, and changed the subject of this thread to be more accurate
exten => s,1,Log(NOTICE, Incoming call from ${CALLERID(all)})
exten => s,2,Answer()
exten => s,3,Dial(SIP/102&SIP/105&SIP/106, 30) ;; mini-asterisk - don't remove this comment
exten => s,4,Dial(SIP/104&SIP/100)
exten => s,5,Hangup()
Here is the SIP debug log from the CLI. Once again, phone did not ring
Asterisk 1.4.4, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.4 currently running on ip04 (pid = 63)
No entry for terminal type "dumb";
using dumb terminal settings.
Really destroying SIP dialog '9a0e5876-3e22c4e5@192.168.1.10' Method: REGISTER
Really destroying SIP dialog '5c283089-c8cf13ee@192.168.1.10' Method: REGISTER
ip04*CLI> sip set debug
<--- SIP read from 203.166.103.242:5060 --->
OPTIONS sip:587345@220.233.85.199 SIP/2.0
Via: SIP/2.0/UDP 203.166.103.242:5060;branch=z9hG4bK12bf8545;rport
From: "asterisk" <sip:asterisk@203.166.103.242>;tag=as480b7ed7
To: <sip:587345@220.233.85.199>
Contact: <sip:asterisk@203.166.103.242>
Call-ID: 5b800a867b6ccf023b900af235673ca1@203.166.103.242
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 22 Aug 2012 06:11:32 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Looking for 587345 in default (domain 220.233.85.199)
<--- Transmitting (no NAT) to 203.166.103.242:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 203.166.103.242:5060;branch=z9hG4bK12bf8545;received=203.166.103.242;rport=5060
From: "asterisk" <sip:asterisk@203.166.103.242>;tag=as480b7ed7
To: <sip:587345@220.233.85.199>;tag=as2bd85e67
Call-ID: 5b800a867b6ccf023b900af235673ca1@203.166.103.242
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Accept: application/sdp
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '5b800a867b6ccf023b900af235673ca1@203.166.103.242' in 32000 ms (Method: OPTIONS)
ip04*CLI> sip set debug
SIP Debugging re-enabled
Reliably Transmitting (no NAT) to 192.168.1.10:5061:
OPTIONS sip:206@192.168.1.10:5061 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.30:5060;branch=z9hG4bK08281df3;rport
From: "asterisk" <sip:asterisk@192.168.1.30>;tag=as5e5dc060
To: <sip:206@192.168.1.10:5061>
Contact: <sip:asterisk@192.168.1.30>
Call-ID: 2cb208e8010d90de6346cf104eff318a@192.168.1.30
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 22 Aug 2012 06:11:39 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
---
ip04*CLI>
<--- SIP read from 192.168.1.10:5061 --->
SIP/2.0 200 OK
To: <sip:206@192.168.1.10:5061>;tag=913b4846ff2e19eci1
From: "asterisk" <sip:asterisk@192.168.1.30>;tag=as5e5dc060
Call-ID: 2cb208e8010d90de6346cf104eff318a@192.168.1.30
CSeq: 102 OPTIONS
Via: SIP/2.0/UDP 192.168.1.30:5060;branch=z9hG4bK08281df3
Server: Linksys/SPA942-4.1.18
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, SUBSCRIBE
Allow-Events: dialog
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '2cb208e8010d90de6346cf104eff318a@192.168.1.30' Method: OPTIONS
ip04*CLI>
<--- SIP read from 203.166.103.242:5060 --->
INVITE sip:587345@220.233.85.199 SIP/2.0
Via: SIP/2.0/UDP 203.166.103.242:5060;branch=z9hG4bK0a1655a7;rport
From: "0421903810" <sip:0421903810@gw03.mytel.net.au>;tag=as23192825
To: <sip:587345@220.233.85.199>
Contact: <sip:0421903810@203.166.103.242>
Call-ID: 44f1fdae74ca270a4d07d18f1f5bc9f9@gw03.mytel.net.au
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 22 Aug 2012 06:11:49 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 316
v=0
o=root 11368 11368 IN IP4 203.166.103.242
s=session
c=IN IP4 203.166.103.242
t=0 0
m=audio 17846 RTP/AVP 8 0 18 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/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 - - - -
<------------->
--- (13 headers 14 lines) ---
Sending to 203.166.103.242 : 5060 (NAT)
Using INVITE request as basis request - 44f1fdae74ca270a4d07d18f1f5bc9f9@gw03.mytel.net.au
Found peer '587345'
Found RTP audio format 8
Found RTP audio format 0
Found RTP audio format 18
Found RTP audio format 3
Found RTP audio format 101
Peer audio RTP is at port 203.166.103.242:17846
Found description format PCMA for ID 8
Found description format PCMU for ID 0
Found description format G729 for ID 18
Found description format GSM for ID 3
Found description format telephone-event for ID 101
Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x10e (gsm|ulaw|alaw|g729)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 203.166.103.242:17846
Looking for 587345 in default (domain 220.233.85.199)
<--- Reliably Transmitting (NAT) to 203.166.103.242:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 203.166.103.242:5060;branch=z9hG4bK0a1655a7;received=203.166.103.242;rport=5060
From: "0421903810" <sip:0421903810@gw03.mytel.net.au>;tag=as23192825
To: <sip:587345@220.233.85.199>;tag=as39606e15
Call-ID: 44f1fdae74ca270a4d07d18f1f5bc9f9@gw03.mytel.net.au
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '44f1fdae74ca270a4d07d18f1f5bc9f9@gw03.mytel.net.au' in 3136 ms (Method: INVITE)
ip04*CLI>
<--- SIP read from 203.166.103.242:5060 --->
ACK sip:587345@220.233.85.199 SIP/2.0
Via: SIP/2.0/UDP 203.166.103.242:5060;branch=z9hG4bK0a1655a7;rport
From: "0421903810" <sip:0421903810@gw03.mytel.net.au>;tag=as23192825
To: <sip:587345@220.233.85.199>;tag=as39606e15
Contact: <sip:0421903810@203.166.103.242>
Call-ID: 44f1fdae74ca270a4d07d18f1f5bc9f9@gw03.mytel.net.au
CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '44f1fdae74ca270a4d07d18f1f5bc9f9@gw03.mytel.net.au' Method: ACK
Reliably Transmitting (no NAT) to 192.168.1.10:5060:
OPTIONS sip:106@192.168.1.10:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.30:5060;branch=z9hG4bK10091b7f;rport
From: "asterisk" <sip:asterisk@192.168.1.30>;tag=as3959c5c1
To: <sip:106@192.168.1.10:5060>
Contact: <sip:asterisk@192.168.1.30>
Call-ID: 772db2883ec84ca222566d305ad47263@192.168.1.30
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 22 Aug 2012 06:11:59 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
---
ip04*CLI>
<--- SIP read from 192.168.1.10:5060 --->
SIP/2.0 200 OK
To: <sip:106@192.168.1.10:5060>;tag=5343d61662e2665ci0
From: "asterisk" <sip:asterisk@192.168.1.30>;tag=as3959c5c1
Call-ID: 772db2883ec84ca222566d305ad47263@192.168.1.30
CSeq: 102 OPTIONS
Via: SIP/2.0/UDP 192.168.1.30:5060;branch=z9hG4bK10091b7f
Server: Linksys/SPA942-4.1.18
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, SUBSCRIBE
Allow-Events: dialog
<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '772db2883ec84ca222566d305ad47263@192.168.1.30' Method: OPTIONS
Really destroying SIP dialog '5b800a867b6ccf023b900af235673ca1@203.166.103.242' Method: OPTIONS
Reliably Transmitting (NAT) to 203.166.103.242:5060:
OPTIONS sip:sip02.mytel.net.au SIP/2.0
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK4e30ad5a;rport
From: "asterisk" <sip:asterisk@220.233.85.199>;tag=as31c0821b
To: <sip:sip02.mytel.net.au>
Contact: <sip:asterisk@220.233.85.199>
Call-ID: 4764fdb3731379d33ff25c295665384e@220.233.85.199
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Wed, 22 Aug 2012 06:12:16 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0
---
ip04*CLI>
<--- SIP read from 203.166.103.242:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK4e30ad5a;received=220.233.85.199;rport=5060
From: "asterisk" <sip:asterisk@220.233.85.199>;tag=as31c0821b
To: <sip:sip02.mytel.net.au>;tag=as5a97ea88
Call-ID: 4764fdb3731379d33ff25c295665384e@220.233.85.199
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:203.166.103.242>
Accept: application/sdp
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
Really destroying SIP dialog '4764fdb3731379d33ff25c295665384e@220.233.85.199' Method: OPTIONS
[2012-08-22 06:12:18] NOTICE[88]: chan_sip.c:7147 sip_reregister: -- Re-registration for 587345@587345
REGISTER 13 headers, 0 lines
Reliably Transmitting (NAT) to 203.166.103.242:5060:
REGISTER sip:mytel.net.au SIP/2.0
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK63f51060;rport
From: <sip:587345@sip02.mytel.net.au>;tag=as15531267
To: <sip:587345@sip02.mytel.net.au>
Call-ID: 5dac158d408b4aca4ebe1ea958d48347@mytel.net.au
CSeq: 199 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="587345", realm="asterisk", algorithm=MD5, uri="sip:mytel.net.au", nonce="6d418d77", response="e1a6f37a7af78ed0a2c5ce93ac213843", opaque=""
Expires: 120
Contact: <sip:587345@220.233.85.199>
Event: registration
Content-Length: 0
---
ip04*CLI>
<--- SIP read from 203.166.103.242:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK63f51060;received=220.233.85.199;rport=5060
From: <sip:587345@sip02.mytel.net.au>;tag=as15531267
To: <sip:587345@sip02.mytel.net.au>
Call-ID: 5dac158d408b4aca4ebe1ea958d48347@mytel.net.au
CSeq: 199 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:587345@203.166.103.242>
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
<--- SIP read from 203.166.103.242:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK63f51060;received=220.233.85.199;rport=5060
From: <sip:587345@sip02.mytel.net.au>;tag=as15531267
To: <sip:587345@sip02.mytel.net.au>;tag=as13c1dc4f
Call-ID: 5dac158d408b4aca4ebe1ea958d48347@mytel.net.au
CSeq: 199 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="6e1b6fca"
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Responding to challenge, registration to domain/host name 587345
REGISTER 13 headers, 0 lines
Reliably Transmitting (NAT) to 203.166.103.242:5060:
REGISTER sip:mytel.net.au SIP/2.0
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK49e61890;rport
From: <sip:587345@sip02.mytel.net.au>;tag=as20dfa973
To: <sip:587345@sip02.mytel.net.au>
Call-ID: 5dac158d408b4aca4ebe1ea958d48347@mytel.net.au
CSeq: 200 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="587345", realm="asterisk", algorithm=MD5, uri="sip:mytel.net.au", nonce="6e1b6fca", response="da18f117f7b0009a0ac32ceca955324c", opaque=""
Expires: 120
Contact: <sip:587345@220.233.85.199>
Event: registration
Content-Length: 0
---
ip04*CLI>
<--- SIP read from 203.166.103.242:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK49e61890;received=220.233.85.199;rport=5060
From: <sip:587345@sip02.mytel.net.au>;tag=as20dfa973
To: <sip:587345@sip02.mytel.net.au>
Call-ID: 5dac158d408b4aca4ebe1ea958d48347@mytel.net.au
CSeq: 200 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:587345@203.166.103.242>
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
ip04*CLI>
<--- SIP read from 203.166.103.242:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 220.233.85.199:5060;branch=z9hG4bK49e61890;received=220.233.85.199;rport=5060
From: <sip:587345@sip02.mytel.net.au>;tag=as20dfa973
To: <sip:587345@sip02.mytel.net.au>;tag=as13c1dc4f
Call-ID: 5dac158d408b4aca4ebe1ea958d48347@mytel.net.au
CSeq: 200 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 120
Contact: <sip:587345@220.233.85.199>;expires=120
Date: Wed, 22 Aug 2012 06:12:18 GMT
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Scheduling destruction of SIP dialog '5dac158d408b4aca4ebe1ea958d48347@mytel.net.au' in 6400 ms (Method: REGISTER)
[2012-08-22 06:12:18] NOTICE[88]: chan_sip.c:12117 handle_response_register: Outbound Registration: Expiry for 587345 is 120 sec (Scheduling reregistration in 105 s)
ip04*CLI>