Difference between revisions of "Click to Call"

From FusionPBX
Jump to: navigation, search
(Notes)
(Integrating with Thunderbird's Address book)
Line 30: Line 30:
 
**ringback=us-ring
 
**ringback=us-ring
 
==Integrating with Thunderbird's Address book==
 
==Integrating with Thunderbird's Address book==
 +
===Install the version from the Dev Branch===
 +
<b>The current version will nut function with TBDialout.
 +
*TBDialout by default only string replaces the first %NUM%.  You need to patch FusionPBX to account for this (Nov 15, 2012).  There's a diff file attached on this issue.</b>
 +
You need to install the version from the dev branch.  here's the easiest way to do so (this will fix on the next release after Nov 15 2012:
 +
*You also gain the ability to easily make sip uri calls.
 +
cd /var/www/fusionpbx/app/click_to_call
 +
mv click_to_call.php click_to_call.php.bak
 +
wget http://fusionpbx.googlecode.com/svn-history/r3179/branches/dev/fusionpbx/app/click_to_call/click_to_call.php
 +
chown www-data.www-data click_to_call.php #or whatever your web server user is.
 
*Install the TBDialOut extension.
 
*Install the TBDialOut extension.
 
**https://addons.mozilla.org/en-US/thunderbird/addon/tbdialout/
 
**https://addons.mozilla.org/en-US/thunderbird/addon/tbdialout/
Line 37: Line 46:
 
** Prefix called numbers with: Leave blank
 
** Prefix called numbers with: Leave blank
 
** Custom URL:
 
** Custom URL:
***Here you will set dest=%NUM% and src_cid_number=%NUM%.  The resulting url will look something like this:
+
***Here you will set dest=%NUM% and src_cid_number=%NUM%.  Here's some block text you can copy and edit.  Then make it one big URL. <b>DO NOT ATTEMPT SENDING USERNAME AND PASSWORD OVER AN HTTP SESSION</b>
  https://voip.yourdomain.com/app/click_to_call/click_to_call.php?src_cid_name=TBDialout&src_cid_number=%NUM%&dest_cid_name=Your Name&dest_cid_number=3615551234&src=1000&dest=%NUM%&rec=false&ringback=us-ring
+
<pre>
**Username: You can fill this out but it doesn't do anything
+
https://voip.example.com/app/click_to_call/click_to_call.php?
**Password: You can fill this out but it doesn't do anything
+
username=YourUsername
**Open in bacground (http/https only): </b>UNCHECKED</b>
+
&password=YourPassword
===Notes===
+
&src_cid_name=TBDialout
*<b>IMPORTANT: TBDialout by default only string replaces the first %NUM%.  You need to patch FusionPBX to account for this (Nov 15, 2012).  There's a diff file attached on this issue.</b>
+
&src_cid_number=%NUM%
**http://code.google.com/p/fusionpbx/issues/detail?id=349
+
&dest_cid_name=Your Company Name
*You need to be logged into the system in thunderbird for now.  The first time you click a number it will open a browser window inside of thunderbird, and you will need to log in.  I usually then go to the active extensions page so that I stay logged in.
+
&dest_cid_number=your_phone_number
*Open the address book and click a phone number.  It should dial your extension first, and then ring the other party.
+
&src=Your_Extension&
 +
dest=%NUM%
 +
&rec=false
 +
&ringback=us-ring
 +
</pre>
 +
The resulting url will look something like this:
 +
  https://voip.example.com/app/click_to_call/click_to_call.php?username=YourUsername&password=YourPassword&src_cid_name=TBDialout&src_cid_number=%NUM%&dest_cid_name=Your Company Name&dest_cid_number=your_phone_number&src=Your_Extension&dest=%NUM%&rec=false&ringback=us-ring
 +
**Username: <b>Leave Blank</b>
 +
**Password: <b>Leave Blank</b>
 +
**Open in background (http/https only): </b>Checked for Live, Unchecked for debugging</b>
 +
===Usage===
 +
Open the address book and click a phone number.  It should dial your extension first, and then ring the other party.

Revision as of 22:38, 16 November 2012

Menu: (Apps-Click to Call)

General Info

Provide the following information to make a call from the source number to the destination number.

Caller ID Name:	
Caller ID Number:	
Source Number:	
Destination Number:

Calling via URL

https://voip.yourdomain.com/app/click_to_call/click_to_call.php?src_cid_name=TBDialout&src_cid_number=3615551234&dest_cid_name=Your Name&dest_cid_number=3615551234&src=1000&dest=3614613242&rec=false&ringback=us-ring

Broken down:

  • Location of App:
  • Caller ID name to send to your Extension
    • src_cid_name=TBDialout&
  • Caller ID Number to send to your extension (probably you want the number you're dialing)
    • src_cid_number=3615551234&
  • Caller ID Name to send to the destination
    • dest_cid_name=Your Name&
  • Caller ID Number to send to the destination
    • dest_cid_number=3615551234&
  • Extension number to call first
    • src=1000&
  • Destination number to call
    • dest=3614613242&
  • Record the call (true or false)
    • rec=false&
  • Ringback you want to here. Can also be uk-ring, fr-ring, rs-ring or music
    • ringback=us-ring

Integrating with Thunderbird's Address book

Install the version from the Dev Branch

The current version will nut function with TBDialout.

  • TBDialout by default only string replaces the first %NUM%. You need to patch FusionPBX to account for this (Nov 15, 2012). There's a diff file attached on this issue.

You need to install the version from the dev branch. here's the easiest way to do so (this will fix on the next release after Nov 15 2012:

  • You also gain the ability to easily make sip uri calls.
cd /var/www/fusionpbx/app/click_to_call
mv click_to_call.php click_to_call.php.bak
wget http://fusionpbx.googlecode.com/svn-history/r3179/branches/dev/fusionpbx/app/click_to_call/click_to_call.php
chown www-data.www-data click_to_call.php #or whatever your web server user is.
  • Install the TBDialOut extension.
  • Open the extension and set it's preferences.
    • URL Scheme to use: Custom URL
    • Replace leading + with: Leave blank
    • Prefix called numbers with: Leave blank
    • Custom URL:
      • Here you will set dest=%NUM% and src_cid_number=%NUM%. Here's some block text you can copy and edit. Then make it one big URL. DO NOT ATTEMPT SENDING USERNAME AND PASSWORD OVER AN HTTP SESSION
https://voip.example.com/app/click_to_call/click_to_call.php?
username=YourUsername
&password=YourPassword
&src_cid_name=TBDialout
&src_cid_number=%NUM%
&dest_cid_name=Your Company Name
&dest_cid_number=your_phone_number
&src=Your_Extension&
dest=%NUM%
&rec=false
&ringback=us-ring

The resulting url will look something like this:

https://voip.example.com/app/click_to_call/click_to_call.php?username=YourUsername&password=YourPassword&src_cid_name=TBDialout&src_cid_number=%NUM%&dest_cid_name=Your Company Name&dest_cid_number=your_phone_number&src=Your_Extension&dest=%NUM%&rec=false&ringback=us-ring
    • Username: Leave Blank
    • Password: Leave Blank
    • Open in background (http/https only): </b>Checked for Live, Unchecked for debugging</b>

Usage

Open the address book and click a phone number. It should dial your extension first, and then ring the other party.