Results 1 to 3 of 3

Thread: Use Vonage Click2Call

  1. #1
    Join Date
    Oct 2006
    Location
    USA
    Posts
    407

    Default Use Vonage Click2Call

    I dont know about the rest of the users, but we use Vonage for our business line, and this is also where we got our 1-800#.
    Their prices are VERY resonable. This is not a sales pitch for vonage at all, but if you are interested in getting Vonage, PM me your email address for discount coupon... To see a working demo outside of whmcs, your can enter your phone# and my vonange line will ring and we be connected for free at: http://www.webresellers.net/call.htm

    Let me get this back on topic....

    It would be very nice if WHMCS would link the clients phone number in the client area (admin section only) to Vonages Click2Call service.... Which is basically a link you can click on, then your Vonage phone will ring, and call the customer automatically. Since long distance calls are free from Vonange this solution has worked very well for us, plus we offer our customers a 1800# to call us for free if they want.

    VARIABLES:
    username = vonage account username
    password = vonage account password
    fromnumber = your vonage phone#
    tonumber = phone # to dial
    (This works will ALL Vonage accounts, nothing special is needed)

    Here is the basic code for getting the click to call to work:

    HTML:
    Code:
    <form action="https://secure.click2callu.com/tpcc/makecall" method="POST">
        username <input name="username">
    
        password <input name="password" type="password">
    
        fromnumber <input name="fromnumber">
    
        tonumber <input name="tonumber">
    
        <input type="submit">
    </form>
    PHP:
    Code:
    <?php
    $username = urlencode("username");
    $password = urlencode("password");
    $fromnumber = "fromNumber";
    
    $tonumber = preg_replace("/\\D/", "", $_REQUEST['tonumber']);
    
    $ch = curl_init("https://secure.click2callu.com/tpcc/makecall");
    curl_setopt($ch, CURLOPT_MUTE, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, "username=$username&password=$password&fromnumber=$fromnumber&tonumber=$tonumber");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $output = curl_exec($ch);
    curl_close($ch);
    
    if (strncmp($output, "000:", 4) == 0)
        echo "Calling $tonumber, please answer your phone when it rings.";
    else
        echo "Sorry, an error has occurred: $output";
    ?>

  2. #2
    Join Date
    May 2006
    Posts
    2,530

    Default

    I would like to have this feature as well, but would prefer to that this plugin in unencrypted so that I can insert my own code for my own carrier. I run my own voip pbx (asterisk) with a different voip carrier (viatalk). I have my own code, so all i ask is that it this particular code can be modified.
    DISCLAIMER: I am in no way associated with WHMCS. My statements only come from years of programming, experience using WHMCS, and just my honest opinion.

  3. #3
    Join Date
    Nov 2006
    Posts
    19

    Default

    This would be a nice feature. But please leave it unencrypted as there are to many different carriers out there.

    Thanks

Similar Threads

  1. Vonage users / Click2Call
    By webresellers in forum Useful Resources
    Replies: 3
    Last Post: 10-05-07, 02:58 PM