Results 1 to 10 of 10

Thread: VOIP softphone integration

  1. #1
    stewart05 is offline Member
    Join Date
    Feb 2009
    Posts
    18

    Default VOIP softphone integration

    http://www.sugarcrm.com/forums/showthread.php?t=44054
    Ok so I posted this thread in the general discussion room and didn't get much help, so I thought I would try here.

    Do any of you guys know how to edit any of the skype interface information?? Is there a php file for that somewhere I missed??

    I really think that if someone could tell the phone numbers to be links ALL the time (not just when formated with the country code) and then also have a system setting somewhere that you can customize the html link that is generated for the phone number, then Sugar will be able to interface to ANY softphone that has the ability to dial via a hyperlink.

    Anyone have any thoughts on this?? I think it has a lot of potential.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: VOIP softphone integration

    Take a look at the file function.sugar_phone.php in <sugar_root>/include/Smarty/plugins/
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    stewart05 is offline Member
    Join Date
    Feb 2009
    Posts
    18

    Default Re: VOIP softphone integration

    GREAT!! I found this file and was able to edit the href so it matches what my softphone needs. However, my softphone, unlike skype, does NOT need the country code and the "+1" is screwing with the dialing. So, now when I click a phone number link, my softphone does come up and it even picks up an outgoing line, but it won't finish dialing, I think becuase the "+1". I see in that smarty plug it references skype paramas and "sykpe_formatted". Is there a way to edit this stuff so I can make all phone numbers links without having the "+'countrycode'" in front of the number??

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: VOIP softphone integration

    Yeah, I believe the other function it references is in Utils.php. You could go in there and modify the regexp that generates the number so it conforms to your needs.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    stewart05 is offline Member
    Join Date
    Feb 2009
    Posts
    18

    Default Re: VOIP softphone integration

    Ok, so I found the utils.php and found the skype info, but thats about as far as my brain will get me.

    I am NOT good with PHP or any language for that matter.

    Here is the code for Skype:
    PHP Code:
    function skype_formatted($number){
        
    //kbrill - BUG #15375
        
    if($_REQUEST['action']=="Popup") {
            return 
    false;
        } else {
            return 
    substr($number01) == '+' || substr($number02) == '00' || substr($number02) == '011';
        }
    //    return substr($number, 0, 1) == '+' || substr($number, 0, 2) == '00' || substr($number, 0, 2) == '011';
    }

    function 
    format_skype($number) {
        return 
    preg_replace('/[^\+0-9]/','',$number); 
    Now, I just want every phone number in Sugar to be a hyperlink without the +countrycode formating. Can someone tell me what I need to change in the above code to make that happen??

    Thanks!!!!

  6. #6
    stewart05 is offline Member
    Join Date
    Feb 2009
    Posts
    18

    Default Re: VOIP softphone integration

    Ok so I figured out that this section of code is what I need to "fix".
    PHP Code:
    return substr($number01) == '+' 
    If I replace the + with lets say the number 3 then any phone number in Sugar that starts with a 3 becomes a link. So now I need to figure out to say when 0,1 == "anynumber" it will turn the phone number into a link.

    I have tried [0-9] and 0123456789 and . but I just can't figure out if a wildcard will work, or what I need to put in place of the + so that any number will retrun a true I guess is what I'm trying to do.

    Anyone have any thoughts??

    Thanks,

  7. #7
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: VOIP softphone integration

    Hi steward,
    probably for the function skype_formatted, you just change the :
    return substr($number, 0, 1) == '+' || substr($number, 0, 2) == '00' || substr($number, 0, 2) == '011';
    to :
    return isset($number); //just check if the variable filled or not.

    btw, why the phone number link from the grid page (account/contact module) is different from the phone number link from the detail view page ? in the grid page I still get the phone number as it is, but in the detail view page I only get the number only. how do I change this ?

  8. #8
    webmerlion is offline Junior Member
    Join Date
    Jun 2009
    Posts
    3

    Default Re: VOIP softphone integration

    Voip softphone intefration can be done using VOIP SIP SDK TOOLKIT HOME for more details click on my signature

  9. #9
    Dallas Voip is offline Junior Member
    Join Date
    Nov 2010
    Posts
    1

    Default Re: VOIP softphone integration

    Hi! The information would be a great help. I am using a VOIP systems which configurations come with it and it's really fun to have the system around because it helps a lot in communicating with our partners worldwide. It's cool because it works in almost all kinds of messenger the skype, ym and msn.

  10. #10
    justpeachy is offline Junior Member
    Join Date
    Jun 2011
    Posts
    1

    Default Re: VOIP softphone integration

    Quote Originally Posted by stewart05 View Post
    http://www.sugarcrm.com/forums/showthread.php?t=44054
    Ok so I posted this thread in the general discussion room and didn't get much help, so I thought I would try here.

    Do any of you guys know how to edit any of the skype interface information?? Is there a php file for that somewhere I missed??

    I really think that if someone could tell the phone numbers to be links ALL the time (not just when formated with the country code) and then also have a system setting somewhere that you can customize the html link that is generated for the phone number, then Sugar will be able to interface to ANY softphone that has the ability to dial via a hyperlink.

    Anyone have any thoughts on this?? I think it has a lot of potential.
    Yes I agree, if someone could tell the phone numbers to be links ALL the time and have a system setting to customize html link for the phone number then the skype integration would be MUCH better.

    If anyone has figured this out I'd love to know

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 2011-04-27, 09:10 PM
  2. Replies: 15
    Last Post: 2011-02-07, 05:12 PM
  3. Basic VoIP Integration
    By greenleaf108 in forum General Discussion
    Replies: 3
    Last Post: 2010-07-20, 09:07 AM
  4. Possible way to integrate Sugar to a VOIP softphone
    By stewart05 in forum General Discussion
    Replies: 5
    Last Post: 2009-02-25, 12:22 AM
  5. Voip Integration for version 4.1.5c
    By Tavares in forum Help
    Replies: 0
    Last Post: 2007-05-04, 11:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •