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