Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baresip IOT linphone 401Wrong MESSAGE-INTEGRITY attribute in same NAT #66

Closed
lecheel opened this issue Aug 15, 2015 · 2 comments
Closed

Comments

@lecheel
Copy link

lecheel commented Aug 15, 2015

hi any comment how to IOT baresip vs linphone with ICE/STUN

baresip v0.4.13 Copyright (C) 2010 - 2015 Alfred E. Heggestad et al.
Local network address: IPv4=en0:192.168.0.188
aucodec: PCMU/8000/1
aucodec: PCMA/8000/1
aufilt: vumeter
auplay: coreaudio
ausrc: coreaudio
vidcodec: H264
vidcodec: H263
vidcodec: MP4V-ES
vidsrc: avformat
vidisp: opengl
medianat: stun
medianat: turn
medianat: ice
using stunserver: 'stun:stun03.vccloud.quantatw.com'
qic6@quantatw.com: Using sipnat: `outbound'
qic6@quantatw.com: Using medianat `ice'
Populated 1 account
Populated 4 contacts
Populated 2 audio codecs
Populated 1 audio filter
Populated 3 video codecs
Populated 0 video filters
baresip is ready.
qic6@quantatw.com: {1/UDP/v4} 200 OK (kamailio (3.2.3 (x86_64/linux))) [1 binding]
All 1 useragent registered successfully! (113 ms)

call: connecting to 'sip:tl-qqq@quantatw.com'..
ice: audio: Default local candidates: 114.25.62.62:35072 / 114.25.62.62:35073
ice: video: Default local candidates: 114.25.62.62:9822 / 114.25.62.62:9823
call: SIP Progress: 100 trying -- your call is important to us (/)
call: SIP Progress: 180 Ringing (/)
main: long async blocking: 186>100 ms (h=0x10b37cb20 arg=0x7f8c6ad01470)
call: SIP Progress: 180 Ringing (/)
main: long async blocking: 177>100 ms (h=0x10b37cb20 arg=0x7f8c6ad01470)
{      audio.1} Set default remote candidate: srflx:114.25.62.62:7076
{      audio.2} Set default remote candidate: srflx:114.25.62.62:7077
{      video.1} Set default remote candidate: srflx:114.25.62.62:9078
{      video.2} Set default remote candidate: srflx:114.25.62.62:9079
chklist: audio: pruned candidate pairs: 4
{      audio.1}  host <--->  host  FSM:      Frozen ===> Waiting
{      audio.1}  host <---> srflx  FSM:      Frozen ===> Waiting
{      audio. } starting connectivity checks with 4 candidate pairs
chklist: video: pruned candidate pairs: 4
{      video. } starting connectivity checks with 4 candidate pairs
audio: Set audio decoder: PCMU 8000Hz 1ch
audio: Set audio encoder: PCMU 8000Hz 1ch
audio tx pipeline:   coreaudio ---> vumeter ---> PCMU
audio rx pipeline:   coreaudio <--- vumeter <--- PCMU
Set video encoder: H264 packetization-mode=0 (500000 bit/s, 25 fps)
qic6@quantatw.com: Call established: sip:tl-qqq@quantatw.com
Set video decoder: H264 packetization-mode=0
video: no video source 'avformat': No such file or directory
video: could not set encoder format to [720 x 400] No such file or directory
video tx pipeline:        src ---> H264
video rx pipeline:     opengl <--- H264
main: long async blocking: 333>100 ms (h=0x10b37cb20 arg=0x7f8c6ad01470)
{      audio.1}  host <--->  host  FSM:     Waiting ===> InProgress
{      audio.1} Tx en0:host:192.168.0.188:35072 ---> host:192.168.0.102:7076 (InProgress)
{      video.1}  host <--->  host  FSM:      Frozen ===> InProgress
{      video.1} Tx en0:host:192.168.0.188:9822 ---> host:192.168.0.102:9078 (InProgress)
{      audio.1} Rx en0:host:192.168.0.188:35072 <--- host:192.168.0.102:7076 '401 Wrong MESSAGE-INTEGRITY attribute'
connchk: {audio.1} STUN Response: 401 Wrong MESSAGE-INTEGRITY attribute
{      audio.1}  host <--->  host  FSM:  InProgress ===> Failed
{      audio.1}  host <---> srflx  FSM:     Waiting ===> InProgress
{      audio.1} Tx en0:host:192.168.0.188:35072 ---> srflx:114.25.62.62:7076 (InProgress)
{      video.1} Rx en0:host:192.168.0.188:9822 <--- host:192.168.0.102:9078 '401 Wrong MESSAGE-INTEGRITY attribute'
connchk: {video.1} STUN Response: 401 Wrong MESSAGE-INTEGRITY attribute
{      video.1}  host <--->  host  FSM:  InProgress ===> Failed
{      video.2}  host <--->  host  FSM:      Frozen ===> InProgress
{      video.2} Tx en0:host:192.168.0.188:9823 ---> host:192.168.0.102:9079 (InProgress)
{      video.2} Rx en0:host:192.168.0.188:9823 <--- host:192.168.0.102:9079 '401 Wrong MESSAGE-INTEGRITY attribute'
connchk: {video.2} STUN Response: 401 Wrong MESSAGE-INTEGRITY attribute
{      video.2}  host <--->  host  FSM:  InProgress ===> Failed
{      video.1}  host <---> srflx  FSM:      Frozen ===> InProgress
{      video.1} Tx en0:host:192.168.0.188:9822 ---> srflx:114.25.62.62:9078 (InProgress)
sip:tl-qqq@quantatw.com: session closed: Connection reset by peer            ]
sip:qic6@quantatw.com: Call with sip:tl-qqq@quantatw.com terminated (duration: 7 secs)
main: long async blocking: 133>100 ms (h=0x10b37cb20 arg=0x7f8c6ad01470)
terminated by signal 2
Stopping 1 useragent..
@lecheel
Copy link
Author

lecheel commented Aug 17, 2015

it's fixed by Android linphone latest version I'm test on 2.5.0

@alfredh
Copy link
Collaborator

alfredh commented Sep 19, 2015

okay, that is great news.

Please note that libre's STUN stack has been used in production environment for many years
and has 100% compliancy with IETF specifications and most large vendors.

it also has regression testcases in retest that can be used to verify the code:

http://www.creytiv.com/pub/retest-0.4.2.tar.gz

if someone was wrong it might be due to build-errors, but the retest will reveal that quickly.

@alfredh alfredh closed this as completed Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants