Results 1 to 10 of 10

Thread: Please Help, where is callto

  1. #1
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Default Please Help, where is callto

    Good morning peeps

    Please can you assist me, I have been trying in for a while no to redirect the skype out callto:// control to the x-lite SIP control. Apparently all I have to do is change the callto:// function to sip: and it will work, however I cannot locate the function. Please can anyone tell me which file it is stored in.

    Kind regards

    John

  2. #2
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: Please Help, where is callto

    Not sure if this helps but there are 3 references to "callto://"....

    include/Smarty/plugins/function.sugar_phone.php line 66...
    return '<a href="callto://'.format_skype($params['value']).'">'.$params['value'].'</a>';


    modules/Accounts/Account.php line 296...
    return '<a href="callto://'.format_skype($params['value']).'">'.$params['value'].'</a>';


    modules/Contacts/Contacts.php line 477...
    $temp_array['PHONE_WORK'] = '<a href="callto://'
    . $temp_array['PHONE_WORK']. '">'
    . $temp_array['PHONE_WORK']. '</a>' ;
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  3. #3
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Default Re: Please Help, where is callto

    Hey there

    Thanks for the speedy reply, I'm sure this will at least put me on the right track

    Cheers

  4. #4
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Smile Re: Please Help, where is callto

    Actually I have one more question. The change of code was really easy actually (changed the callto:// to sip. Now I have appended a '9' (sip:'9') to try and get past the outside line which alsowas easy and it did dial x-lite. The problem is x-lite does not recognise +44 and the skype handler will not dial as '0', any ideas how i can convert the code to either make the +44 turn to a 0 so that x-lite can understand, or change the skype details to appear with a '0'

    many thanks, for looking

    John

  5. #5
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: Please Help, where is callto

    At the point in the code where the value is written to the screen, use str_replace. So, in the examples I posted earlier it would be something like...


    return '<a href="sip:9'.str_replace('+44','0',format_skype($p arams['value'])).'">'.$params['value'].'</a>';

    If you also want that displayed on the screen (instead of just embedded in the hyperlink)...

    return '<a href="sip:9'.str_replace('+44','0',format_skype($p arams['value'])).'">'.str_replace('+44','0',$params['value']).'</a>';

    The format of the command is...
    str_replace(<search>,<replace>,<target>)
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  6. #6
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Smile Re: Please Help, where is callto

    Thanks so much we have sorted it all and our guys are merrily clicking away.

    If you don't mind one more little thing. Out of the box sugar works perfectly when converting leads, but now our system is creating appointments i.e calls/meeting for opportunities, leads, accounts and contacts even when an appointment isn't scheduled.

    A way to fix this or a pointer to why it is happening would be really appreciated

    Regards

    John

  7. #7
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: Please Help, where is callto

    The system is creating them automatically? I can't think why that should be.


    I think I'd need more info on that. If you view the appointments, does it give you information about the user who created them, time and date, etc.?
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  8. #8
    Tugui is offline Member
    Join Date
    Nov 2008
    Posts
    11

    Default Re: Please Help, where is callto

    How do I get to see that code? Please explain step by step how I get to it. I have Voip Discount and want to integrate that instead of Skype.
    Many thanks
    Alex

  9. #9
    routledge is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    London
    Posts
    98

    Default Re: Please Help, where is callto

    Quote Originally Posted by Tugui View Post
    How do I get to see that code? Please explain step by step how I get to it. I have Voip Discount and want to integrate that instead of Skype.
    Many thanks
    Alex
    Are you still having problems with this?

    Regards

    John

  10. #10
    warrenzim79 is offline Junior Member
    Join Date
    Aug 2010
    Posts
    2

    Default Re: Please Help, where is callto

    Hi,
    What version was this for, I would like to use the:
    '<a href="sip:'.str_replace('+64','0',format_skype($pa rams['value'])).'">'.$params['value'].'</a>';
    But this does not seem to be working. Please can you someone explain exactly what i should be swapping with in the 3 areas:

    include/Smarty/plugins/function.sugar_phone.php line 66...
    return '<a href="callto://'.format_skype($params['value']).'">'.$params['value'].'</a>';


    modules/Accounts/Account.php line 296...
    return '<a href="callto://'.format_skype($params['value']).'">'.$params['value'].'</a>';


    modules/Contacts/Contacts.php line 477...
    $temp_array['PHONE_WORK'] = '<a href="callto://'
    . $temp_array['PHONE_WORK']. '">'
    . $temp_array['PHONE_WORK']. '</a>' ;

    Thanks

    Warren

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Windows Phone Dialer
    By JayL in forum Feature Requests
    Replies: 14
    Last Post: 2007-11-24, 10:34 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
  •