⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zhejiang.sff

📁 使用flex和bison
💻 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 + -