by ekaftan » Sat Mar 15, 2008 9:57 am
I've been battling with inbound and transfers for some days and don't understand what I'm doing wrong...
I have two inbound queues, Tech and Sales. Some agents man both, but some man only Tech. So far it works and calls get routed fine. Problem is, around 1/3 of calls I get to Tech are really calls to Sales but the customers just pressed the first option on the IVR.
What should I configure to make transfers to the other inbound queue work? So far I tried following the LOAD_BALANCE howto but it does not work. Vicidial calls 90009 and other paramenters, but the agi script then stalls.
This is the dialplan extensions:
exten => _90009.,1,Answer ; Answer the line
exten => _90009.,2,AGI(agi-VDAD_LB_closer.agi,${EXTEN}-----START)
exten => _90009.,3,Hangup
exten => _990009.,1,Answer ; Answer the line
exten => _990009.,2,AGI(agi-VDAD_LO_closer.agi,${EXTEN}-----START)
exten => _990009.,3,Hangup
agiout loops in this lines:
2008-03-15 11:30:50|agi-VDAD_LO_closer.agi|-- VDAD get agent: |0E0||UPDATE vicidial_live_agents set status='QUEU
E',lead_id='4008930',uniqueid='1205591436.47621', channel='Zap/5-1', callerid='Y0315113037004008930' where status I
N('CLOSER','READY') and server_ip='192.168.0.13' and campaign_id REGEXP '(CLOSER|BLEND|INBND|_C$|_B$|_I$)' and clos
er_campaigns LIKE "% %" and last_update_time > '19691231205955' order by last_call_finish limit 1;|
2008-03-15 11:30:50|agi-VDAD_LO_closer.agi|NNNNN No available agent found
2008-03-15 11:30:50|agi-VDAD_LO_closer.agi||SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and serv
er_ip!='192.168.0.13' and campaign_id = '' and call_time < "2008-03-15 11:30:50" and lead_id != '4008930';|
2008-03-15 11:30:50|agi-VDAD_LO_closer.agi|-- VDAD get agent: |360|0|0E0|update of vla table: |
2008-03-15 11:30:50|agi-VDAD_LO_closer.agi|NNNNN No available remote agent found
Should I try sending the call back to the _inbound_ agi?