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

📄 songdialout.txt

📁 使用flex和bison
💻 TXT
字号:
string menukey;
string songkey;
string songfile;
string songmenu;
string sql;
string phone;
string leavefile;
int menutime = 50;
int songtime = 50;
int connid=2;
int sysconnid = 1;
int isbaoyueuser = 0;
string myfile;

state m_1_dialout
{
	init
	{
		#你好,你的朋友
		playfile("d:\lgh\bin\trasin\10156\myvoc\receive0.pcm",2);
		
	}
	proc
	{
		goto m_2_dialout;
	}
}
state m_2_dialout
{
	init
	{
		playfile($sysdb_callermobile,1);
	}
	proc
	{
		goto m_3_dialout;
	}
}
state m_3_dialout
{
	init
	{      #通过10156..
		playfile("d:\lgh\bin\trasin\10156\myvoc\receive1.pcm",2);	
	}
	proc
	{
		int len = strlen($sysdb_leaveword);
		
		if(len!=0)
		{	
			goto m_6_playleave;
		}
		else
		{
			goto m_4_dialout;
		}
	}
}

state m_6_playleave
{
	init
	{      #播放留言
		playfile($sysdb_leaveword,2);	
	}
	proc
	{	
		goto m_4_dialout;
	}	
}

state m_4_dialout
{
	init
	{
		playfile($sysdb_songid,2);	
	}
	proc
	{	
		goto m_5_dialout;
	}
}
state m_5_dialout
{
	init
	{	#好听么,重听请按1听更多歌曲,请波10156
		playfile("d:\lgh\bin\trasin\10156\myvoc\receivemenu.pcm",2);
		readdigits(1);
		setchantimer(menutime);	
	}
	proc
	{	
		sf($sys_dtmf=="1")
		{
			goto m_4_dialout;
		}
		else
		{
			hangup();
		}
	}
}

state hangupproc
{
    init 
	{
		sql="insert taga_talkin_log(caller,callee,hanguptime ) values( '" 
		+ $sys_caller+"','"
		+ $sys_callee+"' ,getdate() )";
		sqlcommand(connid,sql);
	
	}	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -