Hi,
I’m about to migrate an old Asterisk system with chan_sip to the newest version with PJSIP.
I have a problem with a Gigaset N510 IP Pro DECT station. In some repeatable scenarios, Asterisk can’t end the call by sending “BYE”, because the phone answers with 481. The same phone works flawlessly with the old Asterisk version with chan_sip, and it also works on the new system if called by another phone.
I had a look at the SIP traces, but frankly speaking I’m not able to see the issue.
Maybe someone could have a look and see if there is something obvious?
<--- Received SIP request (982 bytes) from UDP:192.168.1.115:5060 --->
INVITE sip:999@pbx.lan;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.115:5060;branch=z9hG4bKc184c6c4d2fc7a06e346fe3ec56101f7;rport
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>
Call-ID: 1332342870@192_168_1_115
CSeq: 2 INVITE
Contact: <sip:111@192.168.1.115:5060>
Max-Forwards: 70
User-Agent: N510 IP PRO/42.258.00.000.000
Supported: replaces
Allow-Events: message-summary, refer, ua-profile, talk, check-sync
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, SUBSCRIBE, NOTIFY, REFER, UPDATE
Content-Type: application/sdp
Content-Length: 381
v=0
o=111 5014 6 IN IP4 192.168.1.115
s=Mapping
c=IN IP4 192.168.1.115
t=0 0
m=audio 5014 RTP/AVP 9 8 0 96 97 2 18 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 G726-32/8000
a=rtpmap:97 AAL2-G726-32/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
<--- Transmitting SIP response (521 bytes) to UDP:192.168.1.115:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.115:5060;rport=5060;received=192.168.1.115;branch=z9hG4bKc184c6c4d2fc7a06e346fe3ec56101f7
Call-ID: 1332342870@192_168_1_115
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>;tag=z9hG4bKc184c6c4d2fc7a06e346fe3ec56101f7
CSeq: 2 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1615291956/a51f580c40e27fd65e532841e26e72e8",opaque="34d5617b3babc562",algorithm=md5,qop="auth"
Server: Asterisk PBX 18.2.2
Content-Length: 0
<--- Received SIP request (435 bytes) from UDP:192.168.1.115:5060 --->
ACK sip:999@pbx.lan;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.115:5060;branch=z9hG4bKc184c6c4d2fc7a06e346fe3ec56101f7;rport
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>;tag=z9hG4bKc184c6c4d2fc7a06e346fe3ec56101f7
Call-ID: 1332342870@192_168_1_115
CSeq: 2 ACK
Contact: <sip:111@192.168.1.115:5060>
Max-Forwards: 70
User-Agent: N510 IP PRO/42.258.00.000.000
Content-Length: 0
<--- Received SIP request (1288 bytes) from UDP:192.168.1.115:5060 --->
INVITE sip:999@pbx.lan;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.115:5060;branch=z9hG4bK51915be5eda3b8fa2070c0c97bc4a9c3;rport
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>
Call-ID: 1332342870@192_168_1_115
CSeq: 3 INVITE
Contact: <sip:111@192.168.1.115:5060>
Authorization: Digest username="user111", realm="asterisk", qop=auth, algorithm=md5, uri="sip:999@pbx.lan;user=phone", nonce="1615291956/a51f580c40e27fd65e532841e26e72e8", nc=00000001, cnonce="bedf5430c84175688e47387f74c66ede", opaque="34d5617b3babc562", response="f8293a7a024d00175c5bd8083559076b"
Max-Forwards: 70
User-Agent: N510 IP PRO/42.258.00.000.000
Supported: replaces
Allow-Events: message-summary, refer, ua-profile, talk, check-sync
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, SUBSCRIBE, NOTIFY, REFER, UPDATE
Content-Type: application/sdp
Content-Length: 381
v=0
o=111 5014 6 IN IP4 192.168.1.115
s=Mapping
c=IN IP4 192.168.1.115
t=0 0
m=audio 5014 RTP/AVP 9 8 0 96 97 2 18 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 G726-32/8000
a=rtpmap:97 AAL2-G726-32/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
<--- Transmitting SIP response (325 bytes) to UDP:192.168.1.115:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.115:5060;rport=5060;received=192.168.1.115;branch=z9hG4bK51915be5eda3b8fa2070c0c97bc4a9c3
Call-ID: 1332342870@192_168_1_115
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>
CSeq: 3 INVITE
Server: Asterisk PBX 18.2.2
Content-Length: 0
<--- Transmitting SIP response (839 bytes) to UDP:192.168.1.115:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.115:5060;rport=5060;received=192.168.1.115;branch=z9hG4bK51915be5eda3b8fa2070c0c97bc4a9c3
Call-ID: 1332342870@192_168_1_115
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>;tag=b0e9480e-7680-4733-8f04-f1e864439cb8
CSeq: 3 INVITE
Server: Asterisk PBX 18.2.2
Contact: <sip:192.168.1.111:50060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 248
v=0
o=- 5014 8 IN IP4 192.168.1.111
s=Asterisk
c=IN IP4 192.168.1.111
t=0 0
m=audio 10034 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
<--- Received SIP request (729 bytes) from UDP:192.168.1.115:5060 --->
ACK sip:192.168.1.111:50060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.115:5060;branch=z9hG4bK8dab2b0116eeb5c119079254c0589135;rport
From: <sip:111@pbx.lan>;tag=267741813
To: <sip:999@pbx.lan;user=phone>;tag=b0e9480e-7680-4733-8f04-f1e864439cb8
Call-ID: 1332342870@192_168_1_115
CSeq: 3 ACK
Contact: <sip:111@192.168.1.115:5060>
Authorization: Digest username="user111", realm="asterisk", qop=auth, algorithm=md5, uri="sip:999@pbx.lan;user=phone", nonce="1615291956/a51f580c40e27fd65e532841e26e72e8", nc=00000001, cnonce="bedf5430c84175688e47387f74c66ede", opaque="34d5617b3babc562", response="f8293a7a024d00175c5bd8083559076b"
Max-Forwards: 70
User-Agent: N510 IP PRO/42.258.00.000.000
Content-Length: 0
<--- Transmitting SIP request (412 bytes) to UDP:192.168.1.115:5060 --->
BYE sip:111@192.168.1.115:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.111:50060;rport;branch=z9hG4bKPj44f3d6f3-cbe7-40a0-bcb9-faa806367525
From: <sip:999@pbx.lan;user=phone>;tag=b0e9480e-7680-4733-8f04-f1e864439cb8
To: <sip:111@pbx.lan>;tag=267741813
Call-ID: 1332342870@192_168_1_115
CSeq: 13492 BYE
Reason: Q.850;cause=16
Max-Forwards: 70
User-Agent: Asterisk PBX 18.2.2
Content-Length: 0
<--- Received SIP response (394 bytes) from UDP:192.168.1.115:5060 --->
SIP/2.0 481 Call Leg/Transaction Does Not Exist
Via: SIP/2.0/UDP 192.168.1.111:50060;rport=50060;branch=z9hG4bKPj44f3d6f3-cbe7-40a0-bcb9-faa806367525
From: <sip:999@pbx.lan;user=phone>;tag=b0e9480e-7680-4733-8f04-f1e864439cb8
To: <sip:111@pbx.lan>;tag=267741813
Call-ID: 1332342870@192_168_1_115
CSeq: 13492 BYE
User-Agent: N510 IP PRO/42.258.00.000.000
Content-Length: 0
Firmware of the Gigaset base is up-to-date.