[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] Linphone app -- registration failed
From: |
Michael S |
Subject: |
[Linphone-developers] Linphone app -- registration failed |
Date: |
Wed, 17 Aug 2016 15:00:28 +0600 |
I compiled both Linphone android app and Linphone andrid sdk in the same time
with commands:
./prepare.py -DENABLE_DEBUG_LOGS=YES -DENABLE_NON_FREE_CODECS=YES
-DENABLE_G729=YES -d
make
make liblinphone-android-sdk
Compiled SDK has name liblinphone-android-sdk-3.1.1-376-g4487d38.zip
SDK is used in my Android application and REGISTER with FreeSwitch is fine.
But Linphone app is unable to register and displays "Registration fail".
Below are logs from FreeSwitch side. Linphone app does not send second REGISTER
with "Authorization:" field.
Also included logs from Linphone app logcat.
Freeswitch uses non-standard port 55060, so proxy is specified as
"sip:yyy.yyy.yyy.yyy:55060;transport=tcp"
both in my app (via proxyConfig.setProxy(...) ) and Linphone app (Settings->SIP
Account->Proxy)
Any advice will be appreciated.
********************* My app with SDK ******************
recv 583 bytes from tcp/[xxx.xxx.xxx.xxx]:48538 at 17:54:59.988123:
------------------------------------------------------------------------
REGISTER sip:yyy.yyy.yyy.yyy SIP/2.0
Via: SIP/2.0/TCP 172.17.254.5:48538;alias;branch=z9hG4bK.rU7PJbBQe;rport
From: <sip:address@hidden>;tag=z-a8TUUUY
To: sip:address@hidden
CSeq: 20 REGISTER
Call-ID: yMvPKjWZ24
Max-Forwards: 70
Supported: replaces, outbound
Accept: application/sdp
Accept: text/plain
Accept: application/vnd.gsma.rcs-ft-http+xml
Contact:
<sip:address@hidden:48538;transport=tcp>;+sip.instance="<urn:uuid:c0aa9f87-e42b-4c0d-96a1-d0fc493bbaf1>"
Expires: 604800
User-Agent: Unknown (belle-sip/1.4.2)
Content-Length: 0
------------------------------------------------------------------------
send 623 bytes to tcp/[xxx.xxx.xxx.xxx]:48538 at 17:54:59.988817:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP
172.17.254.5:48538;alias;branch=z9hG4bK.rU7PJbBQe;rport=48538;received=xxx.xxx.xxx.xxx
From: <sip:address@hidden>;tag=z-a8TUUUY
To: <sip:address@hidden>;tag=5p429acaFZKSp
Call-ID: yMvPKjWZ24
CSeq: 20 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.6.9-16-d574870~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER,
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="yyy.yyy.yyy.yyy",
nonce="cf51bf54-7dac-4e6b-af31-a8929bf3da30", algorithm=MD5, qop="auth"
Content-Length: 0
------------------------------------------------------------------------
recv 838 bytes from tcp/[xxx.xxx.xxx.xxx]:48538 at 17:55:00.499572:
------------------------------------------------------------------------
REGISTER sip:yyy.yyy.yyy.yyy SIP/2.0
Via: SIP/2.0/TCP 172.17.254.5:48538;alias;branch=z9hG4bK.bAJnUOcBj;rport
From: <sip:address@hidden>;tag=z-a8TUUUY
To: sip:address@hidden
CSeq: 21 REGISTER
Call-ID: yMvPKjWZ24
Max-Forwards: 70
Supported: replaces, outbound
Accept: application/sdp
Accept: text/plain
Accept: application/vnd.gsma.rcs-ft-http+xml
Contact:
<sip:address@hidden:48538;transport=tcp>;+sip.instance="<urn:uuid:c0aa9f87-e42b-4c0d-96a1-d0fc493bbaf1>"
Expires: 604800
User-Agent: Unknown (belle-sip/1.4.2)
Content-Length: 0
Authorization: Digest realm="yyy.yyy.yyy.yyy",
nonce="cf51bf54-7dac-4e6b-af31-a8929bf3da30", algorithm=MD5,
username="71111111111", uri="sip:yyy.yyy.yyy.yyy",
response="a6f2a456a683bac8213158f9e0d08ffa", cnonce="ZE2C4qL-xLmDBEDi",
nc=00000001, qop=auth
send 605 bytes to tcp/[xxx.xxx.xxx.xxx]:48538 at 17:55:00.508240:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/TCP
172.17.254.5:48538;alias;branch=z9hG4bK.bAJnUOcBj;rport=48538;received=xxx.xxx.xxx.xxx
From: <sip:address@hidden>;tag=z-a8TUUUY
To: <sip:address@hidden>;tag=6ZXUB6vDc89Bj
Call-ID: yMvPKjWZ24
CSeq: 21 REGISTER
Contact: <sip:address@hidden:48538;transport=tcp>;expires=604800
Date: Wed, 17 Aug 2016 07:55:00 GMT
User-Agent: FreeSWITCH-mod_sofia/1.6.9-16-d574870~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER,
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0
------------------------------------------------------------------------
*************** Linphone app ***********************
recv 608 bytes from tcp/[xxx.xxx.xxx.xxx]:45464 at 18:04:25.073815:
------------------------------------------------------------------------
REGISTER sip:yyy.yyy.yyy.yyy SIP/2.0
Via: SIP/2.0/TCP 172.17.254.4:45464;alias;branch=z9hG4bK.k5g4WmHZ7;rport
From: <sip:address@hidden>;tag=~qWxuLXGe
To: sip:address@hidden
CSeq: 20 REGISTER
Call-ID: wLFNrDtp12
Max-Forwards: 70
Supported: replaces, outbound
Accept: application/sdp
Accept: text/plain
Accept: application/vnd.gsma.rcs-ft-http+xml
Contact:
<sip:address@hidden:45464;transport=tcp>;+sip.instance="<urn:uuid:1fa16e48-1865-4fd5-baa8-dc316e4b0fcc>"
Expires: 3600
User-Agent: LinphoneAndroid/3.1.1-376-g4487d38 (belle-sip/1.4.2)
Content-Length: 0
------------------------------------------------------------------------
send 623 bytes to tcp/[xxx.xxx.xxx.xxx]:45464 at 18:04:25.074587:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP
172.17.254.4:45464;alias;branch=z9hG4bK.k5g4WmHZ7;rport=45464;received=xxx.xxx.xxx.xxx
From: <sip:address@hidden>;tag=~qWxuLXGe
To: <sip:address@hidden>;tag=BDvQmDHZXmS9B
Call-ID: wLFNrDtp12
CSeq: 20 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.6.9-16-d574870~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER,
REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="yyy.yyy.yyy.yyy",
nonce="04b5646d-a04e-4bbd-a3f7-dfc55c0e88be", algorithm=MD5, qop="auth"
Content-Length: 0
------------------------------------------------------------------------
************************ Logcat **************************
I/Linphone( 5096): channel [0x55d1f408]: received [623] new bytes from
[TCP://yyy.yyy.yyy.yyy:55060]:
I/Linphone( 5096): SIP/2.0 401 Unauthorized
I/Linphone( 5096): Via: SIP/2.0/TCP
172.17.254.4:45465;alias;branch=z9hG4bK.t4ULtgY2U;rport=45465;received=xxx.xxx.xxx.xxx
I/Linphone( 5096): From: <sip:address@hidden>;tag=6S4h8Ph1d
I/Linphone( 5096): To: <sip:address@hidden>;tag=2v1HXUmgU1SQp
I/Linphone( 5096): Call-ID: ns~9nhkbXe
I/Linphone( 5096): CSeq: 20 REGISTER
I/Linphone( 5096): User-Agent: FreeSWITCH-mod_sofia/1.6.9-16-d574870~64bit
I/Linphone( 5096): Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
I/Linphone( 5096): Supported: timer, path, replaces
I/Linphone( 5096): WWW-Authenticate: Digest realm="yyy.yyy.yyy.yyy",
nonce="6f1f8844-5452-49c2-853a-03d590169b17", algorithm=MD5, qop="auth"
I/Linphone( 5096): Content-Length: 0
I/Linphone( 5096): channel [0x55d1f408] [623] bytes parsed
I/Linphone( 5096): Found transaction matching response.
I/Linphone( 5096): Changing [client] [REGISTER] transaction [0x56c9ce28], from
state [TRYING] to [COMPLETED]
I/Linphone( 5096): Linphone core [0x563752b8] notifying [auth_info_requested]
I/Linphone( 5096): No auth info found for call id [ns~9nhkbXe]
I/Linphone( 5096): Auth info not found for this refresh operation on
[0x56398e58]
I/Linphone( 5096): Register refresher [401] reason [Unauthorized] for proxy
[<sip:yyy.yyy.yyy.yyy:55060;transport=tcp>]
I/Linphone( 5096): Registration on <sip:yyy.yyy.yyy.yyy:55060;transport=tcp>
failed: Unauthorized
I/Linphone( 5096): Linphone core [0x563752b8] notifying [display_status]
I/Linphone( 5096): Proxy config [0x55efcfb0] for identity [sip:address@hidden
moving from state [LinphoneRegistrationProgress] to
[LinphoneRegistrationFailed] on core [0x563752b8]
- [Linphone-developers] Linphone app -- registration failed,
Michael S <=