Thats my dialplan
exten => _.,1,Dial(SIP/${EXTEN}@fritzbox620)
It works as long as the called answers. But when he does not answer and I hang up, Asterisk keeps dialing and thus ringing with the called person.
I use android integrated SIP as VOIP client.
Thats the invite request:
[code]INVITE sip:**610@192.168.178.41:5060 SIP/2.0
Call-ID: a7154dfe533ea48a7e2f09a073bc89b6@192.168.178.49
CSeq: 2142 INVITE
From: “user” sip:user@192.168.178.41;tag=480132910
To: sip:**610@192.168.178.41
Via: SIP/2.0/UDP 192.168.178.49:52380;branch=z9hG4bKe4b859e6e5aa2f713a97804f9864f7c7373331;rport
Max-Forwards: 70
Contact: “user” sip:user@192.168.178.49:52380;transport=udp
Content-Type: application/sdp
Authorization: Digest username=“user”,realm=“asterisk”,nonce=“70b2f277”,uri=“sip:**610@192.168.178.41:5060”,response=“a708704f30c2ce0b9ec98ba885304102”,algorithm=MD5
Content-Length: 300
v=0
o=- 1361998548287 1361998548288 IN IP4 192.168.178.49
s=-
c=IN IP4 192.168.178.49
t=0 0
m=audio 3416 RTP/AVP 96 97 3 0 8 127
a=rtpmap:96 GSM-EFR/8000
a=rtpmap:97 AMR/8000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:127 telephone-event/8000
a=fmtp:127 0-15
[/code]
Now the cancel request:
CANCEL sip:**610@192.168.178.41:5060 SIP/2.0
Call-ID: a7154dfe533ea48a7e2f09a073bc89b6@192.168.178.49
To: <sip:**610@192.168.178.41>
CSeq: 2142 CANCEL
From: "user" <sip:user@192.168.178.41>;tag=480132910
Via: SIP/2.0/UDP 192.168.178.49:52380;branch=z9hG4bKe4b859e6e5aa2f713a97804f9864f7c7373331;rport
Max-Forwards: 70
Content-Length: 0
Asterisk answers with
SIP/2.0 481 Call/Transaction Does Not Exist
Via: SIP/2.0/UDP 192.168.178.49:52380;branch=z9hG4bKe4b859e6e5aa2f713a97804f9864f7c7373331;received=192.168.178.49;rport=52380
From: "user" <sip:user@192.168.178.41>;tag=480132910
To: <sip:**610@192.168.178.41>;tag=as22f0886f
Call-ID: a7154dfe533ea48a7e2f09a073bc89b6@192.168.178.49
CSeq: 2142 CANCEL
Server: Asterisk PBX 1.8.13.1~dfsg-1ubuntu2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
So it is obivius that Asterisk doesn’t stop to dial because it does not recognise the Cancel request. The question is now why.
Server Ubuntu, Asterisk Version 1.8.13.1~dfsg-1ubuntu2 built by buildd @ panlong on a i686 running Linux on 2012-10-09 20:10:53 UTC