Page 1 of 1

WebRTC based webphone for Vicidial

PostPosted: Mon Jun 20, 2016 12:25 pm
by chornyi_taras
Hi all,

Wanted to share with community webphone for vicidial. It is based on SIP.js library and released under MIT license.
More information you can find at project page on github https://chornyitaras.github.io/PBXWebPhone/

Webphone was tested with ViciBox: 7.0.3 | VERSION: 2.12-559a BUILD: 160611-2230.

It supports autoanswer, so no action from agent required (just login and start work )

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 11:03 am
by iboam
I create my csr @ https://www.hostgator.com/generatecsr and they send to me csr code and rsa key code, then i bought my ssl certificate @ https://www.ssls.com/ssl-certificates/geotrust-rapidssl for $9.95 and they send to me intermediate.csr, hostname.ca-bundle and hostname.p7b i found that

privkey.pem = rsa private
cert.pem = certificate
fullchain.pem = ?

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 12:27 pm
by chornyi_taras
if it's for Apache you can skip setting SSLCertificateChainFile or
from wiki
Code: Select all
    #   Alternatively the referenced file
    #   can be the same as SSLCertificateFile when the CA
    #   certificates are directly appended to the server
    #   certificate for convinience.

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 12:35 pm
by chornyi_taras
iboam wrote:then i bought my ssl certificate


