PHP 클래스 PAGI\CallSpool\CallFile

PHP Version 5
저자: Marcelo Gornstein ([email protected])
파일 보기 프로젝트 열기: marcelog/pagi 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( DialDescriptor $dialDescriptor ) : void Constructor.
getAccount ( ) : string Returns account code to use for this call.
getAlwaysDelete ( ) : boolean If the file's modification time is in the future, the call file will not be deleted
getApplication ( ) : string Returns Asterisk Application to run (use instead of specifiying context, extension and priority)
getApplicationData ( ) : string Returns the options to be passed to application.
getArchive ( ) : boolean Sets if should move to subdir "outgoing_done" with "Status: value", where value can be Completed, Expired or Failed.
getCallerId ( ) : string Returns Caller ID, Please note: It may not work if you do not respect the format: CallerID: "Some Name" <1234>
getChannel ( ) : string Returns channel to use for the call.
getContext ( ) : string Returns context to use for this call when answered.
getExtension ( ) : string Returns extension to use for this call when answered.
getMaxRetries ( ) : integer Returns number of retries before failing (not including the initial attempt, e.g. 0 = total of 1 attempt to make the call). Default is 0.
getPriority ( ) : string Returns priority to use for this call when answered.
getRetryTime ( ) : integer Returns seconds between retries, Don't hammer an unavailable phone.
getVariable ( string $key ) : string Returns the value for the given variable.
getWaitTime ( ) : integer Returns seconds to wait for an answer. Default is 45.
serialize ( ) : string Returns the text describing this call file, ready to be spooled.
setAccount ( string $value ) : void Sets account code to use for this call.
setAlwaysDelete ( boolean $value ) : void If the file's modification time is in the future, the call file will not be deleted
setApplication ( string $value ) : void Sets Asterisk Application to run (use instead of specifiying context, extension and priority)
setApplicationData ( array $options = [] ) : void Sets the options to be passed to application.
setArchive ( boolean $value ) : void Sets if should move to subdir "outgoing_done" with "Status: value", where value can be Completed, Expired or Failed.
setCallerId ( string $value ) : void Sets the Caller ID, Please note: It may not work if you do not respect the format: CallerID: "Some Name" <1234>
setContext ( string $value ) : void Sets context to use for this call when answered.
setExtension ( string $value ) : void Sets extension to use for this call when answered.
setMaxRetries ( integer $value ) : void Sets number of retries before failing (not including the initial attempt, e.g. 0 = total of 1 attempt to make the call). Default is 0.
setPriority ( string $value ) : void Sets priority to use for this call when answered.
setRetryTime ( integer $value ) : void Sets seconds between retries, Don't hammer an unavailable phone.
setVariable ( string $key, string $value ) : void Sets a given variable with the given value.
setWaitTime ( integer $value ) : void Sets seconds to wait for an answer. Default is 45.
unserialize ( string $text ) : void Deconstructs a call file from the given text.

보호된 메소드들

메소드 설명
getParameter ( string $key ) : string Returns the value for the given parameter.
setParameter ( string $key, string $value ) : void Sets a given parameter with the given value.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( DialDescriptor $dialDescriptor ) : void
$dialDescriptor PAGI\DialDescriptor\DialDescriptor
리턴 void

getAccount() 공개 메소드

Returns account code to use for this call.
public getAccount ( ) : string
리턴 string

getAlwaysDelete() 공개 메소드

If the file's modification time is in the future, the call file will not be deleted
public getAlwaysDelete ( ) : boolean
리턴 boolean

getApplication() 공개 메소드

Returns Asterisk Application to run (use instead of specifiying context, extension and priority)
public getApplication ( ) : string
리턴 string

getApplicationData() 공개 메소드

Returns the options to be passed to application.
public getApplicationData ( ) : string
리턴 string

getArchive() 공개 메소드

Sets if should move to subdir "outgoing_done" with "Status: value", where value can be Completed, Expired or Failed.
public getArchive ( ) : boolean
리턴 boolean

getCallerId() 공개 메소드

