chornyitaras / PBXWebPhone

WebRTC based webphone for Vicidial
MIT License
32 stars 32 forks source link

Webphone works from campaign but not Reports #9

Closed slickric01 closed 7 years ago

slickric01 commented 7 years ago

I have the Webphone working great from within campaigns. When I access the Realtime Report (/vicidial/realtime_report.php#) there's a link to Webphone on the top right which opens an iframe with an error: Got wrong web socker url. Please check your settings

Any chance it can work from the reports screen to realtime monitor.

Thanks.

chornyitaras commented 7 years ago

In vicidial ADMINISTRATION page change Admin->System Settings->Webphone URL from PBXWebPhone/index.php to https://YOUR_VICIDIAL_DOMAIN_NAME/agc/PBXWebPhone/index.php for example: https://example.com/agc/PBXWebPhone/index.php

slickric01 commented 7 years ago

I actually tried that. I get the same error.

slickric01 commented 7 years ago

I noticed one difference between the iframe of the working webphone in the campaign and the one that doesn't work in the report:

Report: var options = 'INITIAL_LOAD--DIALPAD_OFF_TOGGLE--AUTOANSWER_Y';

Campaign: var options = 'INITIAL_LOAD--DIALPAD_Y--AUTOANSWER_Y--DIALBOX_Y--MUTE_Y--VOLUME_Y--WEBSOCKETURLwss://MY_VICIDIAL_DOMAIN:8089/ws';

chornyitaras commented 7 years ago

yes this is the case: vicidial does not send web sockets URL: apply this patch vici.txt

chornyitaras commented 7 years ago

@slickric01 did it help? Can I close this issue?

slickric01 commented 7 years ago

Yes. It works now. Thanks for your help.

On Sat, Feb 25, 2017 at 4:34 PM, Taras Chornyi notifications@github.com wrote:

@slickric01 https://github.com/slickric01 did it help? Can I close this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chornyitaras/PBXWebPhone/issues/9#issuecomment-282514106, or mute the thread https://github.com/notifications/unsubscribe-auth/AHOqXeSY8DvUxTYmnQL7M6TylB0_6dRgks5rgJ5fgaJpZM4MC0BI .