why not to use https://letsencrypt.org/

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 4:12 pm
by iboam
I did it before read your post, my server it's running under this ssl and works fine without the pems file ... so may i skip this step under apache or it's required ????? because i have tried several times and can't get it

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 4:33 pm
by chornyi_taras
If you can connect to Vicidial agent screen using secure connection (https://domain/agc...) you can skip Apache configuration section.

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 4:33 pm
by williamconley
Once SSL's running, ignore everyone and stop modifying your system.

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 4:49 pm
by iboam
i dismiss all pem settings. i'm getting an error: "An Error occurred while connecting to the websocket."

asterisk:
Code: Select all
[Jun 22 17:49:46] ERROR[26496][C-00000359]: res_rtp_asterisk.c:1344 ast_rtp_dtls_set_configuration: Specified certificate file '/patch/to/your/cert.pem' for RTP instance '0x7f9604001388' could not be used
[Jun 22 17:49:46] ERROR[26496][C-00000359]: chan_sip.c:5731 dialog_initialize_dtls_srtp: Attempted to set an invalid DTLS-SRTP configuration on RTP instance '0x7f9604001388'
[Jun 22 17:49:46] NOTICE[26496][C-00000359]: channel.c:5690 __ast_request_and_dial: Unable to request channel SIP/5000

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 5:01 pm
by chornyi_taras
You need to configure asterisk. Asterisk works only with pem format. You can convert your SSL certificate and private key using openssl.
http://stackoverflow.com/questions/9917 ... -crt-files

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 5:24 pm
by williamconley
OK: So you got SSL working but NOT the webrtc wss. Note that "/patch/to/your/cert.pem" should be replaced with the Actual "PATH" (not patch) and filename of the pem file after you've created it. Assuming you were not supplied with one when you purchased your cert.

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 5:50 pm
by chornyi_taras
It can help
Code: Select all
openssl pkcs7 -in certificate_file.p7b -print_certs -out cert.pem
openssl rsa -in /path_to_your_rsa_private -outform pem > privkey.pem

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jun 22, 2016 6:08 pm
by chornyi_taras
williamconley wrote:"PATH" (not patch)

Updated wiki. Thanks

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jun 23, 2016 5:15 pm
by iboam
It's weird ... i did everything from https://github.com/chornyitaras/PBXWebPhone/wiki and can't get it to work then tried SIPML5 and it is up and running, very stable.

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jun 23, 2016 5:21 pm
by chornyi_taras
Do you see any errors?
Are you using latest source of PBXWebPhone?

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jun 23, 2016 5:44 pm
by iboam
Yes i downloaded yesterday after the mute update. now i have running SIPML5 i just have to auto-register and auto answer when vicidial call to the webphone, but it's very stable

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jun 23, 2016 5:46 pm
by chornyi_taras
What about errors? Do you see any of them when using PBXWebPhone?

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Jul 20, 2016 1:26 pm
by iboam
have you installed a server from scratch with this webphone ?? there are not any missing steps on the description ?? i bought a real ssl certificate i have this files *.crt, *.key, *.ca-bundle, *.csr, *.p7b

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 11:25 am
by chornyi_taras
iboam wrote:have you installed a server from scratch with this webphone ?? there are not any missing steps on the description ?? i bought a real ssl certificate i have this files *.crt, *.key, *.ca-bundle, *.csr, *.p7b

Yes I have. I've installedinstalled a server from scratch with this webphone.
You need to conver your SSL serteficate/key to pem format, so asterisk can work with them.

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:09 pm
by iboam
ok i have some questions ....
1- would be posible if i install the ssl to use ip phones for some users ???
2- how do i install the ssl certificate that i already bought
3- how do i convert my ssl certificate to pem

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:17 pm
by williamconley
I think you should start here: http://bfy.tw/6qn7

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:18 pm
by chornyi_taras
iboam wrote:ok i have some questions ....
1- would be posible if i install the ssl to use ip phones for some users ???

yes
iboam wrote:2- how do i install the ssl certificate that i already bought

for apache and asterisk - follow corresponding section in Wiki https://github.com/chornyitaras/PBXWebPhone/wiki
iboam wrote:3- how do i convert my ssl certificate to pem

openssl pkcs7 -in certificate_file.p7b -print_certs -out cert.pem
openssl rsa -in /path_to_your_rsa_private -outform pem > privkey.pem

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:25 pm
by iboam
chornyi_taras wrote:
iboam wrote:ok i have some questions ....
1- would be posible if i install the ssl to use ip phones for some users ???

yes
iboam wrote:2- how do i install the ssl certificate that i already bought

for apache and asterisk - follow corresponding section in Wiki https://github.com/chornyitaras/PBXWebPhone/wiki
iboam wrote:3- how do i convert my ssl certificate to pem

openssl pkcs7 -in certificate_file.p7b -print_certs -out cert.pem
openssl rsa -in /path_to_your_rsa_private -outform pem > privkey.pem

SSLCertificateChainFile /path/to/your/fullchain.pem ???

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:27 pm
by chornyi_taras
You can skip this setting

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:28 pm
by iboam
ok letme try and i let you know .... could we do an screen share in 2 hours ???

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:29 pm
by chornyi_taras
i think yes

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 12:33 pm
by iboam
ok thanks !!!! i letyou know

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 1:22 pm
by iboam
williamconley wrote:I think you should start here: http://bfy.tw/6qn7

That was funny LOL

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jul 21, 2016 1:31 pm
by williamconley
iboam wrote:
williamconley wrote:I think you should start here: http://bfy.tw/6qn7

That was funny LOL

I thought you might.

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Nov 29, 2017 5:14 am
by rustynail
Hey guys,

I am having a strange problem. I have successfully configured PBXWebphone and its working fine but there are couple of pcs from where it wouldn't work and throws error: I have compared the logs from successful pc and from unsuccessful and both are same except from the line where error is show. Chrome version is also same on both locations.

Error log is attached.

https://pastebin.com/qvegcwxK

Cheers!

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Nov 29, 2017 9:19 am
by williamconley
rustynail wrote:Hey guys,

I am having a strange problem. I have successfully configured PBXWebphone and its working fine but there are couple of pcs from where it wouldn't work and throws error: I have compared the logs from successful pc and from unsuccessful and both are same except from the line where error is show. Chrome version is also same on both locations.

Error log is attached.

https://pastebin.com/qvegcwxK

Cheers!

Have you tried moving the agents between working and non-working? See if the problem follows the user/phone to the new workstation.

Re: WebRTC based webphone for Vicidial

PostPosted: Wed Nov 29, 2017 6:13 pm
by chornyi_taras
Can you please open https://203.37.28.55:8089/ws on PC that have issue with webphone?

Re: WebRTC based webphone for Vicidial

PostPosted: Thu Jan 18, 2018 4:46 am
by rustynail
Sorry for delay is response... its working fine now. Thanks for a wonderful product.
Thread can be closed now as its solved.
Cheers

Re: WebRTC based webphone for Vicidial

PostPosted: Fri May 29, 2020 4:56 am
by virtualsky
chornyi_taras wrote:Hi all,

Wanted to share with community webphone for vicidial. It is based on SIP.js library and released under MIT license.
More information you can find at project page on github https://chornyitaras.github.io/PBXWebPhone/

Webphone was tested with ViciBox: 7.0.3 | VERSION: 2.12-559a BUILD: 160611-2230.

It supports autoanswer, so no action from agent required (just login and start work )


I have installed it successfully so it is showing on agc only Ready and Mute..no web phone is showing..Am I missing something?

Re: WebRTC based webphone for Vicidial

PostPosted: Fri May 29, 2020 3:33 pm
by williamconley

Re: WebRTC based webphone for Vicidial

PostPosted: Sat May 30, 2020 2:32 am
by virtualsky
williamconley wrote:https://viciphone.com/


It worked, thanks William but I just want to know does PBXWebPhone deprecated or is it for some other version?

Re: WebRTC based webphone for Vicidial

PostPosted: Tue Aug 11, 2020 11:50 am
by regiospartanmty
williamconley wrote:https://viciphone.com/



gracias!