There are two methods, first you can run trigger like below
DELIMITER $$
CREATE TRIGGER Feedback
AFTER INSERT ON queue_log
FOR EACH ROW
BEGIN
DECLARE v_id varchar(32);
DECLARE v_agentid varchar(32);
SELECT callid, agent INTO v_id, v_agentid
FROM queue_log
WHERE event="TRANSFER"
ORDER BY id desc limit 1;
update Feedback_Data set Agent_Id=v_agentid where Call_Id=v_id;
END $$
DELIMITER ;
And the other method is calling external program and do what you want below is the way
http://answergig.com/798/how-to-execute-call-an-external-program-from-mysql-trigger?