Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd Originate Chinese

Author image

Originate

Synopsis

Originate作用:發起一通呼叫。而不用其他類似SIP的終端來發起。(從Asterisk-1.6.2開始有這個功能)

 

語法

Originate(tech_data,type,arg1[,arg2[,arg3]])
Originate(呼叫技術,類型,arg1[,arg2[,arg3]])

參數

  • tech_data – 使用什麼技術來發起一個呼叫,例: SIP/1234.
  • type – 此為 ‘app(應用程式)’ 或 ‘exten(分機)’,取決於外撥頻道要連接到一個應用程式或分機。
  • arg1 – è‹¥ type 是 ‘app’, 則此為應用程式的名å­-。若type是 ‘exten’, 則此為要送達的context(區段)
  • arg2 – è‹¥ type 是 ‘app’, 則此資料是要傳送給應用程式的參數。若 type 是 ‘exten’, 則此為分機號碼
  • arg3 – è‹¥ type 是 ‘exten’,則此為要傳送給該頻道的priority(優先值)。若 type 是 ‘app’, 則此參數可忽略

 

描述

originate的用途是發起一個呼叫然後連接到特定的分機或應用程式。此程式會暫時block住,直到外撥失æ•-或有人接聽。在那個時候,該應用程序將會在退出之前設置的狀態變數,然後dialplan(撥號計劃)程序會繼續進行。

譯者註:originate的用途是向客戶端發起呼叫,將客戶端引入到Dialplan中,並從exten的首項開始執行,進行一系åˆ-操作。雖然客戶端是被動接å-,但此過程相當於主動撥入的過程。Originate call可用於任何UI對某個客戶端發起呼叫,也可以邀請他人加入某個會話當中。

此程式在離開前會先設定好底下的頻道變數 ${ORIGINATE_STATUS}: 可以此變數來識別origination呼叫的結果。
可能數值如下:

  • FAILED
  • SUCCESS
  • BUSY
  • CONGESTION
  • HANGUP
  • RINGING
  • UNKNOWN: 在實際的操作中,你應該看不到這個值。如果你遇見了,請回報告它的問題。

 

See also


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.