Hola, alguien me puede ayudar con esto?
ccarmosmart
Posts
-
REST Integration need field value -
REST Integration need field valueHi All!
Im trying to integrate my platform with Asternic and need field values. For example:http://server/stats/rest/index.php?entity=reports/answered_calls_detail&start=2012-08-01&end=2012-08-10
Result:
{
"page":"1",
"total":"1",
"records":"232",
"rows": [
{
"datetime" : "01-08-2016 10:31:21",
"queue" : "2002",
"agent" : "Travis Spencer",
"callerid" : "4787574818",
"event" : "COMPLETEAGENT",
"waitTime" : "10",
"ringTime" : "10",
"callTime" : "94",
"agentName" : "Travis Spencer",
"queueName" : "2002",
"recording" : "test.wav",
"uniqueid" : "1327498260.2637",
"callflow" : "/asternicjquery/rest/index.php?entity=call/1327498260.2637",
"url" : "www.lala.com",
"did" : ""
}What are the values of this fields? Text, numbers...?
Can u help me with this?Thanks in advance!
-
Stats and recordings outgoing callsHi Nicolas!
I need some help. Im trying to make that Asternic records outgoing calls in stats. I found this solution, but I would like to answer you if there are any other way in order to don't touch the dialplan:
https://github.com/anitalmada/soportefts/blob/master/asternic.mdThank you in advise!
-
Configurar cambio de presence para pausar en colaHola Nicolás,
te agradezco mucho la ayuda.
Si intento pausar desde la caja de colores teniendo los permisos en el log veo lo siguiete:

10.155.44.51:15783 <= <msg data="8|setastdb|fop2state~106~QWRtaW5pc3RyYXRpdm8=|8a658d2a98de319870f69c57ec3d0ccd" />
10.155.44.246 -> Action: Command
10.155.44.246 -> Command: database put fop2state PJSIP/106 "Administrativo"10.155.44.246 -> Action: UserEvent
10.155.44.246 -> UserEvent: FOP2ASTDB
10.155.44.246 -> Family: fop2state
10.155.44.246 -> Key: PJSIP/106
10.155.44.246 -> Channel: PJSIP/106
10.155.44.246 -> Value: Administrativo10.155.44.246 <- Response: Follows
10.155.44.246 <- Privilege: Command
10.155.44.246 <- Updated database successfully
--END COMMAND--10.155.44.246 <- Response: Success
10.155.44.246 <- Message: Event Sent10.155.44.246 <- Event: UserEvent
10.155.44.246 <- Privilege: user,all
10.155.44.246 <- UserEvent: FOP2ASTDB
10.155.44.246 <- Family: fop2state
10.155.44.246 <- Key: PJSIP/106
10.155.44.246 <- Channel: PJSIP/106
10.155.44.246 <- Value: AdministrativoSin embargo, si pauso desde el recuadro de la extensión -> Pausar miembro -> Razón me pausa y sale el reloj

10.155.44.51:15783 <= <msg data="|queuepause|8!QWRtaW5pc3RyYXRpdm8=|8a658d2a98de319870f69c57ec3d0ccd" />
10.155.44.246 -> Action: QueuePause
10.155.44.246 -> Interface: PJSIP/106
10.155.44.246 -> Reason: Administrativo
10.155.44.246 -> Paused: 110.155.44.246 <- Response: Success
10.155.44.246 <- Message: Interface paused successfully10.155.44.246 <- Event: DeviceStateChange
10.155.44.246 <- Privilege: devicechange,all
10.155.44.246 <- Device: Queue:queue-6000_pause_PJSIP/106
10.155.44.246 <- State: INUSE10.155.44.246 <- Event: QueueMemberPause
10.155.44.246 <- Privilege: agent,all
10.155.44.246 <- Queue: queue-6000
10.155.44.246 <- MemberName: PJSIP/106
10.155.44.246 <- Interface: PJSIP/106
10.155.44.246 <- LastCall: 0
10.155.44.246 <- CallsTaken: 0
10.155.44.246 <- StateInterface: PJSIP/106
10.155.44.246 <- Membership: dynamic
10.155.44.246 <- Penalty: 0
10.155.44.246 <- Status: 5
10.155.44.246 <- Paused: 1
10.155.44.246 <- Reason: Administrativo
10.155.44.246 <- Ringinuse: 0Veo que la diferencia entre uno y otro es el Action sobre el servidor. En uno lanza un UserEvent y en otro un Queuepause.
Creo que va por ahí el fallo. ¿Puede ser?Muchas gracias de antemano.
-
Configurar cambio de presence para pausar en colaHola Nicolás,
Sí, si el plugin lo tengo instalado y con el gobal marcado. Y en settings del GUI lo tengo así. Pero sin embargo no me funciona:

-
Configurar cambio de presence para pausar en colaHola Nicolás,
me estoy volviendo loco y no encuentro la forma de hacer que el cambio de estado haga que la extensión se pause en la cola. Sin embargo, si lo hago desde el cuadrado de la extensión si que funciona. En el presence.js yo configuré lo siguiente:
var pauseReasons = new Object();
pauseReasons['Administrativo'] = 1;
pauseReasons['Descanso'] = 2;
pauseReasons['Comida'] = 3;
pauseReasons['Reunion'] = 4;
pauseReasons['Visita/Delegacion'] = 5;Esto funciona. Si desde el recuadro de cualquier extensión pulso pausar miembro y pongo la razón me lo pausa y además saco stats en Asternic. Al principio no funcionaba, pero por un fallo en mi BBDD. Creo que ahora va por el mismo camino, pero no encuentro la tabla de las pausas estas con colores. En el presence.js tengo lo siguiente:
presence[''] = '';
presence['Administrativo'] = '#FF8A8A';
presence['Descanso'] = '#FF8A8A';
presence['Comida'] = '#FF8A8A';
presence['Reunion'] = '#FF8A8A';
presence['Visita/Delegacion'] = '#FF8A8A';Esto no me funciona, he tenido que cambiarlo desde el Mánager para que coja cambios. Por lo que deduzco que son todo consultas sobre la BBDD. Ahora bien, lo que necesito es que cuando cambie cualquier presence con el color me ponga en pausa pero no lo hace. Sin embargo, desde los recuadros de extensiones sí, y sale el reloj.
¿Me puedes ayudar?
Gracias de antemano. -
Can't find DND plugin on FOP2ManagerHi,
first of all thank you for the response. I have the next lines in the config.php:$DBHOST="localhost";
$DBUSER="fop2";
$DBPASS="";
$DBNAME="fop2";And have installed Asternic CC stats in a CentOs server and all works there. As I can see dont have any "fop2" database but I have the user fop2 created. So, shall I create a new database with new tables? Or can use the "qstats" database created that Asternic uses?
Best regards,
-
Can't find DND plugin on FOP2ManagerHi all!
Recentlly installed FOP2 and all works fine. I have a Yeastar S300 and installed it in a server apart without problems. But now I need to configure presence buttons in order to make changes on Asterisk as I press them. Something like active DND on pbx/extensions if I press the pause button.
I read that there's a plugin named presenceDND that you need to install, but can't find it on FOP2Manager. There is a large list of plugins but not these. Actually, my FOP2Manager doesn't charge nothing. I created all extensions_buttons, users, etc. writing with command line because if I create them on graphic manager, changes didn't save. In fact, my buttons and users that are working dont appears on the php manager.
Please, can u help me with that issue?
Thanks.