Agent Email

All installation and configuration problems and questions

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

Agent Email

Postby smead » Tue Mar 18, 2014 12:58 pm

I'm working on an email script to use with the Dispo URL and can't seem to find the variable for agent email anywhere. I see where to input the email in Admin > Phones, but what do I use to pull this information?
Single Server | Dell Optiplex 755 Quadcore 2.4Ghz 4GB Ram | OpenSuSE v.12.1 | ViciBox Preload x86 v5.0.3 | VERSION: 2.8-426a BUILD: 140214-1643 SVN 2077 | Asterisk 1.8.25.0-vici
smead
 
Posts: 73
Joined: Wed Jul 24, 2013 5:46 pm

Re: Agent Email

Postby mflorell » Tue Mar 18, 2014 4:54 pm

The variable is only in the database, it isn't passed anywhere in the agent web interface currently.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Agent Email

Postby williamconley » Tue Mar 18, 2014 6:20 pm

Syntax for each field is the same as "Scripts". So you can create a fake script and drop in the agent email address to get the exact syntax, then (assuming you understand URLs and GET) you'll have what you need to construct your dispo_url.

Note that you can ALWAYS use the phone/user to extract similar information from the database directly if you want to. Do be cautious as there is now also an "email" field assigned to the Users in addition to the one for Phones. Be sure you get the right one and be sure you test it. 8-)
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Agent Email

Postby smead » Tue Mar 18, 2014 10:12 pm

Wow I didn't even see it there in the user section, lol. How can I differentiate between the lead email and the agent email? Vicidial_users shows the field as 'email', but $_REQUEST('email') yields the lead email
Single Server | Dell Optiplex 755 Quadcore 2.4Ghz 4GB Ram | OpenSuSE v.12.1 | ViciBox Preload x86 v5.0.3 | VERSION: 2.8-426a BUILD: 140214-1643 SVN 2077 | Asterisk 1.8.25.0-vici
smead
 
Posts: 73
Joined: Wed Jul 24, 2013 5:46 pm

Re: Agent Email

Postby williamconley » Wed Mar 19, 2014 10:57 am

that would be where you use the script builder's dropdown to find the field names for you.
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Agent Email

Postby smead » Wed Mar 19, 2014 11:05 am

It's not in there. The only email field is 'email', which produces the lead's email. This happens to be the same field name used in the vicidial_users to store the users email. Is there a way to specify the database/table to pull the info from?
Single Server | Dell Optiplex 755 Quadcore 2.4Ghz 4GB Ram | OpenSuSE v.12.1 | ViciBox Preload x86 v5.0.3 | VERSION: 2.8-426a BUILD: 140214-1643 SVN 2077 | Asterisk 1.8.25.0-vici
smead
 
Posts: 73
Joined: Wed Jul 24, 2013 5:46 pm

Re: Agent Email

Postby williamconley » Thu Mar 20, 2014 7:52 am

If it's not there, you can use php to grab the value directly from the DB.

Also consider testing by putting a sample page in your web_form or web_form 2 fields and "dumping" the URL to see if the value you seek appears anywhere. These two fields will generate ALL available fields if not specifically told to only generate certain ones. So put in a php page, and use PHP to dump the contents to the screen (or just copy the url generated and paste it into a text editor, split into lines at "&" for ease of reading).

Beware of pushing the web form button when there is no entry, it will push to a sourceforge.net page that you do not own and WILL push the username AND PASSWORD of the agent to that site. 8-)

If not, then you could consider paying to have it added (The Vicidial Group or a 3rd party developer like poundteam) or adding it yourself or ... grab it from the DB directly when you need it. Grabbing from the DB is powerful, as then you can actually grab anything you want. PHP is a marvelous tool.
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 99 guests