Asterisk call file: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
Line 27: Line 27:
* Data - Application arguments.
* Data - Application arguments.


=== Dialplan ===
=== Execute a dialplan ===
<pre>
Context: <context> - The context in the dialplan
Extension: <exten> - The extension in the specified context
Priority: <priority> - The priority of the specified extension; (numeric or label)
Setvar: <var=value> - You may also assign values to variables that will be available to the channel, as if you had performed a Set(var=value) in the dialplan. More than one Setvar: may be specified.
</pre>
* Context - Dialplan context.
* Extension - 실행하고자 하는 Extension(위에 설정한 Context 안에서의 Extension이 실행된다.)
* Priority - Extension priority. 숫자 혹은 label.
* Setvar - Dialplan 에서 사용된 var 를 설정한다. Set(var=value)와 같은 역할을 한다.


== See also ==
== See also ==

Revision as of 13:10, 19 October 2016

Overview

Asterisk call file 내용 정리

Syntax

Basic

Channel: <channel>
Callerid: <callerid>
WaitTime: <number>
MaxRetries: <number>
RetryTime: <number>
Account: <account> - The account code for the call. This value will be assigned to CDR(accountcode)
  • Channel - (required)Dialing 을 하고자 하는 채널 정보. Technology/resource 의 형식으로 입력되어야 한다.
  • Callerid - Caller id.
  • WaitTime - Ring time 을 설정한다. Ringing 이 시작된 후, 여기에 지정된 시간동안 Answer 가 없으면 실패로 판단한다. Default 45 seconds.
  • MaxRetries - 최대 재시도 횟수를 설정한다. 정상적인 Answer 가 될 때 까지 설정된 횟수만큼 재시도를 한다. initiate 시도 횟수는 재시도 횟수에 포함되지 않는다. Default 0(재시도 하지 않음).
  • RetryTime - 재시도 전, 대기시간을 설정한다. 여기에 설정된 대기 시간 후, 발신 재시도를 한다. Default 300(5 minutes).
  • Account - Call 에 대한 Account code 를 지정한다. CDR(accountcode)로 사용된다.

Execute an application

Application: <appname>
Data: <args>
  • Application - 실행하고자 하는 application name.
  • Data - Application arguments.

Execute a dialplan

Context: <context> - The context in the dialplan
Extension: <exten> - The extension in the specified context
Priority: <priority> - The priority of the specified extension; (numeric or label)
Setvar: <var=value> - You may also assign values to variables that will be available to the channel, as if you had performed a Set(var=value) in the dialplan. More than one Setvar: may be specified.
  • Context - Dialplan context.
  • Extension - 실행하고자 하는 Extension(위에 설정한 Context 안에서의 Extension이 실행된다.)
  • Priority - Extension priority. 숫자 혹은 label.
  • Setvar - Dialplan 에서 사용된 var 를 설정한다. Set(var=value)와 같은 역할을 한다.

See also