PAMI\Message\Event\VgsmSmsRxEvent
On reception of an inbound SMS (SMS-DELIVERY) the message will also be reported as a manager event, however, acknowledgment still relies on SMS spooler to handle the message. This event is generated starting from 0.21.0
PHP Version 5
- Author: Marcelo Gornstein <marcelog@gmail.com>
- License: http://marcelog.github.com/PAMI/ Apache License 2.0
Synopsis
class VgsmSmsRxEvent
extends EventMessage
{
- // methods
- public string getPrivilege()
- public string getReceived()
- public string getFrom()
- public string getSubject()
- public string getMimeVersion()
- public string getContentType()
- public string getContentEncoding()
- public string getDate()
- public string getContent()
- public string getMessageType()
- public string getSenderNP()
- public string getSenderTON()
- public string getSenderNumber()
- public string getSMCCNP()
- public string getSMCCTON()
- public string getSMCCNumber()
- public string getMoreMessagesToSend()
- public string getReplyPath()
- public string getDataHeaderIndicator()
- public string getStatusReportIndication()
- // Inherited methods from EventMessage
- public string getName()
- // Inherited methods from IncomingMessage
- public array __sleep()
- public string getEventList()
- public string getRawContent()
- public array getAllChannelVariables()
- public array getChannelVariables()
- public array getAllStatusVariables()
- public array getStatusVariables()
- public void __construct()
- // Inherited methods from Message
- public integer getCreatedDate()
- public void setVariable()
- public string getVariable()
- public string getKey()
- public string getBoolKey()
- public array getKeys()
- public array getVariables()
- public string serialize()
- public string getActionID()
- public void __construct()
Hierarchy
Extends
Constants
Name | Value |
---|---|
EOL | "\r\n" |
EOM | "\r\n\r\n" |
Methods
public
- getContent() — Returns key: 'Content'.
- getContentEncoding() — Returns key: 'Content-Transfer-Encoding'.
- getContentType() — Returns key: 'Content-Type'.
- getDataHeaderIndicator() — Returns key: 'XX-SMS-User-Data-Header-Indicator'.
- getDate() — Returns key: 'Date'.
- getFrom() — Returns key: 'From'.
- getMessageType() — Returns key: 'X-SMS-Message-Type:'.
- getMimeVersion() — Returns key: 'MIME-Version'.
- getMoreMessagesToSend() — Returns key: 'X-SMS-More-Messages-To-Send'.
- getPrivilege() — Returns key: 'Privilege'.
- getReceived() — Returns key: 'Received'.
- getReplyPath() — Returns key: 'X-SMS-Reply-Path'.
- getSMCCNP() — Returns key: 'X-SMS-SMCC-NP'.
- getSMCCNumber() — Returns key: 'X-SMS-SMCC-Number'.
- getSMCCTON() — Returns key: 'X-SMS-SMCC-TON'.
- getSenderNP() — Returns key: 'X-SMS-Sender-NP'.
- getSenderNumber() — Returns key: 'X-SMS-Sender-Number'.
- getSenderTON() — Returns key: 'X-SMS-Sender-TON'.
- getStatusReportIndication() — Returns key: 'X-SMS-Status-Report-Indication'.
- getSubject() — Returns key: 'Subject'.
Inherited from PAMI\Message\Event\EventMessage
public
- getName() — Returns key 'Event'.
Inherited from PAMI\Message\IncomingMessage
public
- __sleep() — Serialize function.
- getAllChannelVariables() — Returns the channel variables for all reported channels.
- getAllStatusVariables() — Returns the channel variables for all reported channels.
- getChannelVariables() — Returns the channel variables for the given channel.
- getEventList() — Returns key 'EventList'. In respones, this will surely be a "start". In events, should be a "complete".
- getRawContent() — Returns the original message content without parsing.
- getStatusVariables() — Returns the channel variables for the given channel.
Inherited from PAMI\Message\Message
public
- getActionID() — Returns key: 'ActionID'.
- getBoolKey() — Returns a key by name.
- getCreatedDate() — Returns created date.
- getKey() — Returns a key by name.
- getKeys() — Returns all keys for this message.
- getVariable() — Returns a variable by name.
- getVariables() — Returns all variabels for this message.
- serialize() — Gives a string representation for this message, ready to be sent to ami.
- setVariable() — Adds a variable to this message.