How to setup a broadcast survey by code

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to setup a broadcast survey by code

Postby roll72 » Wed Jun 17, 2009 5:38 pm

Hello,

I'm working on a Vicidialnow 2.0.5.

I planned to make some developpement to have a web application doing
voice alert for end user.
Scenario of surver are quite simple : first voice message to diffuse the alert and then asking to have acknoledge (key 1), be re-called (key 2) or be place in dot not Call again (key 9).
I managed successfully do it through the usual vicidial web administrator interface and the help of the administration manual I purchased (thanks for this work, it was a good investiment).

Now, I would like to make by php code, and I need some help or any tricks that could boost this developpement. Following is was I understand from now of the 'inside' part of vicidial, please correct me if I'm wrong :


there is two API availables :
- one for Agent : looks to be relative to agent, not very suitable for my purpose

- one for Non Agent : this API enable to add new lead to existing list



here are my questions :
- does there is anyway to create new list with an API, or do we need to go directly to the database ? if an aPI exist, could someone publish it or send me by email ?
- how is it possible to make active one campaign ? is it better to make active one campaign or one list inside this campaign ?
- does there is anyway to make a call to the end user in order he record his message ?

Does someone ever try to make some integration of vicidial with Joomla ?

thanks in advance for your help
roll72
 
Posts: 82
Joined: Wed Jun 10, 2009 12:32 pm

Postby mflorell » Wed Jun 17, 2009 6:18 pm

I really don't understand what you are trying to do.

Could you go step-by-step and explain please?

What possible use would Joomla be with ViciDial?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

control vicidial by code

Postby roll72 » Wed Jun 17, 2009 6:27 pm

I would like basically make the same as a previous user in the forum was doing (irfanlateef), it will be basically what he mention :


"....
From the understanding of the VICIDIAL application I think this can be
done without the GUI by just manipulating the VICIDIAL tables in
the MySql Asterisk database as following.

(1) Create an entry in vicidial_campaign table.
(2) Create N entries in vicidial_list for the phone numbers
set the status to active.

(3) Set the campaign status to active = Y

There may be few more steps but to illustrate point I just listed a few.
All the above steps can be doen use MySql scripts from other apps.

And when the campaign goes active the background cron scripts will
load it into the hopper and dail-out and make the calls and play the recorded message.

After all calls are completed the list can be deleted and the process
can repeat all over again when a new list of phone numbers are received.
...."

For the joomla usage, I usually use it for all the cosmetic side (web design) and group and user management. I would like to integrate a php code inside joomla that control the different step which have been described above. Indeed, this web developpement should works without joomla.

regards
roll72
 
Posts: 82
Joined: Wed Jun 10, 2009 12:32 pm

Default creation of campaign/list

Postby roll72 » Wed Jun 17, 2009 6:46 pm

To complete what I could need to do my application, is some examples
of default creation of campaign and list items in table.

After I will use the non-api agent to fill the lead into the created list.

I saw there is some default value when a new record is created in campaign table, but I'm wondering if these default values are enough for creation of broadcast campaign.

thanks in advance for your help
roll72
 
Posts: 82
Joined: Wed Jun 10, 2009 12:32 pm

Postby mflorell » Thu Jun 18, 2009 6:26 am

The non-agent API does not have any capacity to create campaigns or lists at this point, and defaults are not enough to have a functional broadcast campaign.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

advice for a web campaign creation

Postby roll72 » Fri Jun 19, 2009 4:55 pm

Hello,

so do you have any advice to do the type of application I spoke above ?
roll72
 
Posts: 82
Joined: Wed Jun 10, 2009 12:32 pm

Postby mflorell » Fri Jun 19, 2009 6:16 pm

Well, the admin.php has all of the examples you need. campaign and list creation involve a lot of queries so it's not going to be a simple single insert query.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby williamconley » Sat Jun 20, 2009 11:37 am

However ... if you use the guts of the "lead loader" and just pass your individual lead to it (after pre-setting the options), you can certainly do one lead at a time with it. Very nice script. Covers all the bases.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

lead loader

Postby roll72 » Sat Jun 20, 2009 1:21 pm

Hello,

are you talking abut the TYGRA lead loader ?

where I could find it ?
is the source code is available ?

thanks for your help
roll72
 
Posts: 82
Joined: Wed Jun 10, 2009 12:32 pm

Postby williamconley » Sat Jun 20, 2009 3:38 pm

LOL

No, I'm talking about Vicidial. It has a lead loader page. It's a script. It can be modified to run without a "user" or it can have information fed to it easily from another script (on the same system or remotely).

This is open source software, some of its functions (pertaining to call handling) can be severely complex. BUT it's basic php/mysql functions aren't all that deep even if they aren't standard (to meet the needs of all the clients who use it specifically instead of the general public, i'm sure).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

list loader

Postby roll72 » Wed Jul 08, 2009 8:21 pm

Hello,

I found a listloader.pl in the www directory, is it the one you speaking about ?

thanks for your help
roll72
 
Posts: 82
Joined: Wed Jun 10, 2009 12:32 pm

Postby williamconley » Wed Jul 08, 2009 8:45 pm

When "Average User" loads leads into Vicidial, they go to the lead loader page in the Web GUI and upload. You, too, could use the built-in Web GUI lead loader and then find out what it does.

That may, indeed, be a script it runs or it may not. One way or another the coolest thing about "Open Source" is that when Vicidial loads the leads, it is using standard unencrypted php, scripting, and sql queries to do it.

Find where you are when you press that button in the php script, and then read the code. Or pay someone to do it for you if you don't know php. Copy it or use as many parts of it as you like to accomplish your task. I love open source.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20019
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 52 guests