English 中文(简体)
能否查询现有的渠道?
原标题:Can a call file search for available channels?
  • 时间:2012-01-13 04:12:27
  •  标签:
  • asterisk

I m 为一家也接收电话的服务器公司撰写了一名导师。 我设立了非洲工业部长会议,它将确保有一定数量的可用渠道,然后通过电话文件,但我不知道哪些具体渠道将开放。 自2006年以来 在制作我的传闻文件时,我可以肯定,这些渠道是开放的,是否有办法自动分配自由渠道,呼吁自动分配进出/转拨/缩短的渠道,或者这在二读计划中是可能的? 如果不可能在二分计划之外,你会建议什么?

最佳回答

只有在有二审计划的情况下,如果电弧/dst频道由电线员保留的话,你才需要检查。 另一种方式是:倾听非洲工业部长会议的活动,在保留频道使用的情况下检查新的渠道,为这一频道送上“夜总会”。

问题回答

对于通过搜查发现这一点的人,我发现更好的办法。

You start by calling a local channel using your .call file. Be sure to set a PHONENUMBER variable in the call file to the number you ultimately want to call. We then find an available channel and call it like this:

exten => 1,1,ChanIsAvail(Appropriate channels here); Checks if those channels are available and assigns ${AVAILORIGCHAN} an available channel
exten => 1,2,Dial(${AVAILORIGCHAN}${PHONENUMBER}/n); Dials the phone number on the available channel. The /n is very important if you plan on changing CDR variables after the call goes through. Otherwise, leave it out.
exten => 1,3,Hangup(); Clean up the local channel when we re done with it.

这将向被邀请人传达电文和电文中电文变量中所列的背景和延伸。





相关问题
Caching plaintext passwords in memory of WCF service

This probably sounds like a terrible idea at first glance, but here is my scenario: I have a Windows service that exposes several WCF endpoints using Username authentication. The custom ...

Using flash for videoconferencing

I d like to set up a videoconferencing (1-1 initially) system using Flash as the client. I ve tried some web searches but couldn t find much; any pointers on the following would be great: Does the ...

Compiling Asterisk 1.6.2 on MacOSX Server

I get this error while trying to compile Asterisk 1.6.2 on Snow Leopard Server : ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) Googling this I’ve ...

Unit/integration testing Asterisk configuration

Unit and integration testing is usually performed as part of a development process, of course. I m looking for ways to use this methodology in configuration of an existing system, in this case the ...

Replace characters in Asterisk Dialplan

I want to change a couple off characters * # for A and P to have the monitor filename with characters more friendly. The only solution I could find was to do it my self within the dialplan but it ...

What is Interface name in QueuePause

Anyone can tell me what is interface name for QueuePause action (Asterisk Manager Interface). http://astbook.asteriskdocs.org/en/2nd_Edition/asterisk-book-html-chunk/asterisk-APP-F-30.html I try "SIP/...

热门标签