Logo Search packages:      
Sourcecode: sofia-sip version File versions

test_nua.h File Reference


Detailed Description

High-level tester framework for Sofia SIP User Agent Engine.

@internal

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>

Martti Mela <Martti Mela@nokia.com>

Date:
Created: Wed Aug 17 12:12:12 EEST 2005 ppessi

Definition in file test_nua.h.

#include "sofia-sip/nua.h"
#include "sofia-sip/sip_status.h"
#include <sofia-sip/sdp.h>
#include <sofia-sip/sip_header.h>
#include <sofia-sip/su_log.h>
#include <sofia-sip/su_tagarg.h>
#include <sofia-sip/su_tag_io.h>
#include <sofia-sip/nua_tag.h>
#include "test_proxy.h"
#include "test_nat.h"
#include <sofia-sip/auth_module.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <sofia-sip/tstdef.h>

Go to the source code of this file.

Classes

struct  context
struct  context::endpoint
struct  context::endpoint::call
struct  event
struct  eventlist

Defines

#define CONDITION_PARAMS
#define NONE   ((void*)-1)
#define NUA_HMAGIC_T   struct call
#define NUA_MAGIC_T   struct context
#define RETURN_ON_SINGLE_FAILURE(retval)
#define TEST_E(a, b)   TEST_S(nua_event_name(a), nua_event_name(b))
#define TSTFLAGS   tstflags

Typedefs

typedef int condition_function (nua_event_t event, int status, char const *phrase, nua_t *nua, struct context *ctx, struct endpoint *ep, nua_handle_t *nh, struct call *call, sip_t const *sip, tagi_t tags[])
typedef int operation_f (struct endpoint *ep, struct call *call, nua_handle_t *nh, tag_type_t tag, tag_value_t value,...)
typedef void printer_function (nua_event_t event, char const *operation, int status, char const *phrase, nua_t *nua, struct context *ctx, struct endpoint *ep, nua_handle_t *nh, struct call *call, sip_t const *sip, tagi_t tags[])

Enumerations

enum  { event_is_extra, event_is_normal, event_is_special }

Functions

void a_callback (nua_event_t event, int status, char const *phrase, nua_t *nua, struct context *ctx, nua_handle_t *nh, struct call *call, sip_t const *sip, tagi_t tags[])
int accept_call (CONDITION_PARAMS)
int accept_notify (CONDITION_PARAMS)
int audio_activity (tagi_t const *tags)
void b_callback (nua_event_t event, int status, char const *phrase, nua_t *nua, struct context *ctx, nua_handle_t *nh, struct call *call, sip_t const *sip, tagi_t tags[])
void c_callback (nua_event_t event, int status, char const *phrase, nua_t *nua, struct context *ctx, nua_handle_t *nh, struct call *call, sip_t const *sip, tagi_t tags[])
su_inline void call_init (struct call *call)
int callstate (tagi_t const *tags)
int cancel_when_ringing (CONDITION_PARAMS)
struct call * check_handle (struct endpoint *ep, struct call *call, nua_handle_t *nh, int status, char const *phrase)
size_t count_events (struct event const *e)
int DESTROY (struct endpoint *ep, struct call *call, nua_handle_t *nh)
void endpoint_init (struct context *ctx, struct endpoint *e, char id)
struct event * event_by_type (struct event *e, nua_event_t)
su_inline void eventlist_init (struct eventlist *list)
void free_event_in_list (struct context *ctx, struct eventlist *list, struct event *e)
void free_events_in_list (struct context *, struct eventlist *)
int is_answer_recv (tagi_t const *tags)
int is_answer_sent (tagi_t const *tags)
int is_offer_answer_done (tagi_t const *tags)
int is_offer_recv (tagi_t const *tags)
int is_offer_sent (tagi_t const *tags)
int is_special (nua_event_t e)
void print_event (nua_event_t event, char const *operation, int status, char const *phrase, nua_t *nua, struct context *ctx, struct endpoint *ep, nua_handle_t *nh, struct call *call, sip_t const *sip, tagi_t tags[])
int RESPOND (struct endpoint *ep, struct call *call, nua_handle_t *nh, int status, char const *phrase, tag_type_t tag, tag_value_t value,...)
int run_a_until (struct context *, nua_event_t, condition_function *)
void run_ab_until (struct context *ctx, nua_event_t a_event, condition_function *a_condition, nua_event_t b_event, condition_function *b_condition)
void run_abc_until (struct context *ctx, nua_event_t a_event, condition_function *a_condition, nua_event_t b_event, condition_function *b_condition, nua_event_t c_event, condition_function *c_condition)
int run_b_until (struct context *, nua_event_t, condition_function *)
void run_bc_until (struct context *ctx, nua_event_t b_event, condition_function *b_condition, nua_event_t c_event, condition_function *c_condition)
int run_c_until (struct context *, nua_event_t, condition_function *)
int save_event_in_list (struct context *, nua_event_t nevent, struct endpoint *, struct call *)
int save_events (CONDITION_PARAMS)
int save_until_final_response (CONDITION_PARAMS)
int save_until_received (CONDITION_PARAMS)
int save_until_special (CONDITION_PARAMS)
int test_100rel (struct context *ctx)
int test_basic_call (struct context *ctx)
int test_call_cancel (struct context *ctx)
int test_call_destroy (struct context *ctx)
int test_call_hold (struct context *ctx)
int test_call_timeouts (struct context *ctx)
int test_connectivity (struct context *ctx)
int test_deinit (struct context *ctx)
int test_early_bye (struct context *ctx)
int test_events (struct context *ctx)
int test_extension (struct context *ctx)
int test_mime_negotiation (struct context *ctx)
int test_nat_timeout (struct context *ctx)
int test_nua_api_errors (struct context *ctx)
int test_nua_destroy (struct context *ctx)
int test_nua_init (struct context *ctx, int start_proxy, url_t const *o_proxy, int start_nat, tag_type_t tag, tag_value_t value,...)
int test_nua_params (struct context *ctx)
int test_offer_answer (struct context *ctx)
int test_refer (struct context *ctx)
int test_register (struct context *ctx)
int test_reinvites (struct context *ctx)
int test_reject_401_aka (struct context *ctx)
int test_rejects (struct context *ctx)
int test_session_timer (struct context *ctx)
int test_simple (struct context *ctx)
int test_stack_errors (struct context *ctx)
int test_tag_filter (void)
int test_unregister (struct context *ctx)
int until_final_response (CONDITION_PARAMS)
int until_ready (CONDITION_PARAMS)
int until_terminated (CONDITION_PARAMS)
int video_activity (tagi_t const *tags)

Variables

operation_f ACK
operation_f AUTHENTICATE
operation_f AUTHORIZE
operation_f BYE
operation_f CANCEL
operation_f INFO
operation_f INVITE
operation_f MESSAGE
operation_f METHOD
char const name []
operation_f NOTIFIER
operation_f NOTIFY
operation_f OPTIONS
operation_f PRACK
int print_headings
 Check-driven tester for Sofia SIP User Agent library.
operation_f PUBLISH
operation_f REFER
operation_f REGISTER
operation_f SUBSCRIBE
operation_f TERMINATE
int tstflags
 Check-driven tester for Sofia SIP User Agent library.
operation_f UNPUBLISH
operation_f UNREGISTER
operation_f UNSUBSCRIBE
operation_f UPDATE


Generated by  Doxygen 1.6.0   Back to index