<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Bom dia lista,<BR>estou tendo problema para conseguir procurar as gravacoes no FOP2, ele gera com sucesso as gravacoes, ja criei a database FOP2, o Phonebook funciona mormalmente, mas a parte de busca das gravacoes to apanhando, o pior que fiz de acordo como esta la no forum.<BR>Para conferencia da turma, segue abaixo os parametros, o que esta destacado mostra a linha que ativa o que eu quero, porem nao resultou em nada...<BR>ele fala que dependendo da versao do seu SOX, teria que fazer uma pequena alteracao, porem nao se fala em qual versao e nem que pequena alteracao seria essa <BR> <BR>[general]<br>; AMI definitions<br>manager_host=localhost<br>manager_port=5038<br>manager_user=admin<br>manager_secret=senha<br>;event_mask=agent,call,command,system,user,dialplan<BR>; Daemon definitios<br>listen_port = 4445<br>;restrict_host = <a href="http://www.asternic.org/">www.asternic.org</a><br>;web_dir = /var/www/html/operator/fop2<BR>; Global Config<br>poll_interval = 86400<br>poll_voicemail = 1<br>monitor_ipaddress = 0<BR>; Force blind transfer on asterisk 1.6<br>blind_transfer = 1<BR>; Force supervised transfer on asterisk 1.4<br>; requires the atxfer manager backport patch<br>; supervised_transfer = 1<BR>; Force delimiter for asterisk applications <br>; force_parameter_delimiter = ","<BR>; When adding or removing members to a queue, fop2 will default to <br>; AddQueueMember/RemoveQueueMember commands. If you set use_agentlogin<br>; to 1, together with the QueueChannel in a button definition set to<br>; an Agent number it will use AgentCallbackLogin and Agentlogoff instead.<br>;<br>; use_agentlogin = 0<BR><br>; Master Password that overrides any individual one<br>;master_key = 5678<BR> <BR>; Options to send to chan_spy when doing a Listen action<br>; This global setting is overriden by the individual button <br>; spyoptions directive if set (in the button config).<br>; Asterisk 1.6.1 or higher has the option "d" that lets you<br>; switch spying modes using the keypad:<br>4 = spy mode<br>5 = whisper mode<br>6 = barge mode<br>spy_options="bq"<BR>; Options to send to chan_spy when doing a Whisper action<br>; In Asterisk 1.6.1 or higher you can use B to enable barge (speak<br>; to both channels on a call).<br>whisper_options = "w"<BR>; When you spy to an ongoing call, your spy session will end as <br>; soon as the conversation you are listening to finishes. If you <br>; rather keep the chan spy session open after the call end, uncomment<br>; the following line.<br>;persistent_spy=1<BR>; Filename to use when start monitoring, you can use ${UNIQUEID}, <br>; ${ORIG_EXTENSION}, ${DEST_EXTENSION}<br>; and date formats %Y %m %d to construct the filename.<br>;<br>; Settings for modifying the recording filename<br>; Available variables are:<br>; ${UNIQUEID} = Unique Id of the call<br>; ${TIMESTAMP} = Unix Timestamp when the recording was initiated<br>; ${CLIDNUM} = Callerid or Dialed number for the active call<br>; ${CLIDNAME} = Callerid name for the active call<br>; ${DEST_EXTENSION} = Target extenstion being monitored<br>; ${ORIG_EXTENSION} = Extension/User that started the recording (not<br>; the other leg)<br>; ${MBOX} = Mailbox of the extension/user that started the <br>; recording<br>; ${FOP2CONTEXT} = FOP2 Panel Context <br>;<br>; Date variables: <br>; %Y 4 digits year<br>; %y 2 digits year<br>; %m 2 digits month<br>; %d 2 digits day<br>; %h 2 digits hour<br>; %i 2 digits minute<br>; %s 2 digits seconds<BR>; For elastix Monitoring Tab:<br>; monitor_filename=g${DEST_EXTENSION}-${UNIQUEID}<BR>; For fop2 recording interface<br>monitor_filename=/var/spool/asterisk/monitor/${ORIG_EXTENSION}_ligou_para_${DEST_EXTENSION}_ās_%h%i%s_de_%d%m%Y_${UNIQUEID}<br>monitor_format=wav<br>monitor_mix=true<BR>; To enable the recording interface you must uncomment the following<br>; line, but also you might need to modify the script a little bit <br>; depending on the sox version you have installed.<br>;<br><strong>monitor_exec=/usr/local/fop2/recording_fop2.pl</strong><BR>; You could specify your own script to be executed when the recording<br>; is finished. It will receive 3 parameters, the complete<br>; path and filename of the IN leg, the OUT leg and the final<br>; recording NAME. You should run soxmix in your script to join <br>; the recordings into one file.<br>;<br>; monitor_exec=/var/lib/asterisk/bin/postrecording-script.sh<BR>; FOP2 can fire notifications/popups when an extension or queue <br>; member receives a call. The default behaviour is to show a<br>; notification on state RINGING (notify_on_ringing=1). <br>;<br>; To customize notifications, you must uncomment the custom_popup<br>; function in checkdir.php you can replace that notification with<br>; a custom popup function to integrate with other web applications.<br>;<br>; For call centers you might need to perform a popup not on the<br>; RINGING state but when the call is CONNECTED to an agent. If you<br>; set in the queue configuration in queues.conf the option<br>; eventwhencalled=yes and then set here notify_on_connect=1,<br>; fop2 will send notifications on queue connected calls<br>; during AGENTCONNECT events. This will only work for inbound calls <br>; from a queue.<br>;<br>; notify_on_ringing = 1<br>; notify_on_connect = 1<BR>; Call pickup uses the pickupmark variable by default. In multi tenant<br>; systems this might lead to problems as you might end un picking up<br>; some other tenant call. In that case you might want to try to <br>; pickup the call by its context uncomenting the following line:<br>;<br>; no_pickupmark=1<BR>; If your asterisk version supports the pickupchan application it is <br>; much better to use this than the regular pickup application as it will<br>; be directed towards the channel and not the extension, makeing it<br>; more precise.<br>;<br>; use_pickupchan=1<BR>; Path to your voicemail directory<br>; For voicemail to work the fop2 server must run on the same server<br>; as asterisk, or your voicemail directory must be network mounted<br>voicemail_path=/var/spool/asterisk/voicemail<BR>; By default IM chats are not logged/saved. If you uncomment<br>; the following parameter, all chats will be stored on the chatlog<br>; table inside the fop2settings.db sqlite database.<br>;<br> save_chat_log=1<BR><br>; Khomp GSM interface to send SMS messages<br>; If there is a card plugged, fop2 will auto discover it <br>; and use the first one available. If you want to change it<br>; to a fixed one, uncomemnt the folowing line and change the name<br>; to your liking<br>;<br>; khomp_gsm=Khomp/b0<BR>; --- SAMPLE GROUPS ---<br>; group=queues:QUEUE/100,QUEUE/101<br>; group=deptA:SIP/100,SIP/101,SIP/102<br>; --- END SAMPLE ---<BR>; --- SAMPLE USER LIST ---<br>; format: user= EXTENSION : SECRET : PERMISSIONS : GROUPS<br>; You can enumerate several permissions and groups separated by comma <br>; available permissions: 'all', 'dial', 'hangup', 'meetme', 'pickup', <br>; 'record', 'spy', 'transfer', 'whisper', <br>; 'queuemanager', 'queueagent', 'phonebook',<br>; 'chat', 'preferences', 'hangupself',<br>; 'recordself', 'voicemailadmin'<br>;<br>; user=620:1234:all:queues<br>; user=621:1234:dial,transfer,pickup:deptA<br>; user=622:1234:all<br>; user=623:1234:meetme,pickup<br>; buttonfile=buttons.cfg<br>; ------ END SAMPLE ------<BR>; This line is NOT commented, it executes <br>; the autoconfig configuration for FreePBX<br>;#exec autoconfig-users-freepbx.sh<BR>user=9001:senha:all<br>user=9002:senha:all<br>user=9003:senha:all<br>user=9004:senha:all<br>user=9005:senha:all<BR>buttonfile=buttons.cfg<BR> <BR>PS: desculpem eu colocar esssa "poluicao" aqui, mas fiquei com medo omitir algo importante. Obrigado mais uma vez<br><BR>                                            </div></body>
</html>