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

Call not working #1

Open
MohamedYaman opened this issue Sep 3, 2021 · 0 comments
Open

Call not working #1

MohamedYaman opened this issue Sep 3, 2021 · 0 comments

Comments

@MohamedYaman
Copy link

MohamedYaman commented Sep 3, 2021

Hello,

I installed all the tars from here
http://download.ag-projects.com/SipSimpleSDK/Python3/
(I also tried to download the 5.2.3 versions of sipsimple and sipclients, and I get the same problem)
and the audio call doesn't work for some reason. If I try to do a chat I can see the request in Asterisk.
It was working in some older version "4.0.0" , but the transfer was broken so we wanted to try the newer one out, and this happened

I tried calling from old one to new one, the call goes through and I can accept then I get this :
SIP session failed: audio media stream did not initialize: Unknown audio codecs: opus

Any idea what to do?
Thanks in advance!

We used Asterisk 18.5.1
This is what I get

SDK version 5.2.6, core version 210, PJSIP version 2.10 (210)
Using account
2021-09-06 17:02:30.468112: Notification name=SIPEngineDidStart sender=<Engine(Thread-1, started daemon 139839764686592)>
{}
Logging SIP trace to file "/home/mmasalati/.sipclient/logs/sip_trace.txt"
Logging MSRP trace to file "/home/mmasalati/.sipclient/logs/msrp_trace.txt"

Logging PJSIP trace to file "/home/mmasalati/.sipclient/logs/pjsip_trace.txt"
Logging notifications trace to file "/home/mmasalati/.sipclient/logs/notifications_trace.txt"
TLS verify server: True
TLS certificate: /home/mmasalati/.sipclient/tls/default.crt
TLS Subject: C=NL,ST=Noord-Holland,L=Haarlem,O=AG Projects,OU=Blink,CN=Blink,EMAIL=[email protected]

2021-09-06 17:02:30.475046: Notification name=DNSResolverDidInitialize sender=<sipsimple.lookup.DNSManager object at 0x7f2f00176ee0>
{'nameservers': ['127.0.0.53']}
2021-09-06 17:02:30.475601: Notification name=TLSTransportHasChanged sender=<main.SIPSessionApplication object at 0x7f2f01240700>
{'ca_file': '/home/mmasalati/.sipclient/tls/ca.crt',
'certificate': '/home/mmasalati/.sipclient/tls/default.crt',
'port': 0,

'verify_server': True}
2021-09-06 17:02:30.524084: Notification name=SIPAccountManagerWillStart sender=<sipsimple.account.AccountManager object at 0x7f2f01261310>
{'accounts': ['test@localhost'],

'bonjour_available': False}
2021-09-06 17:02:30.538048: Notification name=CFGSettingsObjectDidChange sender=<sipsimple.configuration.settings.SIPSimpleSettings object at 0x7f2f01261550>
{'modified': {'logs.trace_msrp': ModifiedValue(old=False, new=True),
'logs.trace_notifications': ModifiedValue(old=False, new=True),
'logs.trace_pjsip': ModifiedValue(old=False, new=True),
'logs.trace_sip': ModifiedValue(old=False, new=True)}}

Available audio codecs: iLBC, G722, PCMA, speex, GSM, PCMU

Available video codecs: H263-1998, VP9, H264, VP8

