cant add agents with the call-center module..

Discussion in 'General' started by Trosky777, Apr 14, 2010.

  1. Trosky777

    Joined:
    Apr 14, 2010
    Messages:
    7
    Likes Received:
    0
    Hi, I just install the last version of Elastix and call center module and I've got a problem.. I can't add agents into it.. It says "Error when trying to insert an agent. Agent already exists".. Can you give a little help??? :dry:
     
  2. Trosky777

    Joined:
    Apr 14, 2010
    Messages:
    7
    Likes Received:
    0
    i found out that there error comes from checking a variable that is an array instead.

    on this file /var/www/html/modules/agents/libs/Agentes.class.php

    // if (!is_null($this->getAgents($agent[0]))) { this is the original line, which i commented and replaced for the one below

    if (count($this->getAgents($agent[0])) > 0) {
    $this->errMsg = 'Agent already exists';
    return FALSE;

    This allows the agents to be created and they are written in the database. But for some reason more than 1 agents can b created since this info its written in the text files. Any comments about this might be helpful.
     

Share This Page