| | |
| | | package com.ruoyi.web.task; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.rabbitmq.client.Channel; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | |
| | | import com.smartor.domain.IvrLibaTemplateVO; |
| | | import com.smartor.domain.IvrTaskSingle; |
| | | import com.smartor.domain.QuestionMessage; |
| | | import com.smartor.mapper.IvrTaskSingleMapper; |
| | | import org.springframework.amqp.core.Message; |
| | | |
| | | import java.io.IOException; |
| | |
| | | redisCache.setCacheObject(uuid + "ivrLibaTemplateVO", ivrLibaTemplateVO, 120, TimeUnit.MINUTES); |
| | | |
| | | //调用机器人电话,开始电话(需要将回调方法传入,这个等”电话方“告诉怎么传,现在先空着,还有第一句问题话术) |
| | | // phoneUtils.ob(uuid, null, ivrTaskcall.getPhone(), null, null, null, null, null, null, null, null); |
| | | String ob = phoneUtils.ob("", "", "", "", "", "", "", "3001", "", true); |
| | | String ob = phoneUtils.ob("", "", "", "", "", "", "", ivrTaskcall.getPhone(), uuid, true); |
| | | System.out.println("OB的值为:" + ob); |
| | | //通了之后,立马去调开场白 |
| | | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitBefore()+returnQues.getNowQuestion().getQuestionText(), uuid); |
| | | |
| | | //通知 MQ 消息已被接收,可以ACK(从队列中删除)了 (这个需要根据业务再去处理ACK) |
| | | |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |