RingCentral + Salesforce (Click to call phone numbers)

At my company, the sales guys wanted a way to click on a phone number on a webpage and have it connect them automatically.   In our case the application was for a Salesforce CRM but this solution would work for any webpage which has phone numbers on it. 

What makes this possible is a RingCentral feature called “RingOut”.  What it does is it calls you on your phone number and then connects you to the number you want to call.  The software provided by ring central can do this automatically in applications like Microsoft Outlook.  But, didn’t have a way of simply clicking a link in a webpage. 

Here’s a quick solution for FireFox users.

1) Get the firefox addon: Telify

2) Open the Telify preferences and configure it to use a “Custom URL”.

3) Edit the GET params appropriately in the URL below and paste it into the Custom URL field.  (See this page for more on this: http://service.ringcentral.com/ringoutapi/ for a detailed description of what each field is if you can’t figure it out.)

https://service.ringcentral.com/ringout.asp?cmd=call&username=8889363711&ext=101&password=1234&to=$0&from=6505551231&clid=8889363711&prompt=1

Notice that we set the “to” field to $0.  This is a variable that will be replaced with the phone number that you clicked on automatically by Telify.

Posted on Wednesday, December 23, 2009 at 11:20PM by Registered CommenterBlake Robertson | Comments1 Comment

Maker's vs. Manager's Schedule

Nice article which articulates the reason why meeting’s are so painful for developers.
http://www.paulgraham.com/makersschedule.html

Posted on Monday, July 27, 2009 at 02:47PM by Registered CommenterBlake Robertson | Comments1 Comment

Workaround for post-commit.bat failing to svnsync due to ssl certificate. 

 

My company has it’s svn server on a windows box which makes things like 30x more of a pain.  We use svnsync to synchronize a local repo with a repo one. 

Adding a post-commit.bat to call svnsync failed because it would hang waiting for user input to accept the SSL Certificate.

Error validating server certificate for 'https://someserver.com:443': 
- The certificate is not issued by a trusted authority.
Use the fingerprint to validate the certificate manually!
Certificate information:
- Hostname: someserver.com
- Valid: from Tue, 09 Dec 2008 01:49:41 GMT until Sun, 09 Jan 2011 01:49:41 GMT
- Issuer: Equifax Secure Inc., US
- Fingerprint: b1:4e:2d:b8:7f:27:96:ba:21:ef:46:fc:12:43:b5:4c:83:3b:dd:b9
(R)eject, accept (t)emporarily or accept (p)ermanently? svnsync: PROPFIND request failed on '/somefolder'
svnsync: PROPFIND of '/somefolder': Server certificate verification failed: issuer is not trusted
(https://someserver.com)

When svnsync was being run from post-commit it was being run as some system user which hasn’t already accepted the certificate to have it in it’s certificate store.  I began looking into how I would add it when I realized that I had a scheduled task for which I could specify the user to run as.  So, the simple solution is… create a scheduled task which invokes svnsync. 

Then add to your post-commit.bat

@echo Running from postcommit hook! >> C:\sync_serverupdatessvn.log 2>&1
call SCHTASKS /Run /TN >> C:\sync_serverupdatessvn.log 2>&1


Just replace <YOURTASKNAME> with the name you gave to your scheduled task you created.  You’ll also probably want to update the logfile name and path.

 

 

Posted on Monday, July 27, 2009 at 12:38PM by Registered CommenterBlake Robertson | CommentsPost a Comment | References7 References

Creating a VisualForce email template which invokes an Apex Class.

Recently, I created my first “VisualForce” email template.  I found that lots of the documentation for VisualForce for when you were creating “Pages” and not “Email Templates.”

See my solution outlined here for a basic tutorial on how to create a visualforce template which needs to access Apex controllers and Apex classes to perform basic math operations etc.

http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=14004&jump=true#M14004

Posted on Thursday, June 18, 2009 at 03:20PM by Registered CommenterBlake Robertson | CommentsPost a Comment

Using RegEx to comment out log statements cleanly.

I needed to optimize my code space usage on a recent embedded project. I wanted to estimate how much space was being used by my various print statements. In my project I have debug, info, warn, error level print statements.  I used the regex below to find each of the statements and  was able to find all statements, comment them out, and rebuild my project to see
how much space each log level used.

Find: (^\s*)((info)\S*\(.*)
Replace: $1;//CSOPT_$3 $2
File Types: *.c <—- important otherwise you could update header files or .txt files.

Example:
    infoln(“some info statement”);    —- BECOMES —->
    ;//CSOPT_info infoln(“some info statement”);

To use this regex you replace the “info” text with the command prefix you want to replace. It also will find things like infoln.  You may be wondering why the replace expression looks so complicated…

  • For one, you do not need to edit each replace statement for each find.
  • It maintains whitespace properly.
  • The reason for the ; in replace is to prevent issues where you had a if statements without brackets… the next statement isn’t what you meant for it to be.

To reenable your statements all you have to do is search for “//CSOPT_info ” (to replace one log type ata time) or “//CSOPT_\S+\s” (to replace all at once) and leave the replace box blank.

One issue you may encounter is if you have print statements which extend on to multiple lines… these you will either need to combine into one line or handle specially. Since these always create a compile error it’s not a big deal.

 

Posted on Wednesday, May 20, 2009 at 06:08PM by Registered CommenterBlake Robertson | CommentsPost a Comment
Page | 1 | 2 | 3 | 4 | Next 5 Entries