- Joined
- Jan 7, 2008
- Messages
- 646
- Reaction score
- 2
Hi!
I'm still novice with VAD. I have a request from a customer to build a 'call stickness' script. This script shouild check the incoming internal Caller ID and route this call to internal employee (Extension) that has dialed this external number.
So, if a customer calling back to the common company's number, it will be routed to employee that called him before.
The queue3cxdatabase looks like this
This is a queue
And the queue is working well
But at the debugging stage I'm not getting any results.
I'm still novice with VAD. I have a request from a customer to build a 'call stickness' script. This script shouild check the incoming internal Caller ID and route this call to internal employee (Extension) that has dialed this external number.
So, if a customer calling back to the common company's number, it will be routed to employee that called him before.
The queue3cxdatabase looks like this
This is a queue
Code:
SELECT
callhistory3.from_no
FROM
public.callhistory3
WHERE
callhistory3.dialednumber LIKE '%{0}' AND
callhistory3.is_fromoutside = 'FALSE'
ORDER BY
callhistory3.idcallhistory3 DESC
LIMIT 1
And the queue is working well
But at the debugging stage I'm not getting any results.