asterisk - callout by cmd

最後更新: 2015-08-12

目錄

  • Call file
  • Originate

 

Call file

檔名 .call file

Application

/var/spool/asterisk/outgoing/app.call

Channel: PJSIP/507
Application: Playback
Data: hello-world
CallerID: 555
MaxRetries: 3

bridge

/var/spool/asterisk/outgoing/ext.call

Channel: PJSIP/????????@mytrunk_endpoint
CallerID: 555
MaxRetries: 3
Context: internal
Extension: 507
Priority: 1

 


Originate

 

first the Channel is rung. Then, when that answers,
the Extension is dialled within the Context to initiate the other end of the call

Action: Originate
Channel: PJSIP/507
CallerID: 507
Context: internal
Exten: 509
Timeout: 60000
Priority: 1
Async: no
ActionID: 1234

OriginateResponse:

0 = no such extension or number
1 = no answer
4 = answered
5 = busy
8 = congested or not available

* CallerID 是必須的, 否則有些 Hardware 會 hang !

* Timeout = milliseconds

Example2

Action: Originate
Channel: PJSIP/xxxxyyyy@mytrunk_endpoint
CallerID: wwwwzzzz
Exten: wwwwzzzz
Application: Queue
Data: MyQueue
Variable: var1=23|var2=24|var3=25

Creative Commons license icon Creative Commons license icon