Hi Peio,

you can find two files attached, first one is a log from Linphone 4.2.4 and the second one is ngrep log from a server in which you can see that PBX sends 401 Unathorized message but the Linphone does not respond back with credentials.

Just to mention once again that everything works fine when both accounts have Register option enabled in their Settings. It seems that disabling Register option on a second account somehow affects proper deregistration process of the first account.

Best regards

/davor


On 12.1.2021. 16:03, Peio Rigaux wrote:
Hello.

Thanks for your report.

Could you please reproduce the issue and provide us logs in a reply of this email ?

I'm asking my colleague responsible of the desktop version if he has heard of this bug before.

However, as answers to these mailing lists are individual contributions, I can't guarantee you an answer from him.


Regards,

Peio Rigaux
Junior Software Engineer
Belledonne Communications, the company behind Linphone
Linphone.org <https://linphone.org/>

Le 01/12/2020 à 12:08, Davor Jovanovic a écrit :
Hi,

I would like to report an unregister problem on exit when having two SIP accounts. Linphone (ver. 4.2.3 and 4.2.4) for Windows.

Unregister on exit works fine when both accounts have the „Register“ option enabled in their „Main SIP account settings“.

Problem is when I disable the „Register“ option for a secondary SIP account. When exiting in this scenario the client generates REGISTER SIP message only for a primary SIP account (as expected) and a SIP server replies with 401 Unauthorized, but the client does not respond back with REGISTER SIP message filled with credentials and an unregister process isn’t successfully finished.


Best regards

/davor

