?? zhejiang.sff
字號:
string menukey;
string songkey;
string menufile;
string songfile;
string dialnum;
string sql;
int menutime = 50;
int songtime = 50;
string linkfile ;
int sysconnid = 1;
int connid = 1;
int statflag = 0;
string newfile;
string id ;
string servicetypeid;
string yewu;
string linenum;
string operatorid;
string flag ;
string companyid = "1";
string phone;
int hangupflag = 0;
int talking = 0;
int nseconds;
string starttime;
string seconds;
string yewutype;
int nyewutype;
int banzhanglevel = 1;
int huawuyuanlevel = 0;
int roomlevel = 3;
string lineno ;
int ipchan =0;
#測試是不是聯通號碼
state mainproc
{
init
{
#這個函數會設置聊天室標志
agentreqex(roomlevel);
}
proc
{
if($sys_lineno>=0)
{
goto checkconfno;
}
}
}
state checkconfno
{
init
{
if($sys_confno>=0)
{
goto
}
}
}
state playring
{
init
{
playfile("d:\\trasin\\myvoc\\waitting.pcm",2);
#為你接通主持人,不在放忙音功能!
agentplayring($sys_lineno);
}
proc
{
goto enterroom;
}
}
state enterroom
{
init
{
joinconf($sys_channo,$sys_confno,1);
}
}
enterconf($sys_channo,$sys_lineno)
state m_start
{
init
{
playfile("d:\trasin\myvoc\liaotian.pcm",2);
}
proc
{
goto m_mainproc;
}
}
state m_mainproc
{
init
{
ipchan = getfreeipchanno();
if(ipchan>0)
{
goto m_ipcall ;
}
else
{
logmsg("請求ip通道失敗");
hangup();
}
}
}
state m_ipcall
{
init
{
ipcall(0,"10.0.5.29","13312345678");
}
proc
{
if($sys_dialoutresult==1)
{
logmsg("成功");
goto m_success;
}
else
{
goto m_failed;
}
}
}
state m_failed
{
init
{
playfile("d:\trasin\myvoc\liaotian.pcm",2);
}
proc
{
goto m_failed;
}
}
state m_success
{
init
{
sleep();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -