0

我必须将 vicidial 集成到我的 rails 应用程序中,我只需要将电话号码添加到列表中,我搜索了这个但没有找到任何有用的文档。谁能帮我?

4

3 回答 3

2

There are two basic methods (aside from the web interface) to add leads to the vicidial_list table (which is where the leads reside).

1) As previously mentioned: the API This can be activated from the command line by invoking wget or curl to simulate a web request and using the instructions in NON-AGENT_API.txt regarding the "add_lead" function. The instruction file is in /usr/src/astguiclient/trunk/docs/NON-AGENT_API.txt by default and the api itself is /srv/www/htdocs/vicidial/non_agent_api.php or "http://example.com/vicidial/non_agent_api.php".

2) Command Line Lead Loader This can be used to add multiple leads at once (or one at a time). It can also be used to reach out and grab leads from an FTP site, which means you'd be able to "plop" the lead in a location and then send Vicidial to "go get it" by invoking the CLILeadLoader. This script resides in /usr/share/astguiclient/VICIDIAL_IN_new_leads_file.pl, and there are some other related utilities nearby. Instructions and options are available by executing the script with "--help"

Of course, in both cases you could extract the code (one is PHP and one is PERL) if you want to write your own add to database method without invoking another script.

于 2014-10-08T23:16:49.123 回答
0

您可以使用 Vicidial NON-Agent API 将电话添加到列表中。

于 2013-04-03T05:47:35.390 回答
0

在原始 vicibox 安装中,您会在

/usr/src/astguiclient/trunk/docs 

文件夹。

为了与 Rails 集成,您很可能希望使用 Web 代理 API。有多个选项可以将潜在客户添加到系统,例如您可以在 AGENT_API.txt 文件中找到的“external_add_lead”函数。

于 2014-04-04T09:20:33.717 回答