Alert for calls in Queue

All installation and configuration problems and questions

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

Alert for calls in Queue

Postby Maverick1 » Thu Jul 16, 2020 1:28 pm

Hi All

Server specs

Vicidial 8.0.1
VERSION: 2.14-761a
BUILD: 200708-1033

I got a task to display some kind of alert if there is call(s) in queue, but agents dosen't always stay on Vicidial page.
I have explored following options

1. Agent Browser Call Alerts (Sound is only played only when call is for agent and agent is on Active status. If call is in queue nothing happens)
2. Waiting Call URL On / OFF

I'm not exactly sure how 2nd option works, I found this but didn't worked for me

http://vicidial.org/VICIDIALforum/viewtopic.php?f=5&t=38910#p136530

https://serevr-ip/agc/api.php?source=te ... stage=PLAY

If I create a webpage that would display a popup whenever it is refreshed and gave URL for that , would that work? Or maybe some other option I with which I can achieve this?
Maverick1
 
Posts: 17
Joined: Wed Jul 15, 2020 5:02 pm

Re: Alert for calls in Queue

Postby williamconley » Thu Jul 16, 2020 1:51 pm

Use the waiting call url to send a text message or email or even an IM.

Anything that will generate a desktop notification or email notification, something that breaks the barrier of "inactive tab". Although audio in the agent session may do the trick if the agent is a logged in agent as well.
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: Alert for calls in Queue

Postby Maverick1 » Thu Jul 16, 2020 2:04 pm

Thank you William for quick response, yes audio would do the trick. Actually I'm new to Vicidial and not sure how to do this. Let me google this and see if I can find something
Maverick1
 
Posts: 17
Joined: Wed Jul 15, 2020 5:02 pm

Re: Alert for calls in Queue

Postby Maverick1 » Thu Jul 16, 2020 4:21 pm

I tried adding following link in waiting Call URL On / OFF

xxx.xxx.xxx.xxx/agc/sounds/email_alert.mp3
(where xxx.xxx.xxx.xxx is my vicidial live IP)

still nothing happens, no sound plays

Firewall is OFF, just fail2ban is running

EDIT: I tried wget the sound file and it was also successful

Code: Select all
HTTP request sent, awaiting response... 200 OK
Length: 3086 (3.0K) [audio/mpeg]
Saving to: ‘email_alert.mp3’

100%[===================================================================================================================================================================================================>] 3,086       --.-K/s   in 0s

2020-07-16 18:01:18 (218 MB/s) - ‘email_alert.mp3’ saved [3086/3086]
Maverick1
 
Posts: 17
Joined: Wed Jul 15, 2020 5:02 pm

Re: Alert for calls in Queue

Postby williamconley » Thu Jul 16, 2020 5:05 pm

putting an mp3 (named email) into the URL is not viable.

URL is expected to be a web page. The web page will be expected to accomplish a task (such as inserting audio into the agent's session if logged in, or sending an email or ... something). However, this will be running Server Side and as such will not be able to generate sound directly in the agent's web page since the agent's worksztation/web page is not pulling the URL. The agent's web page is sending a request to the server to pull the web page.

If your goal is to find an existing feature in Vicidial for this, I have bad news 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: Alert for calls in Queue

Postby Maverick1 » Wed Jul 22, 2020 12:20 pm

williamconley wrote:URL is expected to be a web page. The web page will be expected to accomplish a task (such as inserting audio into the agent's session if logged in, or sending an email or ... something). However, this will be running Server Side and as such will not be able to generate sound directly in the agent's web page since the agent's worksztation/web page is not pulling the URL. The agent's web page is sending a request to the server to pull the web page.


Thank you William for explaining this in detail, I was able to display a message when call comes in queue.
Are there any parameters sent to URL? maybe something like extension on which call is coming or it just sends a hit? Actually the issue I have now is call coming on individual extensions, if I add URL to "AgentDirect" ingroup, URL will be hit on every call weather it is agent to agent or call coming to an individual extension and there wont be anyway for other agents to know on which extension call is coming on
Maverick1
 
Posts: 17
Joined: Wed Jul 15, 2020 5:02 pm

Re: Alert for calls in Queue

Postby williamconley » Wed Jul 22, 2020 1:30 pm

Similar to Web Form and Scripts: https://xx.xx.xx.xx/vicidial/help.php#c ... rm_address

To customize the query string after the web form, simply begin the web form with VAR and then the URL that you want to use, replacing the variables with the variable names that you want to use --A--phone_number--B-- just like in the SCRIPTS tab section. If you want to use custom fields in a web form address, you need to add &CF_uses_custom_fields=Y as part of your URL.

Will take some experimentation. Often useful to put the php function "print_r($_GET)" into the end of the web page you are using in that URL which will produce explicit output showing what was passed in the URL to the php page in question. You can also uses phpinfo (), but that's a bit overkill. I'd add the php functions before any other changes. By default, it may already be sending ALL available data.
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: Alert for calls in Queue

Postby Maverick1 » Thu Jul 23, 2020 5:22 pm

HI William,

I tried different URLs including following

http://abc.ddns.net/alert/search.php?phone=--A--phone_number--B--

but response in URL log report

Code: Select all
<RESPONSE EMPTY>|--2020-07-23 15:44:03--http://abc.ddns.net/alert/search.php?phone=--A--phone_number--B--!Resolving ABC.ddns.net (ABC.ddns.net)... 78.46.xxx.xxx!Connecting to ABC.ddns.net (ABC.ddns.net)|78.46.xxx.xxx|:80... connected.!HTTP request sent, awaiting response... 404 Not Found!2020-07-23 15:44:03 ERROR 404: Not Found.!!


whereas http://abc.ddns.net/alert works fine but not sending any variables

I tried adding "print_r($_GET)" at end of URL but response was blank

I tried with phone_number but want to send the extension(s) or user(s) on which call came

Not sure what I'm missing here
Maverick1
 
Posts: 17
Joined: Wed Jul 15, 2020 5:02 pm

Re: Alert for calls in Queue

Postby williamconley » Thu Jul 23, 2020 6:07 pm

awaiting response... 404 Not Found

the page you're pulling must actually exist. 404 means it does not.
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: Alert for calls in Queue

Postby Maverick1 » Thu Jul 23, 2020 6:25 pm

What I'm unable to understand here is how to pass variables to URL. You pointed "Webform" but "Web Form -This is where you can set the custom web page that will be opened when the user clicks on the WEB FORM button".
I was reading page 130 of the manager's manual topic web form but still not able to understand how to make this work
Maverick1
 
Posts: 17
Joined: Wed Jul 15, 2020 5:02 pm

Re: Alert for calls in Queue

Postby williamconley » Fri Jul 24, 2020 6:58 pm

the rules for web form URL generation apply to most of the URL generation fields in the campaign settings. In fact, you can practive with the web form which allows the agent to push the button to test your methods and then move the field entry to another of the url fields. The difference is that the web form URL is actually run in the agent screen, the others run server-side. The rules vary slightly due to the nature of each of the URLs (such as dispo url having the disposition available, but none of the others have this value since none of the others occur after the agent pushes the disposition submit button).
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: Alert for calls in Queue

Postby asridaaa28 » Sat Feb 26, 2022 7:16 am

Hi,

Please add VAR infront of the http (eg: "VARhttp://abc.ddns.net/alert/search.php?phone=--A--phone_number--B--") to get the phone number sent in the url.

..


Maverick1 wrote:HI William,

I tried different URLs including following

http://abc.ddns.net/alert/search.php?phone=--A--phone_number--B--

but response in URL log report

Code: Select all
<RESPONSE EMPTY>|--2020-07-23 15:44:03--http://abc.ddns.net/alert/search.php?phone=--A--phone_number--B--!Resolving ABC.ddns.net (ABC.ddns.net)... 78.46.xxx.xxx!Connecting to ABC.ddns.net (ABC.ddns.net)|78.46.xxx.xxx|:80... connected.!HTTP request sent, awaiting response... 404 Not Found!2020-07-23 15:44:03 ERROR 404: Not Found.!!


whereas http://abc.ddns.net/alert works fine but not sending any variables

I tried adding "print_r($_GET)" at end of URL but response was blank

I tried with phone_number but want to send the extension(s) or user(s) on which call came

Not sure what I'm missing here
asridaaa28
 
Posts: 1
Joined: Sun Dec 19, 2021 11:15 pm


Return to Support

Who is online

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