... and notifications On Thu, 29 Jul 2021 at 09:51, Alberto <alberto.rina...@gmail.com> wrote:
> he, here's a new call > > On Wed, 28 Jul 2021 at 23:26, Adrian Georgescu <a...@ag-projects.com> wrote: > >> The 200 OK is not correctly handed. Can you enable both notifications and >> pjsip traces as well >> >> On 28 Jul 2021, at 19:00, Alberto <alberto.rina...@gmail.com> wrote: >> >> Hi, >> I mentioned I'm reproducing this on my own asterisk vm, >> I happen to have the cli open and noticed this error when blink cores >> >> [Jul 28 22:39:43] WARNING[24030]: pjproject: <?>: tsx0x7f7e5c315d48 >> .Error sending Response msg 200/INVITE/cseq=19985 (tdta0x7f7e50010d68): >> Invalid operation (PJ_EINVALIDOP) >> >> >> >> On Wed, 28 Jul 2021 at 22:54, Alberto <alberto.rina...@gmail.com> wrote: >> >>> attached, thanks for looking into this. >>> >>> On Wed, 28 Jul 2021 at 22:01, Adrian Georgescu <a...@ag-projects.com> >>> wrote: >>> >>>> Can you show the sip trace. Enable SIP trace file logging. >>>> >>>> Adrian >>>> >>>> >>>> >>>> On 28 Jul 2021, at 17:57, Alberto <alberto.rina...@gmail.com> wrote: >>>> >>>> I have python3-sipsimple 5.2.5buster amd64 >>>> >>>> On Wed, 28 Jul 2021 at 17:57, Adrian Georgescu <a...@ag-projects.com> >>>> wrote: >>>> >>>>> What version of python3-sipsimple are you running? >>>>> >>>>> dpkg -l python3-sipsimple >>>>> >>>>> On 28 Jul 2021, at 13:50, Alberto <alberto.rina...@gmail.com> wrote: >>>>> >>>>> I could do that, at least now we know that the "Unsupported Protocol" >>>>> is about. >>>>> >>>>> But now I have another problem, I tried to make a call using tls 1.2 >>>>> and sdes. >>>>> Blink established the call, I got less than half a second of audio, >>>>> then cored. >>>>> >>>>> I followed this for crash reports: >>>>> https://icanblink.com/help/problems-qt/ >>>>> but I don't see anything useful here. Any advice? >>>>> >>>>> $ gdb -c core blink >>>>> GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2 >>>>> Copyright (C) 2020 Free Software Foundation, Inc. >>>>> License GPLv3+: GNU GPL version 3 or later < >>>>> http://gnu.org/licenses/gpl.html> >>>>> This is free software: you are free to change and redistribute it. >>>>> There is NO WARRANTY, to the extent permitted by law. >>>>> Type "show copying" and "show warranty" for details. >>>>> This GDB was configured as "x86_64-linux-gnu". >>>>> Type "show configuration" for configuration details. >>>>> For bug reporting instructions, please see: >>>>> <http://www.gnu.org/software/gdb/bugs/>. >>>>> Find the GDB manual and other documentation resources online at: >>>>> <http://www.gnu.org/software/gdb/documentation/>. >>>>> >>>>> For help, type "help". >>>>> Type "apropos word" to search for commands related to "word"... >>>>> "/usr/bin/blink": not in executable format: file format not recognized >>>>> [New LWP 3893] >>>>> [New LWP 3887] >>>>> [New LWP 3905] >>>>> [New LWP 3910] >>>>> [New LWP 3914] >>>>> [New LWP 3883] >>>>> [New LWP 3885] >>>>> [New LWP 3891] >>>>> [New LWP 3917] >>>>> [New LWP 3901] >>>>> [New LWP 3884] >>>>> [New LWP 3886] >>>>> [New LWP 3889] >>>>> [New LWP 3890] >>>>> [New LWP 3912] >>>>> [New LWP 3902] >>>>> [New LWP 3913] >>>>> [New LWP 3881] >>>>> [New LWP 3915] >>>>> [New LWP 3916] >>>>> Core was generated by `/usr/bin/python3 /usr/bin/blink'. >>>>> Program terminated with signal SIGSEGV, Segmentation fault. >>>>> #0 0x00007f945cf6a955 in ?? () >>>>> [Current thread is 1 (LWP 3893)] >>>>> (gdb) >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, 28 Jul 2021 at 17:43, <bl...@neilzone.co.uk> wrote: >>>>> >>>>>> >>>>>> >>>>>> On 28 Jul 2021, at 17:24, Alberto <alberto.rina...@gmail.com> wrote: >>>>>> >>>>>> the problem is that the server only accepts tls 1 and >>>>>> >>>>>> >>>>>> i thought TLS 1.0 and TLS 1.1 had been deprecated? >>>>>> >>>>>> If you had to make it work, could you use asterisk to connect to the >>>>>> SIP provider, and then use Blink to connect to asterisk? (In other worse, >>>>>> running your own PBX until the SIP trunk provider upgrades their security >>>>>> to something more modern.) >>>>>> >>>>>> Best wishes >>>>>> >>>>>> Neil >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Blink mailing list >>>>>> Blink@lists.ag-projects.com >>>>>> https://lists.ag-projects.com/mailman/listinfo/blink >>>>>> >>>>> _______________________________________________ >>>>> Blink mailing list >>>>> Blink@lists.ag-projects.com >>>>> https://lists.ag-projects.com/mailman/listinfo/blink >>>>> >>>>> >>>>> _______________________________________________ >>>>> Blink mailing list >>>>> Blink@lists.ag-projects.com >>>>> https://lists.ag-projects.com/mailman/listinfo/blink >>>>> >>>> _______________________________________________ >>>> Blink mailing list >>>> Blink@lists.ag-projects.com >>>> https://lists.ag-projects.com/mailman/listinfo/blink >>>> >>>> >>>> _______________________________________________ >>>> Blink mailing list >>>> Blink@lists.ag-projects.com >>>> https://lists.ag-projects.com/mailman/listinfo/blink >>>> >>> _______________________________________________ >> Blink mailing list >> Blink@lists.ag-projects.com >> https://lists.ag-projects.com/mailman/listinfo/blink >> >> >> _______________________________________________ >> Blink mailing list >> Blink@lists.ag-projects.com >> https://lists.ag-projects.com/mailman/listinfo/blink >> >
2021-07-29 09:43:34.872013 [blink 1605]: Notification name=BlinkSessionWasCreated sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData() 2021-07-29 09:43:34.876319 [blink 1605]: Notification name=BlinkSessionDidChangeState sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(old_state=None, new_state='initialized') 2021-07-29 09:43:34.916001 [blink 1605]: Notification name=BlinkSessionNewOutgoing sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData() 2021-07-29 09:43:34.916127 [blink 1605]: Notification name=BlinkSessionListSelectionChanged sender=<blink.sessions.ChatSessionListView object at 0x7fda5d0998b0> data=NotificationData(selected_session=<blink.sessions.BlinkSession object at 0x7fda5d202a00>, deselected_session=None) 2021-07-29 09:43:34.916201 [blink 1605]: Notification name=BlinkSessionInfoUpdated sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(elements={'media', 'session', 'statistics'}) 2021-07-29 09:43:34.929546 [blink 1605]: Notification name=BlinkSessionDidChangeState sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(old_state='initialized', new_state='connecting/dns_lookup') 2021-07-29 09:43:34.929682 [blink 1605]: Notification name=BlinkSessionWillConnect sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(sibling=None) 2021-07-29 09:43:34.957321 [blink 1605]: Notification name=ChatSessionItemDidChange sender=ChatSessionItem(<blink.sessions.BlinkSession object at 0x7fda5d202a00>) data=NotificationData() 2021-07-29 09:43:34.957495 [blink 1605]: Notification name=BlinkSessionListSelectionChanged sender=<blink.sessions.AudioSessionListView object at 0x7fda5d25fa60> data=NotificationData(selected_session=<blink.sessions.BlinkSession object at 0x7fda5d202a00>, deselected_session=None) 2021-07-29 09:43:34.957611 [blink 1605]: Notification name=BlinkActiveSessionDidChange sender=<blink.sessions.SessionManager object at 0x7fda5d08cd00> data=NotificationData(previous_active_session=None, active_session=<blink.sessions.BlinkSession object at 0x7fda5d202a00>) 2021-07-29 09:43:34.957718 [blink 1605]: Notification name=BlinkSessionConnectionProgress sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(stage='dns_lookup') 2021-07-29 09:43:34.959011 [blink 1605]: Notification name=DNSLookupTrace sender=<sipsimple.lookup.DNSLookup object at 0x7fda5cb5d760> data=NotificationData(query_type='A', query_name='sip.provider.net', nameservers=['127.0.0.53'], answer=<dns.resolver.Answer object at 0x7fda5d2194f0>, error=None, context='lookup_sip_proxy', uri=SIPURI(b'sip.provider.net', None, None, 5061, False, {'transport': 'tls'}, {})) 2021-07-29 09:43:34.959172 [blink 1605]: Notification name=DNSLookupDidSucceed sender=<sipsimple.lookup.DNSLookup object at 0x7fda5cb5d760> data=NotificationData(result=[Route('217.75.85.122', port=5061, transport='tls', tls_name='provider.net')]) 2021-07-29 09:43:34.969038 [blink 1605]: Notification name=BlinkSessionDidChangeState sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(old_state='connecting/dns_lookup', new_state='connection/dns_lookup_succeeded') 2021-07-29 09:43:34.969848 [blink 1605]: Notification name=SIPSessionNewOutgoing sender=<sipsimple.session.Session object at 0x7fda5cb5da60> data=NotificationData(streams=[<sipsimple.streams.rtp.audio.AudioStream object at 0x7fda5cb1cdf0>]) 2021-07-29 09:43:34.976833 [blink 1605]: Notification name=BlinkSessionDidChangeState sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(old_state='connection/dns_lookup_succeeded', new_state='connecting') 2021-07-29 09:43:34.978441 [blink 1605]: Notification name=BlinkSessionConnectionProgress sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(stage='connecting') 2021-07-29 09:43:34.978538 [blink 1605]: Notification name=BlinkSessionInfoUpdated sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(elements={'session'}) 2021-07-29 09:43:35.076259 [blink 1605]: Notification name=RTPTransportDidInitialize sender=<sipsimple.core._core.RTPTransport object at 0x7fda5cb55d30> data=NotificationData() 2021-07-29 09:43:35.078364 [blink 1605]: Notification name=MediaStreamDidInitialize sender=<sipsimple.streams.rtp.audio.AudioStream object at 0x7fda5cb1cdf0> data=NotificationData() 2021-07-29 09:43:35.103800 [blink 1605]: Notification name=SIPInvitationChangedState sender=<sipsimple.core._core.Invitation object at 0x7fda5cb4ea60> data=NotificationData(prev_state=None, state='outgoing', originator='local', headers={'Via': [FrozenViaHeader('TLS', '192.168.0.15', 39103, frozendict({'alias': None, 'rport': 0, 'branch': 'z9hG4bKPj5ee4ce8a-f049-11eb-a63e-bfc50dd0085e'}))], 'Max-Forwards': 70, 'From': FrozenFromHeader(FrozenSIPURI('sip.provider.net', '1000', None, None, False, frozendict({}), frozendict({})), '1000', frozendict({'tag': '5ee2b35c-f049-11eb-b853-2797e780240f'})), 'To': FrozenToHeader(FrozenSIPURI('sip.provider.net', '0', None, None, False, frozendict({}), frozendict({})), None, frozendict({})), 'Contact': [FrozenContactHeader(FrozenSIPURI('192.168.0.15', '69018234', None, 36787, False, frozendict({'transport': 'tls'}), frozendict({})), None, frozendict({'q': '0.0', 'expires': '-1'}))], 'Call-ID': FrozenHeader('Call-ID', '5ee88c82-f049-11eb-b75b-b7233f2233c8'), 'CSeq': (30187, 'INVITE'), 'Route': [FrozenRouteHeader(FrozenSIPURI('217.75.85.122', None, None, None, False, frozendict({'transport': 'tls', 'lr': None, 'hide': None, 'tls_name': 'provider.net'}), frozendict({})), None, frozendict({}))], 'Allow': [b'SUBSCRIBE', b'NOTIFY', b'INVITE', b'ACK', b'BYE', b'CANCEL', b'UPDATE', b'MESSAGE', b'REFER'], 'Supported': [b'replaces', b'norefersub', b'gruu'], 'User-Agent': FrozenHeader('User-Agent', 'Blink 5.1.3 (Linux)')}, body=b'v=0\r\no=- 3836537015 3836537015 IN IP4 192.168.0.15\r\ns=Blink 5.1.3 (Linux)\r\nt=0 0\r\nm=audio 50000 RTP/SAVP 3 8 101\r\nc=IN IP4 192.168.0.15\r\na=rtcp:50001\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:C/pTxqoCx7Fc0u15ONE//qyX2gGBhtE6DXqumAjI\r\na=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:WHJ2g5md9gZAoolFZcXwvFTub/rp+DdhpsZILb9o\r\na=sendrecv\r\n', method='INVITE', request_uri=FrozenSIPURI('sip.provider.net', '0', None, None, False, frozendict({}), frozendict({}))) 2021-07-29 09:43:35.209739 [blink 1605]: Notification name=SIPInvitationChangedState sender=<sipsimple.core._core.Invitation object at 0x7fda5cb4ea60> data=NotificationData(prev_state='outgoing', state='connecting', originator='remote', headers={'Via': [FrozenViaHeader('TLS', '192.168.0.15', 39103, frozendict({'alias': None, 'rport': 48824, 'received': '172.0.0.13', 'branch': 'z9hG4bKPj5eea923e-f049-11eb-bbe1-fff7adcb7972'}))], 'Call-ID': FrozenHeader('Call-ID', '5ee88c82-f049-11eb-b75b-b7233f2233c8'), 'From': FrozenFromHeader(FrozenSIPURI('sip.provider.net', '1000', None, None, False, frozendict({}), frozendict({})), '1000', frozendict({'tag': '5ee2b35c-f049-11eb-b853-2797e780240f'})), 'To': FrozenToHeader(FrozenSIPURI('sip.provider.net', '0', None, None, False, frozendict({}), frozendict({})), None, frozendict({'tag': '5ee08ffa-f049-11eb-892b-d3e19dc6cb17'})), 'CSeq': (30188, 'INVITE'), 'Server': FrozenHeader('Server', '1000PBX'), 'Contact': [FrozenContactHeader(FrozenSIPURI('172.0.0.217', None, None, 5061, False, frozendict({'transport': 'TLS'}), frozendict({})), None, frozendict({'q': '0.0', 'expires': '-1'}))], 'Allow': [b'OPTIONS', b'REGISTER', b'SUBSCRIBE', b'NOTIFY', b'PUBLISH', b'INVITE', b'ACK', b'BYE', b'CANCEL', b'UPDATE', b'PRACK', b'MESSAGE', b'REFER'], 'Supported': [b'100rel', b'timer', b'replaces', b'norefersub'], 'Content-Type': FrozenContentTypeHeader('application/sdp', frozendict({})), 'Content-Length': 345}, body=b'v=0\r\no=- 3836537015 3836537017 IN IP4 172.0.0.217\r\ns=Asterisk\r\nc=IN IP4 172.0.0.217\r\nt=0 0\r\nm=audio 12994 RTP/SAVP 3 8 101\r\na=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:d0tUarUhywLuXqG5CU3SR8TijgF2/ril8GDE7vOq\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-16\r\na=ptime:20\r\na=maxptime:150\r\na=sendrecv\r\n', code=200, reason='OK') 2021-07-29 09:43:35.210029 [blink 1605]: Notification name=SIPInvitationGotSDPUpdate sender=<sipsimple.core._core.Invitation object at 0x7fda5cb4ea60> data=NotificationData(succeeded=True, local_sdp=FrozenSDPSession(b'192.168.0.15', 3836537015, 3836537015, b'-', b'IN', b'IP4', b'Blink 5.1.3 (Linux)', None, 0, 0, frozenlist([]), frozenlist([]), frozenlist([FrozenSDPMediaStream(b'audio', 50000, b'RTP/SAVP', 1, frozenlist([b'3', b'8', b'101']), FrozenSDPConnection(b'192.168.0.15', b'IN', b'IP4'), frozenlist([FrozenSDPAttribute(b'rtcp', b'50001'), FrozenSDPAttribute(b'rtpmap', b'3 GSM/8000'), FrozenSDPAttribute(b'rtpmap', b'8 PCMA/8000'), FrozenSDPAttribute(b'rtpmap', b'101 telephone-event/8000'), FrozenSDPAttribute(b'fmtp', b'101 0-16'), FrozenSDPAttribute(b'crypto', b'1 AES_CM_128_HMAC_SHA1_80 inline:C/pTxqoCx7Fc0u15ONE//qyX2gGBhtE6DXqumAjI'), FrozenSDPAttribute(b'crypto', b'2 AES_CM_128_HMAC_SHA1_32 inline:WHJ2g5md9gZAoolFZcXwvFTub/rp+DdhpsZILb9o'), FrozenSDPAttribute(b'sendrecv', b'')]), frozenlist([]))])), remote_sdp=FrozenSDPSession(b'172.0.0.217', 3836537015, 3836537017, b'-', b'IN', b'IP4', b'Asterisk', FrozenSDPConnection(b'172.0.0.217', b'IN', b'IP4'), 0, 0, frozenlist([]), frozenlist([]), frozenlist([FrozenSDPMediaStream(b'audio', 12994, b'RTP/SAVP', 0, frozenlist([b'3', b'8', b'101']), None, frozenlist([FrozenSDPAttribute(b'crypto', b'1 AES_CM_128_HMAC_SHA1_80 inline:d0tUarUhywLuXqG5CU3SR8TijgF2/ril8GDE7vOq'), FrozenSDPAttribute(b'rtpmap', b'3 GSM/8000'), FrozenSDPAttribute(b'rtpmap', b'8 PCMA/8000'), FrozenSDPAttribute(b'rtpmap', b'101 telephone-event/8000'), FrozenSDPAttribute(b'fmtp', b'101 0-16'), FrozenSDPAttribute(b'ptime', b'20'), FrozenSDPAttribute(b'maxptime', b'150'), FrozenSDPAttribute(b'sendrecv', b'')]), frozenlist([]))]))) 2021-07-29 09:43:35.210166 [blink 1605]: Notification name=SIPInvitationChangedState sender=<sipsimple.core._core.Invitation object at 0x7fda5cb4ea60> data=NotificationData(prev_state='connecting', state='connected', sub_state='normal', originator=None, headers={}, body=None) 2021-07-29 09:43:35.210288 [blink 1605]: Notification name=SIPSessionWillStart sender=<sipsimple.session.Session object at 0x7fda5cb5da60> data=NotificationData() 2021-07-29 09:43:35.210411 [blink 1605]: Notification name=BlinkSessionDidChangeState sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(old_state='connecting', new_state='connecting/starting') 2021-07-29 09:43:35.210532 [blink 1605]: Notification name=BlinkSessionConnectionProgress sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(stage='starting') 2021-07-29 09:43:35.210664 [blink 1605]: Notification name=BlinkSessionInfoUpdated sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(elements={'media', 'session'}) 2021-07-29 09:43:35.210775 [blink 1605]: Notification name=MediaStreamDidStart sender=<sipsimple.streams.rtp.audio.AudioStream object at 0x7fda5cb1cdf0> data=NotificationData() 2021-07-29 09:43:35.210894 [blink 1605]: Notification name=RTPStreamDidEnableEncryption sender=<sipsimple.streams.rtp.audio.AudioStream object at 0x7fda5cb1cdf0> data=NotificationData() 2021-07-29 09:43:35.211016 [blink 1605]: Notification name=SIPSessionDidProcessTransaction sender=<sipsimple.session.Session object at 0x7fda5cb5da60> data=NotificationData(originator='local', method='INVITE', code=200, reason='OK') 2021-07-29 09:43:35.211143 [blink 1605]: Notification name=SIPSessionDidStart sender=<sipsimple.session.Session object at 0x7fda5cb5da60> data=NotificationData(streams=[<sipsimple.streams.rtp.audio.AudioStream object at 0x7fda5cb1cdf0>]) 2021-07-29 09:43:35.218690 [blink 1605]: Notification name=BlinkSessionInfoUpdated sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(elements={'media'}) 2021-07-29 09:43:35.218791 [blink 1605]: Notification name=BlinkSessionDidChangeState sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(old_state='connecting/starting', new_state='connected') 2021-07-29 09:43:35.220615 [blink 1605]: Notification name=BlinkSessionDidConnect sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData() 2021-07-29 09:43:35.220704 [blink 1605]: Notification name=ChatSessionItemDidChange sender=ChatSessionItem(<blink.sessions.BlinkSession object at 0x7fda5d202a00>) data=NotificationData() 2021-07-29 09:43:35.220770 [blink 1605]: Notification name=BlinkSessionInfoUpdated sender=<blink.sessions.BlinkSession object at 0x7fda5d202a00> data=NotificationData(elements={'media', 'session'}) 2021-07-29 09:43:35.277412 [blink 1605]: Notification name=SIPEngineTransportDidDisconnect sender=<Engine(Thread-1, started daemon 140575445600000)> data=NotificationData(transport='tls', local_address='192.168.0.15:36705', remote_address='172.0.0.217:5061', reason='Operation cancelled (PJ_ECANCELLED)') 2021-07-29 09:43:35.277598 [blink 1605]: Notification name=SIPEngineTransportDidDisconnect sender=<Engine(Thread-1, started daemon 140575445600000)> data=NotificationData(transport='tls', local_address='192.168.0.15:36705', remote_address='172.0.0.217:5061', reason='SSL certificate verification error (PJSIP_TLS_ECERTVERIF)') 2021-07-29 09:43:35.380773 [blink 1605]: Notification name=SIPEngineTransportDidDisconnect sender=<Engine(Thread-1, started daemon 140575445600000)> data=NotificationData(transport='tls', local_address='192.168.0.15:36705', remote_address='172.0.0.217:5061', reason='Success')
_______________________________________________ Blink mailing list Blink@lists.ag-projects.com https://lists.ag-projects.com/mailman/listinfo/blink