Vtiger Integration

Discussion in 'General' started by icenews, Sep 3, 2010.

  1. icenews

    Joined:
    Sep 3, 2010
    Messages:
    37
    Likes Received:
    0
    Hi

    This is very strange, but I cannot find any instructions on:
    Vtiger, Elastix, Call Center Integration Setup

    VtigerCRM_5.1.0_Asterisk_Integration.pdf -> is the only pdf I found on the Vtiger Site.

    It seems to be incomplete or does not fully work properly, because when I attempt at running the following supplied instructions: "php5 AsteriskClient.php" it does not work.

    It only works with "php AsteriskClient.php" and this further bombs out with errors.
    I therefore yum updated the system, and attempted again, and this time - the script simply sits there unresponsive.

    I click on a phone number in Vtiger, and the x-lite softphone requires that you answer, and when you do, it tells me good bye. I noticed in my ssh window, the following errors:

    PHP Notice: Undefined index: State in /var/www/html/vtigercrm/cron/modules/PBXManager/AsteriskClient.php on line 93

    There's got to be a simpler approach to integrating the two systems thru the GUI interface in Elastix, maybe something like "Enable Vtiger Integration Check Box" ?

    I am surprised that I cannot find anything.

    Please advise

    Thank you
    Walt
     
  2. donhwyo

    Joined:
    Aug 8, 2008
    Messages:
    293
    Likes Received:
    0
    I think you need to edit that file not run it. Also you need to get the context right.

    Don
     
  3. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Don:

    Greetings, please check out my tentative script in the bug-tracker, it needs testing, (I see you also in the vtiger forums, AsteriskClient.php is quite broken IMHO, so I rewrote it, and AsteriskClass.php doesn't work for FreePBX/Elasix as you know, I try to fix both of them there, but I need feedback, it certainly isn't ready for a production system yet)

    icenews:

    Please be patient, PaloSanto is working on an Elastix specific solution. VTiger 5.1 is immanently going to 5.2. I don't imagine a final solution until that happens.

    regards

    dicko
     
  4. icenews

    Joined:
    Sep 3, 2010
    Messages:
    37
    Likes Received:
    0
    Hi Don, how are you today

    I believe I got the Context working for Vtiger properly setup
    I had spoken with Tech Support and they changed the default context to: "from-internal".

    But like you said AsteriskClient.php and/or AsteriskClass.php give me errors

    How do I get the latest scripts ?

    Thanks
    Walt
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    You already have the "latest" scripts, unfortunately they just don't work well with Elastix/FreePBX, sorry.


    dicko
     
  6. icenews

    Joined:
    Sep 3, 2010
    Messages:
    37
    Likes Received:
    0
    hi

    ok - understood

    I found some kind of scripts online - during my research

    I'm not sure if they work or not - I will have to try them out

    I will keep you posted in my findings

    Thanks
    Walt
     
  7. donhwyo

    Joined:
    Aug 8, 2008
    Messages:
    293
    Likes Received:
    0
    Sorry I didn't see this the other day. The email notification seems not to be working. I replyed to one of the bugs. Can't remember which of the 3. Will get more detail later.

    Thanks,
    Don
     
  8. tataghost

    Joined:
    Apr 1, 2010
    Messages:
    46
    Likes Received:
    0
    Dear Dicko

    Where i can find your modfied script i made many researches in vtiger bug tracker but found nothing please tell me where to find this script as when i run asteriskclint.php i got this eror

    Connecting to asterisk server.....
    Connected successfully


    Trying to login to asterisk
    Logged in successfully to asterisk server

    Response: Error
    Message: Authentication failed

    PHP Notice: Undefined index: Event in /var/www/html/vtigercrm/cron/modules/PBXManager/AsteriskClient.php on line 93
    PHP Notice: Undefined index: Event in /var/www/html/vtigercrm/cron/modules/PBXManager/AsteriskClient.php on line 93

    so advice me how to overcome this error

    Thanks
     
  9. NikiN

    Joined:
    Feb 8, 2011
    Messages:
    1
    Likes Received:
    0
    In my case

    select * from vtiger_asterisk;


    +-----------+------+----------+------------+---------+
    | server | port | username | password | version |
    +-----------+------+----------+------------+---------+
    | 127.0.0.1 | 5038 | admin | elastix456 | 1.4 |
    +-----------+------+----------+------------+---------+



    update vtiger_asterisk set version=1.6;


    And all works!!! :woohoo:
     

Share This Page