2021-09-06 17:02:30.576000: Notification name=SelfPresenceSubscriberWillStart sender=<sipsimple.account.subscription.SelfPresenceSubscriber object at 0x7f2f001a7fd0>
{}
2021-09-06 17:02:30.576731: Notification name=SelfPresenceSubscriberDidStart sender=<sipsimple.account.subscription.SelfPresenceSubscriber object at 0x7f2f001a7fd0>
{}
2021-09-06 17:02:30.576870: Notification name=DialogSubscriberWillStart sender=<sipsimple.account.subscription.DialogSubscriber object at 0x7f2f001ac1c0>
{}
2021-09-06 17:02:30.576920: Notification name=DialogSubscriberDidStart sender=<sipsimple.account.subscription.DialogSubscriber object at 0x7f2f001ac1c0>
{}
2021-09-06 17:02:30.576968: Notification name=PresencePublisherWillStart sender=<sipsimple.account.publication.PresencePublisher object at 0x7f2f001ac370>
{}
2021-09-06 17:02:30.577013: Notification name=PresencePublisherDidStart sender=<sipsimple.account.publication.PresencePublisher object at 0x7f2f001ac370>
{}
2021-09-06 17:02:30.577085: Notification name=DialogPublisherWillStart sender=<sipsimple.account.publication.DialogPublisher object at 0x7f2f001ac550>
{}
2021-09-06 17:02:30.577121: Notification name=DialogPublisherDidStart sender=<sipsimple.account.publication.DialogPublisher object at 0x7f2f001ac550>
{}
2021-09-06 17:02:30.577352: Notification name=MWISubscriberWillStart sender=<sipsimple.account.subscription.MWISubscriber object at 0x7f2f001b0580>
{}
2021-09-06 17:02:30.577504: Notification name=MWISubscriberDidStart sender=<sipsimple.account.subscription.MWISubscriber object at 0x7f2f001b0580>
{}
Available audio input devices: None, system_default, HD-Audio Generic, ALC274 Analog, Playback/recording through the PulseAudio sound server, PulseAudio Sound Server
2021-09-06 17:02:30.578013: Notification name=PresenceWinfoSubscriberWillStart sender=<sipsimple.account.subscription.PresenceWinfoSubscriber object at 0x7f2f001b0730>
{}
Available audio output devices: None, system_default, HD-Audio Generic, ALC274 Analog, HDA NVidia, HDMI 0 HDMI Audio Output, HDA NVidia, HDMI 1 HDMI Audio Output, HDA NVidia, HDMI 2 HDMI Audio Output, HDA NVidia, HDMI 3 HDMI Audio Output, HDA NVidia, HDMI 4 HDMI Audio Output, HDA NVidia, HDMI 5 HDMI Audio Output, Playback/recording through the PulseAudio sound server, PulseAudio Sound Server
Using audio input device: Playback/recording through the PulseAudio sound server (system default device)
Using audio output device: Playback/recording through the PulseAudio sound server (system default device)
Using audio alert device: Playback/recording through the PulseAudio sound server (system default device)

2021-09-06 17:02:30.599627: Notification name=DNSLookupDidSucceed sender=<sipsimple.lookup.DNSLookup object at 0x7f2ef81edeb0>
{'result': [Route('IP', port=5060, transport='udp', tls_name='IP')]}
2021-09-06 17:02:30.599955: Notification name=SIPRequestDidSucceed sender=<sipsimple.core._core.Request object at 0x7f2ef003e7a0>
{'body': None,
'code': 200,
'expires': 600,
'headers': {'Allow': [b'INVITE',
b'ACK',
b'CANCEL',
b'OPTIONS',
b'BYE',
b'REFER',
b'SUBSCRIBE',
b'NOTIFY',
b'INFO',
b'PUBLISH',
b'MESSAGE'],
'CSeq': (2, 'REGISTER'),
'Call-ID': FrozenHeader('Call-ID', '0c426c31-607e-4fe0-a9f0-76480dd567ce'),
'Contact': [FrozenContactHeader(FrozenSIPURI('IP', '57906132', None, 51431, False, frozendict({}), frozendict({})), None, frozendict({'q': '0.0', 'expires': '600'}))],
'Content-Length': 0,
'Date': FrozenHeader('Date', 'Mon, 06 Sep 2021 15:02:30 GMT'),
'Expires': 600,
'From': FrozenFromHeader(FrozenSIPURI('IP', 'test2', None, None, False, frozendict({}), frozendict({})), None, frozendict({'tag': '94bdbe91-41d1-47bc-8ee8-4c73f906d477'})),
'Server': FrozenHeader('Server', 'Asterisk PBX 18.5.0'),
'Supported': [b'replaces', b'timer'],
'To': FrozenToHeader(FrozenSIPURI('IP', 'test2', None, None, False, frozendict({}), frozendict({})), None, frozendict({'tag': 'as27dc3bef'})),
'Via': [FrozenViaHeader('UDP', 'IP', 51431, frozendict({'rport': 51431, 'received': 'IP', 'branch': 'z9hG4bKPj5da17c28-c9db-4f61-968d-d63795ce810c'}))]},
'reason': 'OK'}
2021-09-06 17:02:30.600130: Notification name=SIPRegistrationDidSucceed sender=<sipsimple.core._primitives.Registration object at 0x7f2ef8180610>
{'code': 200,
'contact_header': FrozenContactHeader(FrozenSIPURI(b'IP', b'57906132', None, 51431, False, frozendict({}), frozendict({})), None, frozendict({b'+sip.instance': b'"urn:uuid:c62fa006-49c2-4dce-9166-0e0a49f50cff"'})),
'contact_header_list': [FrozenContactHeader(FrozenSIPURI('IP', '57906132', None, 51431, False, frozendict({}), frozendict({})), None, frozendict({'q': '0.0', 'expires': '600'}))],
'expires_in': 600,
'reason': 'OK',
'route_header': FrozenRouteHeader(FrozenSIPURI(b'IP', None, None, None, False, frozendict({'lr': None, 'hide': None}), frozendict({})), None, frozendict({}))}
2021-09-06 17:02:30.600227: Notification name=SIPAccountRegistrationGotAnswer sender=Account('test2@IP')
{'code': 200,
'reason': 'OK',
'registrar': Route('IP', port=5060, transport='udp', tls_name='IP'),
'registration': <sipsimple.core._primitives.Registration object at 0x7f2ef8180610>}
2021-09-06 17:02:30.600403: Notification name=SIPAccountRegistrationDidSucceed sender=Account('test2@IP')
{'contact_header': FrozenContactHeader(FrozenSIPURI(b'IP', b'57906132', None, 51431, False, frozendict({}), frozendict({})), None, frozendict({b'+sip.instance': b'"urn:uuid:c62fa006-49c2-4dce-9166-0e0a49f50cff"'})),
'contact_header_list': [FrozenContactHeader(FrozenSIPURI('IP', '57906132', None, 51431, False, frozendict({}), frozendict({})), None, frozendict({'q': '0.0', 'expires': '600'}))],
'expires': 600,
'registrar': Route('IP', port=5060, transport='udp', tls_name='IP')}
test2@IP> /call test1@IP
2021-09-06 17:02:43.379854: Notification name=UIInputGotCommand sender=<UI(UI-Thread, started daemon 139839850833664)>
{'args': ['test1@IP'], 'command': 'call'}
DNS lookup for sip:IP
Initiating SIP session from sip:test2@IP to sip:test1@IP via sip:IP...
2021-09-06 17:02:43.396093: Notification name=DNSLookupDidSucceed sender=<sipsimple.lookup.DNSLookup object at 0x7f2ef823cee0>
{'result': [Route('IP', port=5060, transport='udp', tls_name='IP')]}
2021-09-06 17:02:43.396450: Notification name=SIPSessionNewOutgoing sender=<sipsimple.session.Session object at 0x7f2ef81f3100>
{'streams': [<sipsimple.streams.rtp.audio.AudioStream object at 0x7f2ef8180640>]}
2021-09-06 17:02:43.403139: Notification name=RTPTransportDidInitialize sender=<sipsimple.core._core.RTPTransport object at 0x7f2ef8127ee0>
{}
2021-09-06 17:02:43.403785: Notification name=MediaStreamDidNotInitialize sender=<sipsimple.streams.rtp.audio.AudioStream object at 0x7f2ef8180640>
{'reason': 'Unknown audio codecs: opus'}
2021-09-06 17:02:43.404236: Notification name=SIPSessionDidFail sender=<sipsimple.session.Session object at 0x7f2ef81f3100>
{'code': 0,
'failure_reason': 'audio media stream did not initialize: Unknown audio '
'codecs: opus',
'originator': 'local',
'reason': None,
'redirect_identities': None}

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

1 participant