Results 1 to 4 of 4

Thread: Custom button to call Comand Line

  1. #1
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Custom button to call Comand Line

    Hi all

    I am trying to add a custom button to the Calls module so I can take the phone number linked to the contact or account related to it and launch a command line to launch a VoIP system to perform the call.

    Basically each user has a VoIP phone installed in his pc, and it is using SugarCRM in this webbrowser. What I need is to add the button to make the comand line call to a program locally instaled in the pc of the user also.

    Something like C:\Folder\\Program.exe phone_number.

    Is this possible? if so could you plesae point me to any link where this is explained?

    Thanks a lot.

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Custom button to call Comand Line

    I believe this is possible, although I don't know if there's a standard sugar way to do it. What I would do is create a custom button that directs to a custom action (you should be able to figure out how to do these by looking around if you don't know how already). This will put you back in the php realm, in which you can call exec(), system(), or passthru(). Note that these are black listed functions, so if you're hosted on someone elses server, its likely that sugar won't let you use these functions.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  3. #3
    jlabuelo is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    426

    Default Re: Custom button to call Comand Line

    Hi

    this was my first idea.... SugarCRM is hosted in our server with Linux Ubuntu so dont think will be a problem to use those php functions, dont you think?

    Thanks for the answer!!

    Cheers

  4. #4
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Custom button to call Comand Line

    No, it shouldn't be a problem if you're hosting it; if you do find that its a problem you can go into your config_override.php and set $sugar_config['moduleInstaller']['packageScan'] to false, and Sugar will allow you to upload blacklisted functions.
    Robert Beckman
    Software Engineer
    Mirth Corporation

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. call a function on a click of button
    By prince.pandey7 in forum Developer Help
    Replies: 0
    Last Post: 2010-08-05, 06:50 AM
  2. Custom Button (list view) w/ Custom button
    By sugarmeso in forum Help
    Replies: 1
    Last Post: 2010-03-30, 09:54 PM
  3. Replies: 3
    Last Post: 2009-12-07, 07:57 PM
  4. Replies: 2
    Last Post: 2009-10-20, 10:15 AM
  5. Custom button call query
    By kinshibuya in forum Developer Help
    Replies: 1
    Last Post: 2009-08-29, 02:30 PM

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
  •