FreeSWITCH API Documentation  1.7.0
Data Structures | Macros | Typedefs | Functions
switch_caller.h File Reference

Caller Identification. More...

#include <switch.h>
+ Include dependency graph for switch_caller.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  profile_node_s
 
struct  switch_caller_profile
 Call Specific Data. More...
 
struct  switch_caller_application
 An Abstract Representation of a dialplan Application. More...
 
struct  switch_caller_extension
 An Abstract Representation of a dialplan extension. More...
 

Macros

#define profile_dup(a, b, p)   if (!zstr(a)) { b = switch_core_strdup(p, a); } else { b = SWITCH_BLANK_STRING; }
 
#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; }
 

Typedefs

typedef struct profile_node_s profile_node_t
 

Functions

switch_caller_extension_tswitch_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. More...
 
switch_status_t switch_caller_extension_clone (switch_caller_extension_t **new_ext, switch_caller_extension_t *orig, switch_memory_pool_t *pool)
 
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. More...
 
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. More...
 
_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. More...
 
switch_caller_profile_tswitch_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. More...
 
switch_caller_profile_tswitch_caller_profile_clone (_In_ switch_core_session_t *session, _In_ switch_caller_profile_t *tocopy)
 Clone an existing caller profile object. More...
 
switch_caller_profile_tswitch_caller_profile_dup (_In_ switch_memory_pool_t *pool, _In_ switch_caller_profile_t *tocopy)
 Duplicate an existing caller profile object. More...
 
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. More...
 

Detailed Description

Caller Identification.

See also
Caller Identity / Dialplan

Definition in file switch_caller.h.