-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whisper en monitoreo de campaña con un click #39
Open
hgmnetwork
wants to merge
6
commits into
IssabelFoundation:master
Choose a base branch
from
hgmnetwork:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obtenemos la extension activa en manejar Monitoreo_HTML para poder realizar escuchas y conectar con esa extension
añadimos al lado del nombre o extension del agente el icono del altavoz con la accion al hacer click para que llame a escuchar y marque la extension del usuario activo y ponga escucha a dicho agente.
funcion javascript que llama al fichero escuchar_agente para realizar la llamada, primero a la extension activa y luego la escucha, si la extension del agente no esta conectado no hace nada
genera la llamada al agente indicandole whisper agente : xxx y le conecta con la extension del usuario actual , si tiene varias extensiones el usuario conecta solo con la primera que es la que usará por defecto.
modificado me avisaron y pude verificar que solo funcionaba con extensiones sip, he cambiado a fputs($oSocket, "Channel: local/".$from."\r\n" ); para que con el local funcione sea una extension iax2 o sip :D ahora funciona con todas
mejora de seguridad, ahora verificamos que sea un usuario logueado y solo puede hacer escucha en la extensión que el propio usuario tiene asignada como la primera de todas, si no tiene asignada extensión no realiza escucha.
egorky
reviewed
May 4, 2020
@@ -138,7 +138,7 @@ | |||
{literal}{{#view tagName="tbody"}} | |||
{{#each agentes}} | |||
<tr {{bindAttr class="reciente desde"}}> | |||
<td width="20%" nowrap="nowrap">{{canal}}</td> | |||
<td width="20%" nowrap="nowrap"> OnClick="javascript:escuchar(this.innerHTML,'{/literal}{$EXTENSION_USUARIO}{literal}');"><img src="images/record.png" width="22" height="22" id="escucharAgente"/>{{canal}}</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aquí hay un error
Debe borrarse el > antes de OnClick
egorky
reviewed
May 4, 2020
console.log('error escuchar_agente.php'); | ||
console.log(xhr); | ||
alert("Se ha producido un error al intentar escuchar al adengte.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no está bien escrita la palabra agente
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
con esta mejora en monitoreo de campaña al lado del numero de cada agente aparece un icono y permite al hacer click realizar escucha a ese agente directamente. Es necesario tener el usuario activo con una extensión asignada y esta conectada para que al hacer click emita una llamada al supervisor o la extension que se tenga en ese usuario y este al desconectar, conecta el whisper en modo solo escucha con la extensión indicada.
Si el usuario activo o extension no esta conectada, simplemente se ignora y no hace nada.
Utiliza el usuario de manager_custom.conf de php (phpconfig).