_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users
2021-01-13 07:47:15:653 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:15:654 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:20:664 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:20:664 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:24:333 [/qt] MESSAGE QT: 
C:\GitLab-Runner\builds\651dcee5\2\BC\public\linphone-desktop\linphone-app\src\components\notifier\Notifier.cpp:234:
 "Delete notification:" NotificationNewVersionAvailable_QMLTYPE_295(0x117c3a28, 
name = "__internalWrapper")
2021-01-13 07:47:25:669 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:25:669 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:30:661 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:30:661 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:35:652 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:35:653 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:40:663 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:40:663 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:45:653 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:45:654 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:50:665 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:50:665 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:54:225 [/belle-sip] MESSAGE channel [11F19E18]: received [596] 
new bytes from [TCP://pbx.local.voip:5060]:
OPTIONS sip:[email protected]:52436;transport=tcp SIP/2.0

Via: SIP/2.0/TCP 10.10.20.105:5060;branch=z9hG4bK1102cc22;rport

Max-Forwards: 70

From: "asterisk" <sip:[email protected]>;tag=as56d9aa2e

To: <sip:[email protected]:52436;transport=tcp>

Contact: <sip:[email protected]:5060;transport=tcp>

Call-ID: [email protected]

CSeq: 102 OPTIONS

User-Agent: SRCE PBX

Date: Wed, 13 Jan 2021 06:47:54 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0




2021-01-13 07:47:54:228 [/belle-sip] MESSAGE channel [11F19E18] [596] bytes 
parsed
2021-01-13 07:47:54:228 [/belle-sip] MESSAGE channel [11F19E18]: message sent 
to [TCP://pbx.local.voip:5060], size: [300] bytes
SIP/2.0 200 Ok

Via: SIP/2.0/TCP 10.10.20.105:5060;branch=z9hG4bK1102cc22;rport

From: "asterisk" <sip:[email protected]>;tag=as56d9aa2e

To: <sip:[email protected]:52436;transport=tcp>;tag=NxvRU

Call-ID: [email protected]

CSeq: 102 OPTIONS

Content-Length: 0




2021-01-13 07:47:55:660 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:47:55:660 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:47:56:611 [/qt] MESSAGE QT: 
C:\GitLab-Runner\builds\651dcee5\2\BC\public\linphone-desktop\linphone-app\src\app\App.cpp:791:
 "Update nat policy."
2021-01-13 07:47:56:611 [/liblinphone] MESSAGE Sal nat helper [enabled]
2021-01-13 07:47:56:611 [/liblinphone] MESSAGE Sal use rports [enabled]
2021-01-13 07:48:00:659 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:48:00:659 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:48:05:660 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:48:05:660 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:48:10:643 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:48:10:643 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:48:15:650 [/liblinphone] MESSAGE Default local ipv4 address is 
10.10.10.118
2021-01-13 07:48:15:650 [/liblinphone] MESSAGE Default local ipv6 address is ::1
2021-01-13 07:48:17:595 [/qt] MESSAGE QT: 
C:\GitLab-Runner\builds\651dcee5\2\BC\public\linphone-desktop\linphone-app\src\app\App.cpp:217:
 "Destroying app..."
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE [ToneManager] 
linphoneCoreStopRinging
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE [ToneManager] doStopRingtone
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE [ToneManager] 
linphoneCoreStopDtmfStream
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE [ToneManager] doStopTone
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE Destroying friends.
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE Destroying friends done.
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE linphone_core_find_auth_info(): 
returning auth info username=527, realm=local.voip
2021-01-13 07:48:17:740 [/liblinphone] MESSAGE AuthStack::authFound() for 
Username[527];Userid[];Realm[local.voip];Domain[pbx.local.voip];Algorithm[];
2021-01-13 07:48:17:740 [/belle-sip] MESSAGE Auth info found for [527] realm 
[local.voip]
2021-01-13 07:48:17:741 [/belle-sip] MESSAGE Transaction [117BEB58] deleted
2021-01-13 07:48:17:741 [/belle-sip] MESSAGE Changing [client] [REGISTER] 
transaction [0DAA3010], from state [INIT] to [TRYING]
2021-01-13 07:48:17:741 [/belle-sip] MESSAGE channel [11F19E18]: message sent 
to [TCP://pbx.local.voip:5060], size: [908] bytes
REGISTER sip:pbx.local.voip SIP/2.0

Via: SIP/2.0/TCP 10.10.10.118:52436;alias;branch=z9hG4bK.VOGz9TB8R;rport

From: "Davor Jovanovic" <sip:[email protected]>;tag=eFbTU5WxL

To: "Davor Jovanovic" <sip:[email protected]>

CSeq: 22 REGISTER

Call-ID: eRNQdOVuiI

Max-Forwards: 70

Supported: replaces, outbound, gruu

Accept: application/sdp

Accept: text/plain

Accept: application/vnd.gsma.rcs-ft-http+xml

Contact: "Davor Jovanovic" 
<sip:[email protected]:52436;transport=tcp>;message-expires=604800;+sip.instance="<urn:uuid:0d41d0aa-fd67-008d-8a04-2848f48f5eb8>"

Expires: 0

User-Agent: Linphone Desktop/4.2.4 (Windows 10 Version 2004, Qt 5.14.2) 
LinphoneCore/4.4.9-1-g18c59c7db

Content-Length: 0

Authorization:  Digest realm="local.voip", nonce="539b4cc2", algorithm=MD5, 
username="527",  uri="sip:pbx.local.voip", 
response="2bbdd0b83a45ab6b7d6d232518d3180e"




2021-01-13 07:48:17:741 [/belle-sip] MESSAGE Refresher [11A9E838] stopped.
2021-01-13 07:48:17:741 [/liblinphone] MESSAGE Unregistration started.
2021-01-13 07:48:17:843 [/belle-sip] MESSAGE Refresher [11A9E838] stopped.
2021-01-13 07:48:17:844 [/belle-sip] MESSAGE Changing [client] [REGISTER] 
transaction [0DAA3010], from state [TRYING] to [TERMINATED]
2021-01-13 07:48:17:844 [/belle-sip] MESSAGE Client internal REGISTER 
transaction [0DAA3010] terminated
2021-01-13 07:48:17:844 [/liblinphone] MESSAGE Destroying op [116F4BC0] of type 
[SalOpRegister]
2021-01-13 07:48:17:844 [/belle-sip] MESSAGE Refresher [11A9E838] stopped.
2021-01-13 07:48:17:844 [/belle-sip] MESSAGE Transaction [0DAA3010] deleted
2021-01-13 07:48:17:844 [/belle-sip] MESSAGE Transaction [117BE6E0] deleted
2021-01-13 07:48:17:845 [/liblinphone] MESSAGE Reseting transports
2021-01-13 07:48:17:845 [/belle-sip] MESSAGE Listening point destroying [1] 
channels
2021-01-13 07:48:17:845 [/belle-sip] MESSAGE channel 11F19E18: state 
DISCONNECTED
2021-01-13 07:48:17:845 [/belle-sip] MESSAGE Channel [11F19E18] destroyed
2021-01-13 07:48:17:845 [/belle-sip] MESSAGE Listening point [0D605F50] on 
[sip:[::0]:5060;transport=UDP] destroyed
2021-01-13 07:48:17:846 [/belle-sip] MESSAGE Listening point [0D605AD0] on 
[sip:[::0]:5060;transport=TCP] destroyed
2021-01-13 07:48:17:846 [/belle-sip] MESSAGE Listening point [0D605B18] on 
[sip:[::0]:52430;transport=TLS] destroyed
2021-01-13 07:48:17:846 [/liblinphone] MESSAGE Sal::unlistenPorts(): done
2021-01-13 07:48:17:846 [/belle-sip] MESSAGE http provider destroyed.
2021-01-13 07:48:17:846 [/belle-sip] MESSAGE stack [0D3C5BE8] destroyed.
2021-01-13 07:48:17:906 [/liblinphone] MESSAGE Destroying core: 0D57FAD0
2021-01-13 07:48:17:906 [/liblinphone] MESSAGE [ToneManager] destroy 
ToneManager()
2021-01-13 07:48:17:906 [/qt] MESSAGE QT: 
C:\GitLab-Runner\builds\651dcee5\2\BC\public\linphone-desktop\linphone-app\src\components\contact\VcardModel.cpp:110:
 "Destroy attached vcard:" VcardModel(0xd7167d8)
T 10.10.10.118:52377 -> 10.10.20.105:5060 [AP] #1
REGISTER sip:pbx.local.voip SIP/2.0.
Via: SIP/2.0/TCP 10.10.10.118:52377;alias;branch=z9hG4bK.~qSx-dqOw;rport.
From: "Davor Jovanovic" <sip:[email protected]>;tag=Lz0qDtRvM.
To: "Davor Jovanovic" <sip:[email protected]>.
CSeq: 22 REGISTER.
Call-ID: Sd~zV4b6WI.
Max-Forwards: 70.
Supported: replaces, outbound, gruu.
Accept: application/sdp.
Accept: text/plain.
Accept: application/vnd.gsma.rcs-ft-http+xml.
Contact: "Davor Jovanovic" 
<sip:[email protected]:52377;transport=tcp>;message-expires=604800;+sip.instance="<urn:uuid:0d41d0aa-fd67-008d-8a04-2848f48f5eb8>".
Expires: 0.
User-Agent: Linphone Desktop/4.2.4 (Windows 10 Version 2004, Qt 5.14.2) 
LinphoneCore/4.4.9-1-g18c59c7db.
Content-Length: 0.
Authorization:  Digest realm="local.voip", nonce="59422c75", algorithm=MD5, 
username="527",  uri="sip:pbx.local.voip", 
response="023fdd9663111312fc65f0e7f1e9e9ef".
.

##
T 10.10.20.105:5060 -> 10.10.10.118:52377 [AP] #3
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/TCP 
10.10.10.118:52377;alias;branch=z9hG4bK.~qSx-dqOw;received=10.10.10.118;rport=52377.
From: "Davor Jovanovic" <sip:[email protected]>;tag=Lz0qDtRvM.
To: "Davor Jovanovic" <sip:[email protected]>;tag=as6b3ad762.
Call-ID: Sd~zV4b6WI.
CSeq: 22 REGISTER.
Server: SRCE PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE.
Supported: replaces, timer.
WWW-Authenticate: Digest algorithm=MD5, realm="local.voip", nonce="7198d479".
Content-Length: 0.
_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to