Page 1 of 1
Audio notification of inbound email
Posted:
Thu Oct 15, 2015 9:26 am
by ClearCall
Good morning all,
Since the api.php script has an audio_playback function, where would I need to insert code to call this function to play a sound into the agent session when an email is sent to the agent? Would it be a write to the vicidial_manager table or a call from within a php script?
I'm thinking something like $URLplay = "../agc/api.php?source=test&user=$user&pass=$pass&agent_user=$user&function=audio_playback&value=$soundid&stage=PLAY";
Re: Audio notification of inbound email
Posted:
Thu Oct 15, 2015 11:01 am
by mflorell
What kind of inbound email exactly?
You can use the API through any script that you want to, any script that can send a simple web request.
Re: Audio notification of inbound email
Posted:
Thu Oct 15, 2015 11:39 am
by ClearCall
I have 2 email in_groups set up but when agents receive an email "call" for lack of a better term there is no audio alert, so if they are on another screen they don't notice. This creates a delay in responding to the email and also makes the agent unavailable to receive any other calls or emails until someone notices and the agent can "hang up" the email.
Re: Audio notification of inbound email
Posted:
Thu Oct 15, 2015 2:43 pm
by mflorell
Interesting problem, we should probably offer that as a feature within email-groups. Please open a new ticket for that in the Issue Tracker and link it back to this topic.
Re: Audio notification of inbound email
Posted:
Thu Dec 01, 2016 10:02 pm
by williamconley
ClearCall wrote:Good morning all,
Since the api.php script has an audio_playback function, where would I need to insert code to call this function to play a sound into the agent session when an email is sent to the agent? Would it be a write to the vicidial_manager table or a call from within a php script?
I'm thinking something like $URLplay = "../agc/api.php?source=test&user=$user&pass=$pass&agent_user=$user&function=audio_playback&value=$soundid&stage=PLAY";
You seem to be heading in two different directions at once. You put the code in wherever your trigger event causing the need for the audio file. The URL to call is defined in the API documentation. But you shouldn't be hitting any table directly as part of this process, that's not what's called for in the API doc.