|
Asterisk - The Open Source Telephony Project GIT-master-57e2743
|
Channel-locked PJSIP information interface. More...


Go to the source code of this file.
Data Structures | |
| struct | pjsip_channel_info |
| struct | pjsip_channel_uri |
Functions | |
| int | pjsip_channel_info_create (struct ast_channel *chan, struct ast_sip_session *session) |
| Create channel-owned PJSIP information before channel publication. | |
| struct pjsip_channel_info * | pjsip_channel_info_get (struct ast_channel *chan) |
| Find the channel's information, or NULL if it has none. | |
| void | pjsip_channel_info_register (void) |
| Register the channel information session supplement. | |
| void | pjsip_channel_info_schedule_update (struct ast_sip_session *session) |
| Schedule a refresh from any thread without waiting for the serializer. | |
| void | pjsip_channel_info_unregister (void) |
| Unregister the channel information session supplement. | |
| void | pjsip_channel_info_update (struct ast_sip_session *session) |
| Refresh channel information under the channel lock. | |
Channel-locked PJSIP information interface.
Definition in file channel_info.h.
| int pjsip_channel_info_create | ( | struct ast_channel * | chan, |
| struct ast_sip_session * | session | ||
| ) |
Create channel-owned PJSIP information before channel publication.
| 0 | on success |
| -1 | on failure |
Definition at line 187 of file channel_info.c.
References ast_calloc, ast_channel_datastore_add(), ast_datastore_alloc, ast_datastore_free(), channel_info_datastore, channel_info_update_locked(), ast_datastore::data, pjsip_channel_info::datastore, NULL, and session.
Referenced by chan_pjsip_new().
| struct pjsip_channel_info * pjsip_channel_info_get | ( | struct ast_channel * | chan | ) |
Find the channel's information, or NULL if it has none.
Definition at line 89 of file channel_info.c.
References ast_channel_datastore_find(), channel_info_datastore, ast_datastore::data, and NULL.
Referenced by channel_read_pjsip(), pjsip_acf_channel_read(), and pjsip_channel_info_update().
| void pjsip_channel_info_register | ( | void | ) |
Register the channel information session supplement.
Definition at line 289 of file channel_info.c.
References ast_sip_session_register_supplement, and channel_info_supplement.
Referenced by load_module().
| void pjsip_channel_info_schedule_update | ( | struct ast_sip_session * | session | ) |
Schedule a refresh from any thread without waiting for the serializer.
Definition at line 238 of file channel_info.c.
References ao2_bump, ao2_ref, ast_log, ast_sip_push_task, ast_sip_session_get_name(), channel_info_update_task(), LOG_WARNING, and session.
Referenced by channel_info_incoming_request(), channel_info_incoming_response(), channel_info_outgoing_request(), and channel_info_outgoing_response().
| void pjsip_channel_info_unregister | ( | void | ) |
Unregister the channel information session supplement.
Definition at line 294 of file channel_info.c.
References ast_sip_session_unregister_supplement(), and channel_info_supplement.
Referenced by load_module(), and unload_module().
| void pjsip_channel_info_update | ( | struct ast_sip_session * | session | ) |
Refresh channel information under the channel lock.
Definition at line 212 of file channel_info.c.
References ast_channel_lock, ast_channel_unlock, channel_info_update_locked(), pjsip_channel_info_get(), and session.
Referenced by channel_info_incoming_request(), channel_info_incoming_response(), channel_info_update_task(), and send_direct_media_request().