Hi.
I have had many troubles with the reports (Differente from vicidial_log and from vidicial_agent_log
I am using sip trunk. these are the sympthoms:
1. If I call to a number that doesn´t exist or is disconnected, that call is not written into the vicidial_log, but yes in the vicidial_agent_log.
2. these calls never activate the live call button in the vicidial.php page.
3. Despite of giving a dispo for the call, the information is not keept in the vicidial_log
4. lloking into the asterisk i see:
for a complete call:
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing MeetMe("Local/8600051@default-0f07,2", "8600051|F") in new stack
> Channel Local/8600051@default-0f07,1 was answered.
-- Executing AGI("Local/8600051@default-0f07,1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing Dial("Local/8600051@default-0f07,1", "SIP/teles/573137591275|20|tTo") in new stack
-- Called teles/573137591275
-- SIP/teles-08228a98 is making progress passing it to Local/8600051@default-0f07,1
== Manager 'sendcron' logged off from 127.0.0.1
-- SIP/teles-08228a98 is making progress passing it to Local/8600051@default-0f07,1
-- SIP/teles-08228a98 is ringing
-- SIP/teles-08228a98 is making progress passing it to Local/8600051@default-0f07,1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
-- SIP/teles-08228a98 answered Local/8600051@default-0f07,1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Spawn extension (default, 3137591275, 2) exited non-zero on 'Local/8600051@default-0f07,1'
-- Executing DeadAGI("Local/8600051@default-0f07,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----13-----4") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... --13-----4 completed, returning 0
== Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-0f07,2'
-- Executing DeadAGI("Local/8600051@default-0f07,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
those are the statements used against the database:
INSERT INTO vicidial_log (uniqueid,lead_id,list_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,comments,processed,user_group,alt_dial) values('1228787333.175','256','101','OUT003','2008-12-08 20:49:00','1228787340','INCALL','0','3137591275','ag10c1','MANUAL','N','Agentes0','');
UPDATE vicidial_log set term_reason='AGENT', end_epoch='1228787346', length_in_sec='6' where uniqueid='1228787333.175' and lead_id='256' and user='ag10c1' order by call_date desc limit 1;
UPDATE vicidial_log set status='SALE' where lead_id='256' and user='ag10c1' order by uniqueid desc limit 1;
for a wrong call (to a bad numbr or disconnected number)[/b]
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing MeetMe("Local/8600051@default-0fea,2", "8600051|F") in new stack
> Channel Local/8600051@default-0fea,1 was answered.
-- Executing AGI("Local/8600051@default-0fea,1", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing Dial("Local/8600051@default-0fea,1", "SIP/teles/573137591273|20|tTo") in new stack
-- Called teles/573137591273
-- SIP/teles-081dd848 is making progress passing it to Local/8600051@default-0fea,1
== Manager 'sendcron' logged off from 127.0.0.1
-- SIP/teles-081dd848 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
-- Executing DeadAGI("Local/8600051@default-0fea,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CONGESTION----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
== Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-0fea,2'
-- Executing DeadAGI("Local/8600051@default-0fea,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
== Manager 'sendcron' logged off from 127.0.0.1
call1*CLI>
statements over the db for vicidial_log:
no output for the vicidial_log table statements.
I can see that when we get busy signal from asterisk, the call is not appearing into vicidial_log. In the other cases yes.
So the differences between the campaign reports and the agent reports are huge.
I have tried many things, but I haven´t been able to fix it up.
I would be so grateful if someone can help with that.
Thanks