?? 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 + -