Queue priority for two Ingroup I have created is 0, Agentdirect is 99.
I have install following scratch guide in
http://astguiclient.sourceforge.net/Ubuntu_Install.txt.
Asterisk is 1.4.21.2.
No others software on this box.
The out put of agiout:
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|Perl Environment Dump:
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|0|CLOSER-----LB-----CL_TESTCAMP-----7275551212-----Closer-----park----------999-----1
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|callerID changed: J1029141445000106432
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- accountcode =
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- callerid = unknown
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- calleridname = Y1029141432000106432
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- callingani2 = 0
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- callingpres = 3
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- callingtns = 0
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- callington = 0
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- channel = Zap/4-1
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- context = default
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- dnid = 35207000
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- enhanced = 0.0
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- extension = 990009*18001260**106432**0838257825*305*302*
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- language = en
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- priority = 2
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- rdnis = unknown
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- request = agi-VDAD_ALL_inbound.agi
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- type = Zap
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi| -- uniqueid = 1256800294.3018
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|AGI Variables: |1256800294.3018|Zap/4-1|990009*18001260**106432**0838257825*305*302*|Zap|J1029141445000106432|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|+++++ INBOUND CALL VDCL STARTED : |18001260|J1029141445000106432-|2009-10-29 14:14:45
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi||SELECT campaign_id FROM vicidial_campaigns where active='Y' and campaign_allow_inbound='Y';|106432|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|callerID changed: Y1029141445000106432
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi||INSERT INTO vicidial_xfer_log (lead_id,campaign_id,call_date,phone_code,phone_number,user,closer) values('106432','18001260','2009-10-29 14:14:45','1','0838257825','302','VDXL')|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- VDXL : |106432|143|insert to vicidial_xfer_log
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi||INSERT INTO vicidial_auto_calls SET server_ip='192.168.215.25', campaign_id='18001260', status='LIVE', lead_id='106432', uniqueid='1256800294.3018', callerid='Y1029141445000106432', channel='Zap/4-1', phone_code='1', phone_number='0838257825', call_time='2009-10-29 14:14:45', call_type='IN', stage='LIVE-0', queue_priority='0' ;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi||INSERT INTO vicidial_closer_log SET lead_id='106432', campaign_id='18001260', call_date='2009-10-29 14:14:45', start_epoch='1256800485', status='QUEUE', phone_code='1', phone_number='0838257825', user='VDCL', processed='N', xfercallid='143', uniqueid='1256800294.3018' ;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- VDCL : |106432|143|1481|insert to vicidial_closer_log
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and campaign_id = '18001260' and call_time < "2009-10-29 14:14:45" and lead_id != '106432' ;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and lead_id != '106432' and ( (queue_priority > '0') or (queue_priority = '0' and call_time < "2009-10-29 14:14:45") );|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|1|UPDATE vicidial_live_agents set status='QUEUE',lead_id='106432',uniqueid='1256800294.3018', channel='Zap/4-1', callerid='Y1029141445000106432', call_server_ip='192.168.215.25',comments='INBOUND' where status IN('CLOSER','READY') and lead_id<1 and campaign_id IN('TEST_IN','1800') and closer_campaigns LIKE "% 18001260 %" and last_update_time > '20091029141440' order by last_call_finish limit 1;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- VDAD get agent: |180|0|1|1|update of vla table: 18001260|
|UPDATE vicidial_live_agents set status='QUEUE',lead_id='106432',uniqueid='1256800294.3018', channel='Zap/4-1', callerid='Y1029141445000106432', call_server_ip='192.168.215.25',comments='INBOUND' where status IN('CLOSER','READY') and lead_id<1 and campaign_id IN('TEST_IN','1800') and closer_campaigns LIKE "% 18001260 %" and last_update_time > '20091029141440' order by last_call_finish limit 1;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|314|2009-10-29 14:12:18|SELECT conf_exten,user,extension,server_ip,last_call_time FROM vicidial_live_agents where status IN('QUEUE','INCALL') and campaign_id IN('TEST_IN','1800') and callerid='Y1029141445000106432' and channel='Zap/4-1' order by last_call_time limit 1;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- VDCL XFER REMOTE: |1|update of vac table: Y1029141445000106432
|UPDATE vicidial_auto_calls set status='CLOSER', stage='CLOSER-0' where callerid='Y1029141445000106432';|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- VDXL vicidial_xfer_log update: |1|106432|314
|UPDATE vicidial_xfer_log set closer='314' where lead_id = '106432' order by call_date desc limit 1;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- closer log : |1|update of vcl table: 106432
|UPDATE vicidial_closer_log set user='314' where lead_id='106432' order by call_date desc limit 1;|
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|-- VDCL agent alert: |VH10291414458600057|192*168*215*025*78600057|Zap/4-1|insert to vicidial_manager
2009-10-29 14:14:45|agi-VDAD_ALL_inbound.agi|exiting VDAD app, transferring call to 192*168*215*025*8600057