Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
PJSIP dialplan functions header file. More...
Go to the source code of this file.
Functions | |
int | pjsip_acf_channel_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
CHANNEL function read callback. More... | |
int | pjsip_acf_dial_contacts_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
PJSIP_DIAL_CONTACTS function read callback. More... | |
int | pjsip_acf_dtmf_mode_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
PJSIP_DTMF_MODE function read callback. More... | |
int | pjsip_acf_dtmf_mode_write (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
PJSIP_DTMF_MODE function write callback. More... | |
int | pjsip_acf_media_offer_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
PJSIP_MEDIA_OFFER function read callback. More... | |
int | pjsip_acf_media_offer_write (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
PJSIP_MEDIA_OFFER function write callback. More... | |
int | pjsip_acf_moh_passthrough_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
PJSIP_MOH_PASSTHROUGH function read callback. More... | |
int | pjsip_acf_moh_passthrough_write (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
PJSIP_MOH_PASSTHROUGH function write callback. More... | |
int | pjsip_acf_parse_uri_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
PJSIP_PARSE_URI function read callback. More... | |
int | pjsip_acf_session_refresh_write (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
PJSIP_SEND_SESSION_REFRESH function write callback. More... | |
int | pjsip_action_hangup (struct mansession *s, const struct message *m) |
Manager action to hang up an incoming PJSIP channel with a SIP response code. More... | |
int | pjsip_app_hangup (struct ast_channel *chan, const char *data) |
Hang up an incoming PJSIP channel with a SIP response code. More... | |
PJSIP dialplan functions header file.
Definition in file dialplan_functions.h.
int pjsip_acf_channel_read | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
char * | buf, | ||
size_t | len | ||
) |
CHANNEL function read callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
buf | Out buffer that should be populated with the data |
len | Size of the buffer |
0 | on success |
-1 | on failure |
Definition at line 443 of file dialplan_functions.c.
References ao2_bump, ao2_ref, args, AST_APP_ARG, ast_channel_lock, ast_channel_name(), ast_channel_tech(), ast_channel_tech_pvt(), ast_channel_unlock, AST_DECLARE_APP_ARGS, ast_log, ast_sip_push_task_wait_serializer(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, func_args(), len(), LOG_ERROR, LOG_WARNING, read_pjsip(), ast_sip_channel_pvt::session, and type.
int pjsip_acf_dial_contacts_read | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
char * | buf, | ||
size_t | len | ||
) |
PJSIP_DIAL_CONTACTS function read callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
buf | Out buffer that should be populated with the data |
len | Size of the buffer |
0 | on success |
-1 | on failure |
Definition at line 510 of file dialplan_functions.c.
References ao2_cleanup, ao2_container_count(), ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_sip_contact::aor, args, AST_APP_ARG, ast_copy_string(), AST_DECLARE_APP_ARGS, ast_free_ptr(), ast_log, AST_SIP_CONTACT_FILTER_REACHABLE, ast_sip_get_sorcery(), ast_sip_location_retrieve_aor(), ast_sip_location_retrieve_aor_contacts_filtered(), ast_sorcery_retrieve_by_id(), AST_STANDARD_APP_ARGS, ast_str_append(), ast_str_buffer(), ast_str_create, ast_str_strlen(), ast_str_truncate(), ast_strdupa, ast_strip(), ast_strlen_zero(), buf, len(), LOG_WARNING, NULL, RAII_VAR, S_OR, strsep(), and ast_sip_contact::uri.
int pjsip_acf_dtmf_mode_read | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
char * | buf, | ||
size_t | len | ||
) |
PJSIP_DTMF_MODE function read callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
buf | Out buffer that should be populated with the data |
len | Size of the buffer |
0 | on success |
-1 | on failure |
Definition at line 978 of file dialplan_functions.c.
References ast_channel_lock, ast_channel_name(), ast_channel_tech(), ast_channel_tech_pvt(), ast_channel_unlock, ast_log, ast_sip_dtmf_to_str(), buf, ast_sip_session::dtmf, len(), LOG_WARNING, ast_sip_channel_pvt::session, and type.
int pjsip_acf_dtmf_mode_write | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
const char * | value | ||
) |
PJSIP_DTMF_MODE function write callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
value | Value to be set by the function |
0 | on success |
-1 | on failure |
Definition at line 1079 of file dialplan_functions.c.
References ast_sip_session::active_media_state, ast_channel_lock, ast_channel_name(), ast_channel_tech(), ast_channel_tech_pvt(), ast_channel_unlock, ast_dsp_free(), ast_dsp_get_features(), ast_dsp_new(), ast_dsp_set_features(), ast_log, AST_MEDIA_TYPE_AUDIO, AST_RTP_DTMF_MODE_INBAND, AST_RTP_DTMF_MODE_NONE, AST_RTP_DTMF_MODE_RFC2833, ast_rtp_instance_dtmf_mode_get(), ast_rtp_instance_dtmf_mode_set(), ast_rtp_instance_set_prop(), AST_RTP_PROPERTY_DTMF, AST_SIP_DTMF_AUTO, AST_SIP_DTMF_AUTO_INFO, AST_SIP_DTMF_INBAND, AST_SIP_DTMF_INFO, AST_SIP_DTMF_NONE, AST_SIP_DTMF_RFC_4733, ast_sip_push_task_wait_serializer(), AST_SIP_SESSION_REFRESH_METHOD_INVITE, ast_sip_str_to_dtmf(), ast_sip_session_media_state::default_session, ast_sip_session::dsp, DSP_FEATURE_DIGIT_DETECT, ast_sip_session::dtmf, dtmf_mode_refresh_cb(), LOG_WARNING, refresh_data::method, NULL, ast_sip_session_media::rtp, ast_sip_session::serializer, refresh_data::session, ast_sip_channel_pvt::session, type, and value.
int pjsip_acf_media_offer_read | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
char * | buf, | ||
size_t | len | ||
) |
PJSIP_MEDIA_OFFER function read callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
buf | Out buffer that should be populated with the data |
len | Size of the buffer |
0 | on success |
-1 | on failure |
Definition at line 921 of file dialplan_functions.c.
References ast_channel_tech(), ast_channel_tech_pvt(), ast_log, AST_MEDIA_TYPE_AUDIO, AST_MEDIA_TYPE_VIDEO, buf, len(), LOG_WARNING, media_offer_read_av(), ast_sip_channel_pvt::session, and type.
int pjsip_acf_media_offer_write | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
const char * | value | ||
) |
PJSIP_MEDIA_OFFER function write callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
value | Value to be set by the function |
0 | on success |
-1 | on failure |
Definition at line 949 of file dialplan_functions.c.
References ast_channel_tech(), ast_channel_tech_pvt(), ast_log, AST_MEDIA_TYPE_AUDIO, AST_MEDIA_TYPE_VIDEO, ast_sip_push_task_wait_serializer(), LOG_WARNING, media_offer_write_av(), media_offer_data::media_type, ast_sip_session::serializer, media_offer_data::session, ast_sip_channel_pvt::session, type, media_offer_data::value, and value.
int pjsip_acf_moh_passthrough_read | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
char * | buf, | ||
size_t | len | ||
) |
PJSIP_MOH_PASSTHROUGH function read callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
buf | Out buffer that should be populated with the data |
len | Size of the buffer |
0 | on success |
-1 | on failure |
Definition at line 1006 of file dialplan_functions.c.
References ast_channel_lock, ast_channel_tech(), ast_channel_tech_pvt(), ast_channel_unlock, ast_log, AST_YESNO, buf, len(), LOG_WARNING, ast_sip_session::moh_passthrough, ast_sip_channel_pvt::session, and type.
int pjsip_acf_moh_passthrough_write | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
const char * | value | ||
) |
PJSIP_MOH_PASSTHROUGH function write callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
value | Value to be set by the function |
0 | on success |
-1 | on failure |
Definition at line 1177 of file dialplan_functions.c.
References ast_channel_lock, ast_channel_tech(), ast_channel_tech_pvt(), ast_channel_unlock, ast_log, ast_true(), LOG_WARNING, ast_sip_session::moh_passthrough, ast_sip_channel_pvt::session, type, and value.
int pjsip_acf_parse_uri_read | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
char * | buf, | ||
size_t | len | ||
) |
PJSIP_PARSE_URI function read callback.
chan | The channel the function is called on |
cmd | The name of the function |
data | Arguments passed to the function |
buf | Out buffer that should be populated with the data |
len | Size of the buffer |
0 | on success |
-1 | on failure |
Definition at line 724 of file dialplan_functions.c.
References args, AST_APP_ARG, ast_channel_lock, ast_channel_unlock, AST_DECLARE_APP_ARGS, ast_log, ast_sip_push_task_wait_serializer(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, parse_uri_args::buflen, func_args(), LOG_WARNING, NULL, parse_uri_cb(), pbx_builtin_getvar_helper(), type, and var.
int pjsip_acf_session_refresh_write | ( | struct ast_channel * | chan, |
const char * | cmd, | ||
char * | data, | ||
const char * | value | ||
) |
PJSIP_SEND_SESSION_REFRESH function write callback.
chan | The channel the function is called on |
cmd | the Name of the function |
data | Arguments passed to the function |
value | Value to be set by the function |
0 | on success |
-1 | on failure |
Definition at line 1220 of file dialplan_functions.c.
References ast_channel_name(), ast_channel_tech(), ast_channel_tech_pvt(), ast_log, ast_sip_push_task_wait_serializer(), AST_SIP_SESSION_REFRESH_METHOD_INVITE, AST_SIP_SESSION_REFRESH_METHOD_UPDATE, AST_STATE_UP, LOG_WARNING, refresh_data::method, refresh_write_cb(), ast_sip_session::serializer, refresh_data::session, ast_sip_channel_pvt::session, type, and value.
int pjsip_action_hangup | ( | struct mansession * | s, |
const struct message * | m | ||
) |
Manager action to hang up an incoming PJSIP channel with a SIP response code.
s | session |
m | message |
0 | on success |
-1 | on failure |
Manager action to hang up an incoming PJSIP channel with a SIP response code.
Definition at line 1366 of file dialplan_functions.c.
References ast_manager_hangup_helper(), pjsip_app_hangup_handler(), and response_code_validator().
Referenced by load_module().
int pjsip_app_hangup | ( | struct ast_channel * | chan, |
const char * | data | ||
) |
Hang up an incoming PJSIP channel with a SIP response code.
chan | The channel the function is called on |
data | SIP response code or name |
0 | on success |
-1 | on failure |
Hang up an incoming PJSIP channel with a SIP response code.
Definition at line 1346 of file dialplan_functions.c.
References ast_channel_name(), ast_log, ast_strlen_zero(), hangup_data::chan, LOG_WARNING, pjsip_app_hangup_handler(), hangup_data::response_code, and response_code_validator().
Referenced by load_module().