Discussions about development of VICIDIAL and astGUIclient
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by chornyi_taras » Sat Mar 18, 2017 6:26 am
Looks like websocket url is not passed as an option to webphone iframe on real time report page. To fix this I've used following path:
- Code: Select all
Index: www/vicidial/realtime_report.php
===================================================================
--- www/vicidial/realtime_report.php (revision 2705)
+++ www/vicidial/realtime_report.php (working copy)
@@ -941,6 +941,13 @@
$codecs_list = preg_replace("/ /",'',$codecs_list);
$codecs_list = preg_replace("/-/",'',$codecs_list);
$codecs_list = preg_replace("/&/",'',$codecs_list);
+ $stmt="SELECT asterisk_version,web_socket_url from servers where server_ip='$webphone_server_ip';";
+ if ($DB) {echo "|$stmt|\n";}
+ $rslt=mysql_to_mysqli($stmt, $link);
+ if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01028',$VD_login,$server_ip,$session_name,$one_mysql_log);}
+ $row=mysqli_fetch_row($rslt);
+ $asterisk_version=$row[0];
+ $web_socket_url=$row[1];
if ($use_external_server_ip=='Y')
{
@@ -994,7 +1001,8 @@
if ($webphone_dialpad == 'TOGGLE_OFF') {$webphone_options .= "--DIALPAD_OFF_TOGGLE";}
if ($webphone_auto_answer == 'Y') {$webphone_options .= "--AUTOANSWER_Y";}
if ($webphone_auto_answer == 'N') {$webphone_options .= "--AUTOANSWER_N";}
-
+ if (strlen($web_socket_url) > 5) {$webphone_options .= "--WEBSOCKETURL$web_socket_url";}
+echo "<!-- debug: $web_socket_url -->";
$session_name='RTS01234561234567890';
### base64 encode variables
@mflorell is it possible to include it to vici code base?
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone
Skype: tarasukcho
-
chornyi_taras
-
- Posts: 87
- Joined: Tue Jun 14, 2016 3:41 pm
- Location: L'viv, Ukraine
by mflorell » Sat Mar 18, 2017 8:47 am
Should be all fixed in svn/trunk, thank you very much for pointing this out!
-
mflorell
- Site Admin
-
- Posts: 18386
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by chornyi_taras » Sat Mar 18, 2017 3:08 pm
verified. Thanks mflorell
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone
Skype: tarasukcho
-
chornyi_taras
-
- Posts: 87
- Joined: Tue Jun 14, 2016 3:41 pm
- Location: L'viv, Ukraine
by chornyi_taras » Thu May 11, 2017 9:31 am
same issue is present on phone_only page
agc/phone_only.php
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone
Skype: tarasukcho
-
chornyi_taras
-
- Posts: 87
- Joined: Tue Jun 14, 2016 3:41 pm
- Location: L'viv, Ukraine
by mflorell » Thu May 11, 2017 10:18 am
The phone_only.php script in svn/trunk should now be WebRTC-capable.
-
mflorell
- Site Admin
-
- Posts: 18386
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by chornyi_taras » Thu May 11, 2017 1:27 pm
verified. Thanks for quick fix
ViciBox: 7.0.3 | VERSION: 2.12-560aBUILD: 160617-1427 | Webphone: PBXWebPhone
Skype: tarasukcho
-
chornyi_taras
-
- Posts: 87
- Joined: Tue Jun 14, 2016 3:41 pm
- Location: L'viv, Ukraine
Return to Development
Who is online
Users browsing this forum: No registered users and 28 guests