PAMI\Message\Event\VoicemailUserEntryEvent

Event triggered when issuing a VoicemailUsersList action.

PHP Version 5

Constants

EOL

const EOL = "\r\n"

EOM

const EOM = "\r\n\r\n"

Properties

$rawContent

protected string $rawContent

Holds original message.

  • Visibility: protected

$channelVariables

protected array<mixed,string> $channelVariables

Metadata. Specific channel variables.

  • Visibility: protected

$lines

protected array<mixed,string> $lines

Message content, line by line. This is what it gets sent or received literally.

  • Visibility: protected

$variables

protected array<mixed,string> $variables

Metadata. Message variables (key/value).

  • Visibility: protected

$keys

protected array<mixed,string> $keys

Metadata. Message "keys" i.e: Action: login

  • Visibility: protected

$createdDate

protected integer $createdDate

Created date (unix timestamp).

  • Visibility: protected

Methods

getNewMessageCount

string PAMI\Message\Event\VoicemailUserEntryEvent::getNewMessageCount()

Returns key: 'NewMessageCount'.

  • Visibility: public

getMaxMessageLength

string PAMI\Message\Event\VoicemailUserEntryEvent::getMaxMessageLength()

Returns key: 'MaxMessageLength'.

  • Visibility: public

getMaxMessageCount

string PAMI\Message\Event\VoicemailUserEntryEvent::getMaxMessageCount()

Returns key: 'MaxMessageCount'.

  • Visibility: public

getCallOperator

string PAMI\Message\Event\VoicemailUserEntryEvent::getCallOperator()

Returns key: 'CallOperator'.

  • Visibility: public

getCanReview

string PAMI\Message\Event\VoicemailUserEntryEvent::getCanReview()

Returns key: 'CanReview'.

  • Visibility: public

getVolumeGain

string PAMI\Message\Event\VoicemailUserEntryEvent::getVolumeGain()

Returns key: 'VolumeGain'.

  • Visibility: public

getDeleteMessage

string PAMI\Message\Event\VoicemailUserEntryEvent::getDeleteMessage()

Returns key: 'DeleteMessage'.

  • Visibility: public

getAttachmentFormat

string PAMI\Message\Event\VoicemailUserEntryEvent::getAttachmentFormat()

Returns key: 'AttachmentFormat'.

  • Visibility: public

getAttachMessage

string PAMI\Message\Event\VoicemailUserEntryEvent::getAttachMessage()

Returns key: 'AttachMessage'.

  • Visibility: public

getSayCID

string PAMI\Message\Event\VoicemailUserEntryEvent::getSayCID()

Returns key: 'SayCID'.

  • Visibility: public

getSayEnvelope

string PAMI\Message\Event\VoicemailUserEntryEvent::getSayEnvelope()

Returns key: 'SayEnvelope'.

  • Visibility: public

getSayDurationMin

string PAMI\Message\Event\VoicemailUserEntryEvent::getSayDurationMin()

Returns key: 'SayDurationMin'.

  • Visibility: public

getExitContext

string PAMI\Message\Event\VoicemailUserEntryEvent::getExitContext()

Returns key: 'ExitContext'.

  • Visibility: public

getUniqueID

string PAMI\Message\Event\VoicemailUserEntryEvent::getUniqueID()

Returns key: 'UniqueID'.

  • Visibility: public

getDialOut

string PAMI\Message\Event\VoicemailUserEntryEvent::getDialOut()

Returns key: 'DialOut'.

  • Visibility: public

getCallback

string PAMI\Message\Event\VoicemailUserEntryEvent::getCallback()

Returns key: 'Callback'.

  • Visibility: public

getTimezone

string PAMI\Message\Event\VoicemailUserEntryEvent::getTimezone()

Returns key: 'Timezone'.

  • Visibility: public

getLanguage

string PAMI\Message\Event\VoicemailUserEntryEvent::getLanguage()

Returns key: 'Language'.

  • Visibility: public

getMailCommand

string PAMI\Message\Event\VoicemailUserEntryEvent::getMailCommand()

Returns key: 'MailCommand'.

  • Visibility: public

getServerEmail

string PAMI\Message\Event\VoicemailUserEntryEvent::getServerEmail()

Returns key: 'ServerEmail'.

  • Visibility: public

getPager

string PAMI\Message\Event\VoicemailUserEntryEvent::getPager()

Returns key: 'Pager'.

  • Visibility: public

getEmail

string PAMI\Message\Event\VoicemailUserEntryEvent::getEmail()

Returns key: 'Email'.

  • Visibility: public

getFullname

string PAMI\Message\Event\VoicemailUserEntryEvent::getFullname()

Returns key: 'Fullname'.

  • Visibility: public

getVoicemailBox

string PAMI\Message\Event\VoicemailUserEntryEvent::getVoicemailBox()

Returns key: 'VoicemailBox'.

  • Visibility: public

getVoicemailContext

string PAMI\Message\Event\VoicemailUserEntryEvent::getVoicemailContext()

Returns key: 'VmContext'.

  • Visibility: public

getName

string PAMI\Message\Event\EventMessage::getName()

Returns key 'Event'.

__sleep

array<mixed,string> PAMI\Message\Message::__sleep()

Serialize function.

getEventList

string PAMI\Message\IncomingMessage::getEventList()

Returns key 'EventList'. In respones, this will surely be a "start". In events, should be a "complete".

getRawContent

string PAMI\Message\IncomingMessage::getRawContent()

Returns the original message content without parsing.

getAllChannelVariables

array PAMI\Message\IncomingMessage::getAllChannelVariables()

Returns the channel variables for all reported channels.

https://github.com/marcelog/PAMI/issues/85

The channel names will be lowercased.

getChannelVariables

array PAMI\Message\IncomingMessage::getChannelVariables(string $channel)

Returns the channel variables for the given channel.

https://github.com/marcelog/PAMI/issues/85

Arguments

  • $channel string - <p>Channel name. If not given, will return variables for the "current" channel.</p>

__construct

void PAMI\Message\Message::__construct()

Constructor.

getCreatedDate

integer PAMI\Message\Message::getCreatedDate()

Returns created date.

setVariable

void PAMI\Message\Message::setVariable(string $key, string $value)

Adds a variable to this message.

Arguments

  • $key string - <p>Variable name.</p>
  • $value string - <p>Variable value.</p>

getVariable

string PAMI\Message\Message::getVariable(string $key)

Returns a variable by name.

Arguments

  • $key string - <p>Variable name.</p>

setKey

void PAMI\Message\Message::setKey(string $key, string $value)

Adds a variable to this message.

Arguments

  • $key string - <p>Key name (i.e: Action).</p>
  • $value string - <p>Key value.</p>

getKey

string PAMI\Message\Message::getKey(string $key)

Returns a key by name.

Arguments

  • $key string - <p>Key name (i.e: Action).</p>

getKeys

array<mixed,string> PAMI\Message\Message::getKeys()

Returns all keys for this message.

getVariables

array<mixed,string> PAMI\Message\Message::getVariables()

Returns all variabels for this message.

finishMessage

string PAMI\Message\Message::finishMessage($message)

Returns the end of message token appended to the end of a given message.

Arguments

  • $message mixed

serializeVariable

string PAMI\Message\Message::serializeVariable(string $key, string $value)

Returns the string representation for an ami action variable.

Arguments

  • $key string
  • $value string

serialize

string PAMI\Message\Message::serialize()

Gives a string representation for this message, ready to be sent to ami.

getActionID

string PAMI\Message\Message::getActionID()

Returns key: 'ActionID'.