Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_msg_tech Struct Reference

A message technology. More...

#include <message.h>

Data Fields

int(*const msg_send )(const struct ast_msg *msg, const char *to, const char *from)
 Send a message. More...
 
const char *const name
 Name of this message technology. More...
 

Detailed Description

A message technology.

A message technology is capable of transmitting text messages.

Definition at line 52 of file message.h.

Field Documentation

◆ msg_send

int(* const msg_send) (const struct ast_msg *msg, const char *to, const char *from)

Send a message.

Parameters
msgthe message to send
tothe URI of where the message is being sent
fromthe URI of where the message was sent from

The fields of the ast_msg are guaranteed not to change during the duration of this function call.

Return values
0success
non-zerofailure

Definition at line 75 of file message.h.

Referenced by action_messagesend(), ast_msg_send(), and msg_send_exec().

◆ name

const char* const name

Name of this message technology.

This is the name that comes at the beginning of a URI for messages that should be sent to this message technology implementation. For example, messages sent to "xmpp:[email protected]" would be passed to the ast_msg_tech with a name of "xmpp".

Definition at line 61 of file message.h.

Referenced by ast_msg_tech_register(), ast_msg_tech_unregister(), PathSegment::get_child(), Parameter::load(), SwaggerType::load(), Property::load(), msg_find_by_tech_name(), and msg_tech_cmp().


The documentation for this struct was generated from the following file: