Page 1 of 1

Doddle Phone(WebPhone)

PostPosted: Sun Feb 06, 2011 9:16 pm
by Acidshock
I modified zoiperweb_redirect.php to work with doddlephone, a web based java softphone. Going to post in the Issue Tracker in case the VICI team wants to incorporate it.

Code: Select all
<?php
# doddling_redirect.php - used for loading doddlephone with variables
#
# Modified by Acidshock to work with doddlephone. Originally written by Matt Florell. See copyright information below.
# Copyright (C) 2010  Matt Florell <vicidial@gmail.com>    LICENSE: AGPLv2
#
# CHANGELOG
# 100827-1419 - First Build
#

if (isset($_GET["DB"]))                     {$DB=$_GET["DB"];}
        elseif (isset($_POST["DB"]))         {$DB=$_POST["DB"];}
if (isset($_GET["phone_login"]))            {$phone_login=$_GET["phone_login"];}
        elseif (isset($_POST["phone_login"]))   {$phone_login=$_POST["phone_login"];}
if (isset($_GET["phone_pass"]))               {$phone_pass=$_GET["phone_pass"];}
        elseif (isset($_POST["phone_pass"]))    {$phone_pass=$_POST["phone_pass"];}
if (isset($_GET["server_ip"]))               {$server_ip=$_GET["server_ip"];}
        elseif (isset($_POST["server_ip"]))      {$server_ip=$_POST["server_ip"];}
if (isset($_GET["callerid"]))               {$callerid=$_GET["callerid"];}
        elseif (isset($_POST["callerid"]))      {$callerid=$_POST["callerid"];}
if (isset($_GET["protocol"]))               {$protocol=$_GET["protocol"];}
        elseif (isset($_POST["protocol"]))      {$protocol=$_POST["protocol"];}
if (isset($_GET["codecs"]))                  {$codecs=$_GET["codecs"];}
        elseif (isset($_POST["codecs"]))      {$codecs=$_POST["codecs"];}
if (isset($_GET["options"]))               {$options=$_GET["options"];}
        elseif (isset($_POST["options"]))      {$options=$_POST["options"];}
if (isset($_GET["system_key"]))               {$system_key=$_GET["system_key"];}
        elseif (isset($_POST["system_key"]))   {$system_key=$_POST["system_key"];}

$phone_pass = base64_decode($phone_pass);
$server_ip = base64_decode($server_ip);
$phone_login = base64_decode($phone_login);

$query_string = "/embed/webphone.jsp?sipserver=$server_ip&username=$phone_login&password=$phone_pass";

$servers = array("widget.doddlephone.com","widget.doddlephone.com");
$server = $servers[array_rand($servers)];
$URL = "http://$server$query_string";

header("Location: $URL");

echo"<TITLE>Webphone Redirect</TITLE>\n";
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n";
echo"<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$URL\">\n";
echo"</HEAD>\n";
echo"<BODY BGCOLOR=#FFFFFF marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
echo"<a href=\"$URL\">click here to continue. . .</a>\n";
exit;

?>

PostPosted: Sun Feb 06, 2011 9:18 pm
by mflorell
Cool!

Please post a link on this thread when you get it posted to the Issue Tracker.

PostPosted: Sun Feb 06, 2011 10:55 pm
by Acidshock

PostPosted: Sun Feb 06, 2011 11:03 pm
by williamconley
Awesome!

PostPosted: Wed Aug 31, 2011 6:24 am
by gmcust3
I tried it.

I have also Modified system settings , specified with webphone url.

Any Other Changes reqd ?

PostPosted: Wed Oct 05, 2011 11:59 pm
by gerski
niceone... Anyone has a configuration for Mizu?

Re: Doddle Phone(WebPhone)

PostPosted: Sat Jul 14, 2012 11:26 pm
by tntconsulting
Have been reading the posts on adding the Doddlephone as a webphone, and have uploaded the doddlephone_redirect.php and have the phone showing on the Agent screen. The issue is the phone is not registering with the system.

Shows
doddlephone.com
00:00:00
Unauthorized

Service: VoIP Provider
Server: 192.168.x.xx
User: xxxx
Password: xxxxxxxxxx

Am I missing something simple?

Steve Turner
GoAutoDial 2.1ce
3.4 I7, 16gb RAM, 1tb RAID10

Re: Doddle Phone(WebPhone)

PostPosted: Sun Jul 22, 2012 2:25 pm
by sofcall
Hi.

step by step install please.
do i have to download Doddle Phone AND INSTALL IT

Thank you

Re: Doddle Phone(WebPhone)

PostPosted: Tue Jul 24, 2012 11:30 am
by sofcall
Hi
well it works for me ,except that the webphone bottom is on top of the disconnect bottom so it's diffcult to click the last one.


Any modification i should make to the php file?

Re: Doddle Phone(WebPhone)

PostPosted: Thu Jul 26, 2012 10:43 am
by Acidshock
Try updating these variables in the code:
$query_string = "/widget/click2call.html?sipserver=$server_ip&username=$phone_login&password=$phone_pass";

$servers = array("www.doddlephone.com","www.doddlephone.com");

Re: Doddle Phone(WebPhone)

PostPosted: Fri Feb 01, 2013 2:08 pm
by ruben23
Hi is this feature included on the Latest SVN of vicidial.Thanks

Re: Doddle Phone(WebPhone)

PostPosted: Fri Feb 01, 2013 5:44 pm
by williamconley
doddle phone is not a feature or part of Vicidial. It's a soft phone. Like XLite and Zoiper and Twinkle, except it resides in a web browser.

Re: Doddle Phone(WebPhone)

PostPosted: Fri Feb 01, 2013 5:46 pm
by ruben23
@ williamconley

Yes i just thought vicidial have provision something like dooble compatbility or setup like zoiper web ready. or any how to implement it somehow.Thanks

Re: Doddle Phone(WebPhone)

PostPosted: Fri Feb 01, 2013 6:03 pm
by williamconley
sofcall asked for a step by step install, but i don't see one. either he found one elsewhere or someome pm'd him. you could ask.

Re: Doddle Phone(WebPhone)

PostPosted: Sun Mar 24, 2013 8:10 am
by amkoldn
Hi All,

I can't manage to make doddle webphone work.

Agent logins and gets "Welcome to Doddle Online SIP phone Evaluation!" message
then under Webphone frame "Loading...wait" and nothing happens.

Step 1
I have copied doddling_redirect.php
/var/www/html/goautodial-agent/webphone

Step2
Provided that URL in the webphone URL field under system settings.

Steo 3
Enabled the phone to be a web phone under the phone config(Admin->Phones->Extension You Want to Change


Code: Select all
<?php
# doddling_redirect.php - used for loading doddlephone with variables
#
# Modified by Acidshock to work with doddlephone. Originally written by Matt Florell. See copyright information below.
# Copyright (C) 2010  Matt Florell <vicidial@gmail.com>    LICENSE: AGPLv2
#
# CHANGELOG
# 100827-1419 - First Build
#

if (isset($_GET["DB"]))                     {$DB=$_GET["DB"];}
        elseif (isset($_POST["DB"]))         {$DB=$_POST["DB"];}
if (isset($_GET["phone_login"]))            {$phone_login=$_GET["phone_login"];}
        elseif (isset($_POST["phone_login"]))   {$phone_login=$_POST["phone_login"];}
if (isset($_GET["phone_pass"]))               {$phone_pass=$_GET["phone_pass"];}
        elseif (isset($_POST["phone_pass"]))    {$phone_pass=$_POST["phone_pass"];}
if (isset($_GET["server_ip"]))               {$server_ip=$_GET["server_ip"];}
        elseif (isset($_POST["server_ip"]))      {$server_ip=$_POST["server_ip"];}
if (isset($_GET["callerid"]))               {$callerid=$_GET["callerid"];}
        elseif (isset($_POST["callerid"]))      {$callerid=$_POST["callerid"];}
if (isset($_GET["protocol"]))               {$protocol=$_GET["protocol"];}
        elseif (isset($_POST["protocol"]))      {$protocol=$_POST["protocol"];}
if (isset($_GET["codecs"]))                  {$codecs=$_GET["codecs"];}
        elseif (isset($_POST["codecs"]))      {$codecs=$_POST["codecs"];}
if (isset($_GET["options"]))               {$options=$_GET["options"];}
        elseif (isset($_POST["options"]))      {$options=$_POST["options"];}
if (isset($_GET["system_key"]))               {$system_key=$_GET["system_key"];}
        elseif (isset($_POST["system_key"]))   {$system_key=$_POST["system_key"];}

$phone_pass = base64_decode($phone_pass);
$server_ip = base64_decode($server_ip);
$phone_login = base64_decode($phone_login);

#Agent logins and gets "Welcome to Doddle Online SIP phone Evaluation!" message then under Webphone frame "Loading...wait"
$query_string = "/widget/click2call.html?sipserver=$server_ip&username=$phone_login&password=$phone_pass";
$servers = array("www.doddlephone.com","www.doddlephone.com");

#This code seems not to be working!
#$query_string = "/embed/webphone.jsp?sipserver=$server_ip&username=$phone_login&password=$phone_pass"&mode=webphone;
#$servers = array("widget.doddlephone.com","widget.doddlephone.com");

$server = $servers[array_rand($servers)];
$URL = "http://$server$query_string";

header("Location: $URL");

echo"<TITLE>Webphone Redirect</TITLE>\n";
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n";
echo"<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$URL\">\n";
echo"</HEAD>\n";
echo"<BODY BGCOLOR=#FFFFFF marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
echo"<a href=\"$URL\">click here to continue. . .</a>\n";
exit;

?>


Would you please give me a hint where I am making mistake.
Has anyone manage to make it work?
Is webphone something you are using or not and why?

Regards,
Amko

CentOS Linux 5.9
Goautodial 2.1

Re: Doddle Phone(WebPhone)

PostPosted: Sun Mar 24, 2013 5:37 pm
by brett05
thank youuuuuuuuuuuuuu

Re: Doddle Phone(WebPhone)

PostPosted: Mon Mar 25, 2013 7:52 pm
by Acidshock
Amko, I tested it and it seemed to be working. Where are you located? Maybe I could setup a GotoAssist session and see what you are encountering.

Re: Doddle Phone(WebPhone)

PostPosted: Wed Mar 27, 2013 6:27 pm
by amkoldn
@Acidshock Many many thanks for helping me out.

Step 4
Install Microsoft C++ 2005 or 2008 Redistributable Package on Agent PC

in case you face this error:
Agent logins and gets "Welcome to Doddle Online SIP phone Evaluation!" message
then under Webphone frame "Loading...wait" and nothing happens.

Re: Doddle Phone(WebPhone)

PostPosted: Thu Sep 08, 2016 2:04 am
by rrb555
Am i also missing something here. I do not know how to configure doodle phone sigh...

Re: Doddle Phone(WebPhone)

PostPosted: Sun Oct 02, 2016 1:48 pm
by Acidshock
I think Doddle Phone went belly up.

Re: Doddle Phone(WebPhone)

PostPosted: Mon Oct 03, 2016 2:04 am
by rrb555
Meaning???