📄 hnagent.sff
字号:
int callinflag = 0;#是否是jumpagent进来,系统这个时候设定开始时间
int yinxiaoflag = 0;#是否已经统计了营销结果
int recordflag = 0;#是否插入通话记录表
string sql ;
int connid = 1;
string result = "";
string starttime;
string seconds;
int nseconds;
#测试是不是联通号码
state agentdigit
{
init
{
#营销系统 只有是 jumpagent 才处理坐席按键
if(callinflag==1)
{
sf($sys_dtmf=="#")
{
result = "";
}
else
{
result = result + $sys_dtmf;
}
}
}
}
#坐席挂机 系统调用这个后,会initline的 重新初始化流程变量
state onhook
{
init
{
if(callinflag ==0)
{
#坐席不是通过jumpagent摘机后挂机处理 --一般是坐席置忙后,重新置空闲。
}
else
{
#数据库处理 插入 营销结果
#营销系统 坐席挂机,插入数据库record表记录
starttime = getdialintime(2);
nseconds = getusedseconds();
seconds = itos(nseconds);
sql="insert into taga_talkin_yinxiaorecord ( agentid,usernum,starttime,endtime,seconds,result)"
+ " values ('" + $sys_agentid + "','" + $sys_usernum + "','"
+ starttime + "',getdate()," + seconds + ",'" + result + "')";
sqlcommand(connid,sql);
}
}
}
#系统自动开始计时
state usercallin
{
init
{
callinflag = 1;
}
}
state userhangup
{
init
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -