Asterisk 13 WebRTC Status Report
hi,
i’m fighting with webrtc for 14 days reporting my experience to minimize number of crazy asterisk users
i have working webrtc with simpl5 + asterisk 13 + pjproject 2.4.5 +
chan_pjsip + secure websockets + secure audio + audio in both ways
problems first, i needed run chan_sip for old hard phones and wss with chan_pjsip only for webrtc. this is possible with patch from https://issues.asterisk.org/jira/browse/ASTERISK-24106
chan_sip is not usable for webrtc because of https://issues.asterisk.org/jira/browse/ASTERISK-24602
another problem arise with RTP/SAVPF negotiation this can be solved with patch for Asterisk from https://issues.asterisk.org/jira/browse/ASTERISK-24602
and for pjsip http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2015-September/018607.html
i hope this info helps
what is your experience with WebRTC?
See you at WebRTC Expo Paris 🙂
p.s. many thanks to my colleague martin tomec for debugging support
p.s.2 relevant part of pjsip.conf
[global]
[transport-wss]
type=transport protocol=wss ;udp,tcp,tls,ws,wss bind=0.0.0.0
;===============ENDPOINT TEMPLATES
[endpoint-basic](!)
type=endpoint transport=transport-wss context=route_phones disallow=all allow=alaw allow=ulaw force_avp=yes use_avpf=yes ; Determines whether res_pjsip will use and enforce usage of media_encryption=dtls ; Determines whether res_pjsip will use and enforce dtls_verify=no ; Verify that the provided peer certificate is valid
(default:
dtls_rekey=0 ; Interval at which to renegotiate the TLS session and rekey dtls_cert_file=/etc/pki/tls/certs/pbx.crt dtls_private_key=/etc/pki/tls/private/pbx.key dtls_setup
3 thoughts on - Asterisk 13 WebRTC Status Report
Dne 15.9.2015 v 13:37 Marek Červenka napsal(a):
this is the blocking issue https://issues.asterisk.org/jira/browse/ASTERISK-24146
SGVsbG8gTWFyZWshIEnigJl2ZSBiZWVuIHJ1bm5pbmcgb24gYW4gaXNzdWUgd2l0aCBteSBBc3Rl cmlzayAxMiBjb25maWd1cmF0aW9uIGZvciB1c2luZyBXZWJSVEMgb24gYSBMQU4gZW52aXJvbm1l bnQgZm9yIGFib3V0IGEgbW9udGghIEkgcmVhbGx5IG5lZWQgc29tZSBo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F1dGgNCmF1dGhfdHlwZT11c2VycGFzcw0KDQpbYW9y LXNpbmdsZS1yZWddKCEpDQp0eXBlPWFvcg0KcmVtb3ZlX2V4aXN0aW5nPXllcw0KbWF4X2NvbnRh Y3RzPTENCg0KDQo7PT09PT09PT09PT09PT09REVWSUNFUw0KDQpbd2VicnRjMV0oZW5kcG9pbnQt YmFzaWMpDQphdXRoPXdlYnJ0YzENCmFvcnM9d2VicnRjMQ0KDQpbd2VicnRjMV0oYXV0aC11c2Vy cGFzcykNCnBhc3N3b3JkPXNlY3JldA0KdXNlcm5hbWU9d2VicnRjMQ0KDQpbd2VicnRjMV0oYW9y LXNpbmdsZS1yZWcpDQoNCnJlbGV2YW50IHBhcnQgb2YgaHR0cC5jb25mDQpbZ2VuZXJhbF0NCmVu YWJsZWQ9eWVzDQpiaW5kYWRkcj0wLjAuMC4wDQp0bHNlbmFibGU9eWVzDQp0bHNiaW5kYWRkcj0w LjAuMC4wOjgwODkNCnRsc2NlcnRmaWxlPS9ldGMvcGtpL3Rscy9jZXJ0cy9wYnguY3J0DQp0bHNw cml2YXRla2V5PS9ldGMvcGtpL3Rscy9wcml2YXRlL3BieC5rZXkNCg0KLS0gDQotLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCk1hcmVrIENlcnZlbmthDQo9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0
Den 2015-09-15 kl. 16:52, skrev asandovalros@gmail.com:
In asterisk you have “rtp set debug on” to see if you get rtp packets. On your client you can start wireshark and look if RTP packets flow in both directions.
If you have RTP traffic, maybe you didn’t attach the incoming media to an audio/video tag in your html. For example:
html:
In the event-handler for ‘addstream’ for the call, you have to attach the stream to #remoteView.
/Johan
—