53 #ifndef SWITCH_CALLER_H
54 #define SWITCH_CALLER_H
60 #define profile_dup(a,b,p) if (!zstr(a)) { b = switch_core_strdup(p, a); } else { b = SWITCH_BLANK_STRING; }
61 #define profile_dup_clean(a,b,p) if (!zstr(a)) { b = switch_var_clean_string(switch_clean_string(switch_core_strdup(p, a)));} else { b = SWITCH_BLANK_STRING; }
186 _In_z_ const
char *application_name,
_In_z_ const
char *extra_data);
197 _In_z_ const
char *application_name,
_In_z_ const
char *fmt, ...);
An Abstract Representation of a dialplan extension.
switch_call_direction_t logical_direction
switch_application_function_t application_function
const char * orig_caller_id_name
#define SWITCH_END_EXTERN_C
struct switch_caller_profile * originatee_caller_profile
const char * network_addr
switch_memory_pool_t * pool
Representation of an event.
An Abstract Representation of a dialplan Application.
switch_caller_profile_t * switch_caller_profile_clone(_In_ switch_core_session_t *session, _In_ switch_caller_profile_t *tocopy)
Clone an existing caller profile object.
switch_caller_application_t * last_application
struct switch_caller_profile * next
switch_caller_profile_t * switch_caller_profile_new(_In_ switch_memory_pool_t *pool, _In_opt_z_ const char *username, _In_opt_z_ const char *dialplan, _In_opt_z_ const char *caller_id_name, _In_opt_z_ const char *caller_id_number, _In_opt_z_ const char *network_addr, _In_opt_z_ const char *ani, _In_opt_z_ const char *aniii, _In_opt_z_ const char *rdnis, _In_opt_z_ const char *source, _In_opt_z_ const char *context, _In_opt_z_ const char *destination_number)
Create a new caller profile object.
struct profile_node_s profile_node_t
_Check_return_ _Ret_opt_z_ const char * switch_caller_get_field_by_name(_In_ switch_caller_profile_t *caller_profile, _In_z_ const char *name)
Get the value of a field in a caller profile based on it's name.
struct switch_caller_application * next
void switch_caller_extension_add_application_printf(_In_ switch_core_session_t *session, _In_ switch_caller_extension_t *caller_extension, _In_z_ const char *application_name, _In_z_ const char *fmt,...)
Add an application (instruction) to the given extension.
void switch_caller_profile_event_set_data(_In_ switch_caller_profile_t *caller_profile, _In_opt_z_ const char *prefix, _In_ switch_event_t *event)
Add headers to an existing event in regards to a specific profile.
void(* switch_application_function_t)(switch_core_session_t *, const char *)
const char * orig_caller_id_number
struct switch_caller_extension * next
const char * callee_id_number
switch_caller_application_t * applications
uint8_t destination_number_ton
const char * caller_id_name
struct switch_caller_profile * children
struct profile_node_s * next
struct switch_caller_profile * origination_caller_profile
switch_call_direction_t direction
void switch_caller_extension_add_application(_In_ switch_core_session_t *session, _In_ switch_caller_extension_t *caller_extension, _In_z_ const char *application_name, _In_z_ const char *extra_data)
Add an application (instruction) to the given extension.
uint8_t destination_number_numplan
const char * profile_index
struct switch_caller_profile * originator_caller_profile
switch_status_t switch_caller_extension_clone(switch_caller_extension_t **new_ext, switch_caller_extension_t *orig, switch_memory_pool_t *pool)
switch_caller_application_t * current_application
switch_caller_extension_t * switch_caller_extension_new(_In_ switch_core_session_t *session, _In_z_ const char *extension_name, _In_z_ const char *extension_number)
Create a new extension with desired parameters.
switch_caller_profile_flag_t flags
switch_status_t
Common return values.
struct switch_channel_timetable * old_times
char * destination_number
struct switch_caller_profile * hunt_caller_profile
struct switch_channel_timetable * times
switch_caller_profile_t * switch_caller_profile_dup(_In_ switch_memory_pool_t *pool, _In_ switch_caller_profile_t *tocopy)
Duplicate an existing caller profile object.
const char * caller_id_number
struct apr_pool_t switch_memory_pool_t
uint32_t switch_caller_profile_flag_t
const char * callee_id_name
struct switch_caller_extension * caller_extension
switch_memory_pool_t * pool
#define SWITCH_BEGIN_EXTERN_C