Returns Caller ID, Please note: It may not work if you do not respect the format: CallerID: "Some Name" <1234>
public getCallerId ( ) : string
리턴 string

getChannel() 공개 메소드

Returns channel to use for the call.
public getChannel ( ) : string
리턴 string

getContext() 공개 메소드

Returns context to use for this call when answered.
public getContext ( ) : string
리턴 string

getExtension() 공개 메소드

Returns extension to use for this call when answered.
public getExtension ( ) : string
리턴 string

getMaxRetries() 공개 메소드

Returns number of retries before failing (not including the initial attempt, e.g. 0 = total of 1 attempt to make the call). Default is 0.
public getMaxRetries ( ) : integer
리턴 integer

getParameter() 보호된 메소드

Returns the value for the given parameter.
protected getParameter ( string $key ) : string
$key string Parameter name.
리턴 string

getPriority() 공개 메소드

Returns priority to use for this call when answered.
public getPriority ( ) : string
리턴 string

getRetryTime() 공개 메소드

Default is 300 (5 min).
public getRetryTime ( ) : integer
리턴 integer

getVariable() 공개 메소드

Returns the value for the given variable.
public getVariable ( string $key ) : string
$key string Variable name.
리턴 string

getWaitTime() 공개 메소드

Returns seconds to wait for an answer. Default is 45.
public getWaitTime ( ) : integer
리턴 integer

serialize() 공개 메소드

Returns the text describing this call file, ready to be spooled.
public serialize ( ) : string
리턴 string

setAccount() 공개 메소드

Sets account code to use for this call.
public setAccount ( string $value ) : void
$value string Value to set.
리턴 void

setAlwaysDelete() 공개 메소드

If the file's modification time is in the future, the call file will not be deleted
public setAlwaysDelete ( boolean $value ) : void
$value boolean Value to set.
리턴 void

setApplication() 공개 메소드

Sets Asterisk Application to run (use instead of specifiying context, extension and priority)
public setApplication ( string $value ) : void
$value string Value to set.
리턴 void

setApplicationData() 공개 메소드

Sets the options to be passed to application.
public setApplicationData ( array $options = [] ) : void
$options array
리턴 void

setArchive() 공개 메소드

Sets if should move to subdir "outgoing_done" with "Status: value", where value can be Completed, Expired or Failed.
public setArchive ( boolean $value ) : void
$value boolean Value to set.
리턴 void

setCallerId() 공개 메소드

Sets the Caller ID, Please note: It may not work if you do not respect the format: CallerID: "Some Name" <1234>
public setCallerId ( string $value ) : void
$value string Value to set.
리턴 void

setContext() 공개 메소드

Sets context to use for this call when answered.
public setContext ( string $value ) : void
$value string Value to set.
리턴 void

setExtension() 공개 메소드

Sets extension to use for this call when answered.
public setExtension ( string $value ) : void
$value string Value to set.
리턴 void

setMaxRetries() 공개 메소드

Sets number of retries before failing (not including the initial attempt, e.g. 0 = total of 1 attempt to make the call). Default is 0.
public setMaxRetries ( integer $value ) : void
$value integer Value to set.
리턴 void

setParameter() 보호된 메소드

Sets a given parameter with the given value.
protected setParameter ( string $key, string $value ) : void
$key string Parameter name.
$value string Value.
리턴 void

setPriority() 공개 메소드

Sets priority to use for this call when answered.
public setPriority ( string $value ) : void
$value string Value to set.
리턴 void

setRetryTime() 공개 메소드

Default is 300 (5 min).
public setRetryTime ( integer $value ) : void
$value integer Value to set.
리턴 void

setVariable() 공개 메소드

Sets a given variable with the given value.
public setVariable ( string $key, string $value ) : void
$key string Variable name.
$value string Value.
리턴 void

setWaitTime() 공개 메소드

Sets seconds to wait for an answer. Default is 45.
public setWaitTime ( integer $value ) : void
$value integer Value to set.
리턴 void

unserialize() 공개 메소드

Deconstructs a call file from the given text.
public unserialize ( string $text ) : void
$text string A call file (intended to be pre-loaded, with file_get_contents() or similar).
리턴 void