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

nta.h File Reference


Detailed Description

Nokia Transaction API for SIP.

Defined when <sofia-sip/nta.h> has been included.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Tue Jul 18 09:18:32 2000 ppessi

Definition in file nta.h.

#include <sofia-sip/su_wait.h>
#include <sofia-sip/sip.h>
#include <sofia-sip/nta_tag.h>

Go to the source code of this file.

Defines

#define NTA_AGENT_MAGIC_T   struct nta_agent_magic_s
#define NTA_INCOMING_MAGIC_T   struct nta_incoming_magic_s
#define NTA_LEG_MAGIC_T   struct nta_leg_magic_s
#define nta_msg_response_complete(msg, irq, status, phrase)   nta_incoming_complete_response((irq), (msg), (status), (phrase), TAG_END())
#define NTA_OUTGOING_MAGIC_T   struct nta_outgoing_magic_s
#define nta_outgoing_tmcreate   nta_outgoing_mcreate
#define NTA_RELIABLE_MAGIC_T   struct nta_reliable_magic_s
#define NTA_VERSION   "2.0"

Typedefs

typedef int nta_ack_cancel_f (nta_incoming_magic_t *imagic, nta_incoming_t *irq, sip_t const *sip)
typedef NTA_AGENT_MAGIC_T nta_agent_magic_t
typedef
typedefSOFIA_BEGIN_DECLS
struct nta_agent_s 
nta_agent_t
typedef NTA_INCOMING_MAGIC_T nta_incoming_magic_t
typedef struct nta_incoming_s nta_incoming_t
typedef NTA_LEG_MAGIC_T nta_leg_magic_t
typedef struct nta_leg_s nta_leg_t
typedef int nta_message_f (nta_agent_magic_t *context, nta_agent_t *agent, msg_t *msg, sip_t *sip)
typedef NTA_OUTGOING_MAGIC_T nta_outgoing_magic_t
typedef struct nta_outgoing_s nta_outgoing_t
typedef int nta_prack_f (nta_reliable_magic_t *rmagic, nta_reliable_t *rel, nta_incoming_t *prack, sip_t const *sip)
typedef NTA_RELIABLE_MAGIC_T nta_reliable_magic_t
typedef struct nta_reliable_s nta_reliable_t
typedef int nta_request_f (nta_leg_magic_t *lmagic, nta_leg_t *leg, nta_incoming_t *irq, sip_t const *sip)
typedef int nta_response_f (nta_outgoing_magic_t *magic, nta_outgoing_t *request, sip_t const *sip)

Enumerations

enum  { NTA_SIP_T1 = 500, NTA_SIP_T2 = 4000, NTA_SIP_T4 = 5000, NTA_TIME_MAX = 15 * 24 * 3600 * 1000 }

Functions

SOFIAPUBFUN int nta_agent_add_tport (nta_agent_t *agent, url_string_t const *url, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_agent_close_tports (nta_agent_t *agent)
SOFIAPUBFUN sip_contact_tnta_agent_contact (nta_agent_t const *a)
SOFIAPUBFUN nta_agent_tnta_agent_create (su_root_t *root, url_string_t const *name, nta_message_f *callback, nta_agent_magic_t *magic, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN void nta_agent_destroy (nta_agent_t *agent)
SOFIAPUBFUN int nta_agent_get_params (nta_agent_t *agent, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_agent_get_stats (nta_agent_t *agent, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN nta_agent_magic_tnta_agent_magic (nta_agent_t const *a)
SOFIAPUBFUN char const * nta_agent_newtag (su_home_t *, char const *fmt, nta_agent_t *)
SOFIAPUBFUN sip_via_tnta_agent_public_via (nta_agent_t const *a)
SOFIAPUBFUN int nta_agent_set_params (nta_agent_t *agent, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN char const * nta_agent_version (nta_agent_t const *a)
SOFIAPUBFUN sip_via_tnta_agent_via (nta_agent_t const *a)
SOFIAPUBFUN int nta_check_accept (nta_incoming_t *irq, sip_t const *sip, sip_accept_t const *acceptable, sip_accept_t const **return_acceptable, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_check_method (nta_incoming_t *irq, sip_t const *sip, sip_allow_t const *allow, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_check_required (nta_incoming_t *irq, sip_t const *sip, sip_supported_t const *supported, tag_type_t tag, tag_value_t value,...)
 Checks for features, MIME types, session timer.
SOFIAPUBFUN int nta_check_session_content (nta_incoming_t *irq, sip_t const *sip, sip_accept_t const *session_accepts, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_check_session_expires (nta_incoming_t *irq, sip_t const *sip, sip_time_t my_min_se, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_check_supported (nta_incoming_t *irq, sip_t const *sip, sip_require_t *require, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN nta_leg_tnta_default_leg (nta_agent_t const *agent)
SOFIAPUBFUN void nta_incoming_bind (nta_incoming_t *irq, nta_ack_cancel_f *callback, nta_incoming_magic_t *imagic)
SOFIAPUBFUN int nta_incoming_complete_response (nta_incoming_t *irq, msg_t *msg, int status, char const *phrase, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN nta_incoming_tnta_incoming_create (nta_agent_t *agent, nta_leg_t *leg, msg_t *msg, sip_t *sip, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN msg_tnta_incoming_create_response (nta_incoming_t *irq, int status, char const *phrase)
SOFIAPUBFUN uint32_t nta_incoming_cseq (nta_incoming_t const *irq)
SOFIAPUBFUN nta_incoming_tnta_incoming_default (nta_agent_t *agent)
SOFIAPUBFUN void nta_incoming_destroy (nta_incoming_t *irq)
SOFIAPUBFUN nta_incoming_tnta_incoming_find (nta_agent_t const *agent, sip_t const *sip, sip_via_t const *v)
SOFIAPUBFUN msg_tnta_incoming_getrequest (nta_incoming_t *irq)
SOFIAPUBFUN msg_tnta_incoming_getrequest_ackcancel (nta_incoming_t *irq)
SOFIAPUBFUN msg_tnta_incoming_getresponse (nta_incoming_t *irq)
SOFIAPUBFUN char const * nta_incoming_gettag (nta_incoming_t const *irq)
SOFIAPUBFUN nta_incoming_magic_tnta_incoming_magic (nta_incoming_t *irq, nta_ack_cancel_f *callback)
SOFIAPUBFUN sip_method_t nta_incoming_method (nta_incoming_t const *irq)
SOFIAPUBFUN char const * nta_incoming_method_name (nta_incoming_t const *irq)
SOFIAPUBFUN int nta_incoming_mreply (nta_incoming_t *irq, msg_t *msg)
SOFIAPUBFUN sip_time_t nta_incoming_received (nta_incoming_t *irq, su_nanotime_t *nano)
SOFIAPUBFUN int nta_incoming_set_params (nta_incoming_t *irq, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_incoming_status (nta_incoming_t const *irq)
SOFIAPUBFUN char const * nta_incoming_tag (nta_incoming_t *irq, char const *tag)
SOFIAPUBFUN int nta_incoming_treply (nta_incoming_t *ireq, int status, char const *phrase, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN url_t const * nta_incoming_url (nta_incoming_t const *irq)
SOFIAPUBFUN int nta_is_internal_msg (msg_t const *msg)
SOFIAPUBFUN void nta_leg_bind (nta_leg_t *leg, nta_request_f *callback, nta_leg_magic_t *)
SOFIAPUBFUN nta_leg_tnta_leg_by_call_id (nta_agent_t *sa, const char *call_id)
SOFIAPUBFUN nta_leg_tnta_leg_by_dialog (nta_agent_t const *agent, url_t const *request_uri, sip_call_id_t const *call_id, char const *from_tag, url_t const *from_url, char const *to_tag, url_t const *to_url)
SOFIAPUBFUN nta_leg_tnta_leg_by_replaces (nta_agent_t *, sip_replaces_t const *)
SOFIAPUBFUN nta_leg_tnta_leg_by_uri (nta_agent_t const *, url_string_t const *)
SOFIAPUBFUN int nta_leg_client_route (nta_leg_t *leg, sip_record_route_t const *route, sip_contact_t const *contact)
SOFIAPUBFUN void nta_leg_destroy (nta_leg_t *leg)
SOFIAPUBFUN int nta_leg_get_route (nta_leg_t *leg, sip_route_t const **return_route, sip_contact_t const **return_target)
SOFIAPUBFUN uint32_t nta_leg_get_rseq (nta_leg_t const *leg)
SOFIAPUBFUN char const * nta_leg_get_rtag (nta_leg_t const *leg)
SOFIAPUBFUN uint32_t nta_leg_get_seq (nta_leg_t const *leg)
SOFIAPUBFUN char const * nta_leg_get_tag (nta_leg_t const *leg)
SOFIAPUBFUN nta_leg_magic_tnta_leg_magic (nta_leg_t const *leg, nta_request_f *callback)
SOFIAPUBFUN sip_replaces_tnta_leg_make_replaces (nta_leg_t *leg, su_home_t *home, int early_only)
SOFIAPUBFUN char const * nta_leg_rtag (nta_leg_t *leg, char const *tag)
SOFIAPUBFUN int nta_leg_server_route (nta_leg_t *leg, sip_record_route_t const *route, sip_contact_t const *contact)
SOFIAPUBFUN char const * nta_leg_tag (nta_leg_t *leg, char const *tag)
SOFIAPUBFUN nta_leg_tnta_leg_tcreate (nta_agent_t *agent, nta_request_f *req_callback, nta_leg_magic_t *magic, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_msg_complete (msg_t *msg)
SOFIAPUBFUN msg_tnta_msg_create (nta_agent_t *self, int flags)
SOFIAPUBFUN void nta_msg_discard (nta_agent_t *agent, msg_t *msg)
SOFIAPUBFUN int nta_msg_is_internal (msg_t const *msg)
SOFIAPUBFUN int nta_msg_request_complete (msg_t *msg, nta_leg_t *leg, sip_method_t method, char const *method_name, url_string_t const *req_url)
SOFIAPUBFUN int nta_outgoing_bind (nta_outgoing_t *orq, nta_response_f *callback, nta_outgoing_magic_t *magic)
SOFIAPUBFUN char const * nta_outgoing_branch (nta_outgoing_t const *orq)
SOFIAPUBFUN int nta_outgoing_cancel (nta_outgoing_t *)
SOFIAPUBFUN uint32_t nta_outgoing_cseq (nta_outgoing_t const *orq)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_default (nta_agent_t *agent, nta_response_f *callback, nta_outgoing_magic_t *magic)
SOFIAPUBFUN unsigned nta_outgoing_delay (nta_outgoing_t const *orq)
SOFIAPUBFUN void nta_outgoing_destroy (nta_outgoing_t *)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_find (nta_agent_t const *sa, msg_t const *msg, sip_t const *sip, sip_via_t const *v)
SOFIAPUBFUN msg_tnta_outgoing_getrequest (nta_outgoing_t *orq)
SOFIAPUBFUN msg_tnta_outgoing_getresponse (nta_outgoing_t *orq)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_mcreate (nta_agent_t *agent, nta_response_f *callback, nta_outgoing_magic_t *magic, url_string_t const *route_url, msg_t *msg, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN sip_method_t nta_outgoing_method (nta_outgoing_t const *orq)
SOFIAPUBFUN char const * nta_outgoing_method_name (nta_outgoing_t const *orq)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_prack (nta_leg_t *leg, nta_outgoing_t *oorq, nta_response_f *callback, nta_outgoing_magic_t *magic, url_string_t const *route_url, sip_t const *response_to_prack, tag_type_t, tag_value_t,...)
SOFIAPUBFUN url_t const * nta_outgoing_request_uri (nta_outgoing_t const *orq)
SOFIAPUBFUN url_t const * nta_outgoing_route_uri (nta_outgoing_t const *orq)
SOFIAPUBFUN uint32_t nta_outgoing_rseq (nta_outgoing_t const *orq)
SOFIAPUBFUN int nta_outgoing_setrseq (nta_outgoing_t *orq, uint32_t rseq)
SOFIAPUBFUN int nta_outgoing_status (nta_outgoing_t const *orq)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_tagged (nta_outgoing_t *orq, nta_response_f *callback, nta_outgoing_magic_t *magic, char const *to_tag, sip_rseq_t const *rseq)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_tcancel (nta_outgoing_t *orq, nta_response_f *callback, nta_outgoing_magic_t *magic, tag_type_t, tag_value_t,...)
SOFIAPUBFUN nta_outgoing_tnta_outgoing_tcreate (nta_leg_t *leg, nta_response_f *callback, nta_outgoing_magic_t *magic, url_string_t const *route_url, sip_method_t method, char const *method_name, url_string_t const *request_uri, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN void nta_reliable_destroy (nta_reliable_t *)
SOFIAPUBFUN nta_reliable_tnta_reliable_mreply (nta_incoming_t *irq, nta_prack_f *callback, nta_reliable_magic_t *rmagic, msg_t *msg)
SOFIAPUBFUN nta_reliable_tnta_reliable_treply (nta_incoming_t *ireq, nta_prack_f *callback, nta_reliable_magic_t *rmagic, int status, char const *phrase, tag_type_t tag, tag_value_t value,...)
SOFIAPUBFUN int nta_sip_is_internal (sip_t const *sip)
SOFIAPUBFUN int nta_tport_keepalive (nta_outgoing_t *orq)

Variables

SOFIAPUBVAR char const nta_version []


Generated by  Doxygen 1.6.0   Back to index