亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interface.sgml

?? Intercom 是一個 Unix系統上靈活的語音傳輸軟件。支持標準音頻壓縮比如GSM, G.711, and G.72x和其他音頻編碼。Intercom專為高速網絡設計來傳輸高品質的語音
?? SGML
字號:
<!-- $Id: interface.sgml,v 1.1 2002/03/10 10:17:07 shane Exp $ --><chapter id="interface"><title>Interfacing With Intercom</title><para>This chapter is for those who wish to extend Intercom in ways forwhich it was not necessarily designed.  In order to get the most from thischapter, you will want some experience with a programming or scriptinglanguage such as bash, PERL, or C.  Any language should do as Intercom'scallouts are general.</para><para>Intercom provides a way by which a shell command can decide whatIntercom should do on a certain event.  This allows the user to do things assimple as playing a sound when an Incoming call comes in or as complex asimplementing time restrictions and blacklists.  This chapter describes thesemethods and includes examples whenever possible.</para><!-- TODO: drop this when I know it's correct --><note><para>The implementation should be fairly easy for any shellprogrammer to understand; however, I am a programmer and not a technicalwriter.  If something is unclear, do not hesitate to contactme.</para></note><section id="interface-hooks"><title>Introduction to Hooks</title><para>Intercom can execute a given command when a certain event occurs.  Bycommand, I refer to an Intercom command and not a Unix shell command.  Hooksare administered through the <command>hook</command> command and areautomatically saved with the <command>save</command> command.</para><para>To add a command-hook, you pass the event type and the command toexecute to the <command>hook add</command> command.  The command you specifywill be executed whenever that particular event is triggered.  The currentlydefined event types are as follows.</para><itemizedlist><listitem><para>call_incoming - Triggered on an Incoming call.  At the pointof the trigger, Intercom is ready to either accept or reject the call unlessa previous hook of this type has changed the state</para></listitem><listitem><para>call_outgoing - Triggered when an outgoing call is placed. The event is triggered after a connection to the remote host has succeededbut before the call is actually answered or rejected by the calledparty.</para></listitem><listitem><para>call_connect - Triggered just as a call is connected.  Thisevent is triggered both when we are the caller or the callrecipient.</para></listitem><listitem><para>hangup_lc - Event which is triggered when our end terminatedan established call.</para></listitem><listitem><para>hangup_rmt - Triggered when the remote party hasdisconnected a call.</para></listitem></itemizedlist><note><para>You can have more than one hook for an event type.  Hooks areexecuted in the order in which they were added.</para></note><para>As a simple example of a hook, we can automatically answer incomingcalls unconditionally with the following command.</para><para><prompt>intercom: </prompt><command>hook add call_incoming answer</command></para><para>Or, to reject all incoming calls, execute the followingcommand.</para><para><prompt>intercom: </prompt><command>hook add call_incoming hangup</command></para></section><section id="interface-exec"><title>Executing external programs</title><para>One of the simplest yet most powerful commands in terms of interfacingis the <command>exec</command> command.  It takes a single argument andpasses it directly to the shell.  For example, if you wanted to clear thescreen, you could enter <command>exec clear</command>.  Or better yet, todefine a clear alias to do the same thing, enter<command>alias <replaceable>clear</replaceable> 'exec clear'</command>.Exec takes only one argument so for more complicated commands,mind your quoting.</para></section><section id="interface-if"><title>Conditionals</title><para>Intercom can execute commands conditionally based on the exit-code ofa shell command.  This is done with the <command>if</command> command.  Itborrows much of its syntax from shell though it is much more limited.  Thesyntax of <command>if</command> is as follows.</para><para>if &lt;<replaceable>shell-command</replaceable>&gt;&lt;<replaceable>intercom-command</replaceable>&gt;[else &lt;<replaceable>else-command</replaceable>&gt;]</para><para>The <command>if</command> command will execute<replaceable>&lt;intercom-command&gt;</replaceable>if the exit status of <replaceable>&lt;shell-command&gt;</replaceable> is 0;otherwise, <replaceable>&lt;else-command&gt;</replaceable> is executed. <note><para>The else clause in an if command can beomitted.</para></note></para><para>If can further be extended to check for a specific exit-code usingoperators such as =, &lt;, and &gt;.  These will test the exit-code againstthe value specified.  The valid operators are = (equal to), != (not equal),&lt; (less than), &gt; (greater than), &lt;= (less than or equal to), and &gt;=(greater or equal to).  For example, to execute the hangup command if theexit-code of testprog.sh was greater than 1, you would enter thefollowing.</para><para><prompt>intercom: </prompt><command>If testprog.sh '>' 1 hangup</command></para></section><section id="interface-final"><title>Putting it all Together</title><para>The hook, exec, and if commands on their own offer very littlefunctionality with the possible exception of exec.  However, combined, theyallow the user to perform simple to complex Intercom tasks.  A hook commandfor example, could call a shell script.  It could even execute a commandbased on the exit-code of that script.  In the following section, you willfind some practical examples which demonstrate using these commandstogether.  You may be able to use some of them as-is and some will needmodifications.</para><section id="interface-final-examples"><title>Practical Examples</title><section id="interface-final-examples-sound"><title>Incoming Audio Alert</title><para>Most people will probably want some sort of audio alert when an incomingcall is received.  Hooks make this very easy to implement.  For thisexample, you will need a wave player such as bplay and a wave to play.  Anywave will do but don't make it too long or you will have to wait beforeanswering the call.  The below example assumes that ring.wav resides in thesounds directory off of the home directory of the user runningIntercom.</para><para><prompt>intercom: </prompt><command>hook add call_incoming'exec "bplay $HOME/sounds/ring.wav 1>/dev/null 2>&1 "'</command></para><para>Adding an audio alert when a call is terminated is fairly trivial andis left as an excersize for the reader.</para></section><section id="interface-final-examples-mixer"><title>Setting the Mixer</title><para>If you often record from your Line input or another source, you willprobably want Intercom to switch the OSS recording source to the mic input. The following simple example should do just this.  <note><para>You willmost likely need to adjust the cmix command below for the particular mixeryou use.</para></note><para><prompt>intercom: </prompt><command>hook add call_connect 'exec "cmix rcs mic on"'</command></para></section><section id="interface-final-examples-time"><title>Call Time Restrictions</title><para>The following is a more complicated example which demonstrates apossible implementation of hooks and conditionals.  Let's say you wanted toautomatically reject calls before 08:00 and after 18:00.  To accomplishthis, you would use a hook command which looks something like thefollowing.</para><para><prompt>intercom: </prompt><command>hook add call_incoming"if \"test `date +%H` -lt 8 -o `date +%H` -gt 18\" hangup"</command></para><para>The date calls are expanded by Intercom to the values of the hour. This assumes you are using GNU date though and may have to be adjusted forother date implementations.</para></section></section></section></chapter>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亚洲综合一区在线观看| 在线观看亚洲成人| 91麻豆产精品久久久久久| 久久久美女毛片| 中文字幕一区二区三区蜜月| 天天色天天爱天天射综合| 国产成人精品三级麻豆| 欧美男同性恋视频网站| 国产精品美女久久久久久| 日韩福利视频网| 色综合激情久久| 久久蜜桃一区二区| 亚洲超碰97人人做人人爱| 成人一区二区三区视频 | 午夜精品福利一区二区三区av | 国内外成人在线视频| 欧美无砖专区一中文字| 国产精品久久久久精k8| 麻豆91免费观看| 欧美丰满高潮xxxx喷水动漫| 综合欧美亚洲日本| 高清beeg欧美| 2024国产精品| 久久99精品久久久久久动态图 | 精品国产123| 日韩av在线免费观看不卡| 91一区二区三区在线播放| 精品国产免费久久| 日韩高清一区二区| 欧美福利电影网| 五月综合激情日本mⅴ| 日韩女优视频免费观看| 婷婷夜色潮精品综合在线| 欧美性大战久久久久久久| 亚洲精品视频免费看| 波多野结衣中文字幕一区| 中文字幕av不卡| 国产不卡高清在线观看视频| 久久精品视频免费观看| 国产精品一二一区| 国产欧美日韩中文久久| 国产成人8x视频一区二区 | 国产视频不卡一区| 国产麻豆成人传媒免费观看| 久久嫩草精品久久久精品| 国产乱国产乱300精品| 精品99一区二区三区| 国产在线麻豆精品观看| 久久久www免费人成精品| 成人午夜碰碰视频| 国产精品欧美综合在线| 99久久99久久久精品齐齐| 成人免费在线视频| 欧美日韩一卡二卡三卡 | 亚洲丝袜美腿综合| 色欧美日韩亚洲| 亚洲一区二区中文在线| 91超碰这里只有精品国产| 久久成人av少妇免费| 久久精品一区四区| 一本久久精品一区二区| 天天操天天综合网| 2017欧美狠狠色| 成人三级在线视频| 亚洲6080在线| 2020国产精品| 日本电影亚洲天堂一区| 日韩精品国产欧美| 国产亚洲综合在线| 欧美影院一区二区| 国产美女在线精品| 一区二区三区在线视频播放| 日韩一区二区电影| 91丨九色porny丨蝌蚪| 日韩影院在线观看| 欧美激情一区二区三区全黄| 欧美日韩在线电影| 成人午夜av电影| 日韩在线a电影| 日韩理论片一区二区| 日韩女优av电影在线观看| 色国产综合视频| 国产一区二区不卡老阿姨| 亚洲香蕉伊在人在线观| 国产欧美精品区一区二区三区 | 日韩 欧美一区二区三区| 欧美国产精品专区| 69久久99精品久久久久婷婷| 成+人+亚洲+综合天堂| 老司机午夜精品99久久| 亚洲欧美日韩一区二区三区在线观看| 555www色欧美视频| 91浏览器打开| 国产91在线|亚洲| 人人精品人人爱| 一区二区国产视频| 国产精品午夜在线观看| 91精品国产手机| 欧美视频在线一区二区三区| 国产91丝袜在线播放| 免费在线观看成人| 亚洲一区在线观看网站| 国产精品久久久久一区二区三区 | 精品乱人伦一区二区三区| 欧美日韩一区二区三区四区五区| 成人免费毛片高清视频| 国产一区二区在线观看免费| 日韩电影在线免费观看| 亚洲欧美另类久久久精品| 国产女主播一区| 2021国产精品久久精品 | 欧美在线观看一区| 97se狠狠狠综合亚洲狠狠| 欧美日韩综合一区| 成人国产视频在线观看| 丁香婷婷综合色啪| 国产精品羞羞答答xxdd| 国产精品中文字幕日韩精品| 国产在线不卡一卡二卡三卡四卡| 捆绑变态av一区二区三区| 青青青爽久久午夜综合久久午夜| 亚洲一区二区高清| 亚洲成人午夜影院| 午夜视频在线观看一区| 婷婷综合在线观看| 青青草一区二区三区| 免费观看一级特黄欧美大片| 蜜臀av一区二区在线观看 | 精品污污网站免费看| 欧美色图片你懂的| 在线不卡的av| 日韩欧美黄色影院| 久久久综合视频| 国产精品女主播av| 日韩毛片一二三区| 亚洲国产日韩在线一区模特| 日韩av不卡在线观看| 精品一区二区av| 成人综合婷婷国产精品久久蜜臀 | 国产精品久久久爽爽爽麻豆色哟哟| 中文幕一区二区三区久久蜜桃| 国产精品久久久爽爽爽麻豆色哟哟 | 日韩午夜小视频| 久久―日本道色综合久久| 国产精品丝袜在线| 亚洲综合另类小说| 另类成人小视频在线| 成人天堂资源www在线| 91麻豆国产精品久久| 91精品国产aⅴ一区二区| 久久蜜桃av一区二区天堂| 亚洲图片激情小说| 亚洲电影激情视频网站| 久久99久久久欧美国产| 99在线精品观看| 欧美精品xxxxbbbb| 国产亚洲美州欧州综合国| 亚洲美腿欧美偷拍| 久国产精品韩国三级视频| 成人av资源在线| 欧美久久一二区| 国产三级精品三级在线专区| 亚洲国产欧美另类丝袜| 国产精品原创巨作av| 欧美性xxxxxx少妇| 久久美女高清视频| 日韩中文字幕av电影| 粉嫩嫩av羞羞动漫久久久| 欧美精品在线视频| 国产精品国产三级国产| 蜜臀av一区二区在线免费观看 | 国产亚洲欧美色| 天天操天天色综合| 91美女在线观看| 久久久精品蜜桃| 蜜桃视频免费观看一区| 色网综合在线观看| 国产午夜亚洲精品午夜鲁丝片| 亚欧色一区w666天堂| 99re热视频精品| 久久蜜桃av一区精品变态类天堂 | 99精品在线免费| 久久网站最新地址| 日本不卡1234视频| 在线亚洲+欧美+日本专区| 欧美国产精品一区| 国产综合久久久久久久久久久久| 欧美视频日韩视频| 亚洲精品中文字幕乱码三区| 国产精品中文欧美| xf在线a精品一区二区视频网站| 青椒成人免费视频| 欧美精品一卡二卡| 亚洲成人动漫av| 欧美色男人天堂| 夜夜操天天操亚洲| 欧美伊人精品成人久久综合97 | 欧美性色黄大片| 亚洲美女屁股眼交| 91视频观看免费|