uac.h File Reference

TM :: Simple UA support. More...

#include <stdio.h>
#include "../../str.h"
#include "dlg.h"
#include "t_hooks.h"

Include dependency graph for uac.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DEFAULT_CSEQ   10

Typedefs

typedef int(* req_t )(str *m, str *ruri, str *t, str *f, str *h, str *b, str *oburi, transaction_cb c, void *cp)
typedef int(* reqout_t )(str *m, str *t, str *f, str *h, str *b, dlg_t **d, transaction_cb c, void *cp)
typedef int(* reqwith_t )(str *m, str *h, str *b, dlg_t *d, transaction_cb c, void *cp)

Functions

void generate_fromtag (str *tag, str *callid)
 Generate a From tag from the callid.
int req_outside (str *m, str *t, str *f, str *h, str *b, dlg_t **d, transaction_cb c, void *cp)
 Send an initial request that will start a dialog.
int req_within (str *m, str *h, str *b, dlg_t *d, transaction_cb c, void *cp)
 Send a message within a dialog.
int request (str *m, str *ruri, str *to, str *from, str *h, str *b, str *oburi, transaction_cb c, void *cp)
 Send a transactional request, no dialogs involved.
int t_uac (str *method, str *headers, str *body, dlg_t *dialog, transaction_cb cb, void *cbp)
 Send a request using data from the dialog structure.
int uac_init (void)
 Initialize UAC.

Variables

int pass_provisional_replies


Detailed Description

TM :: Simple UA support.

Definition in file uac.h.


Define Documentation

#define DEFAULT_CSEQ   10

Default CSeq number

Definition at line 44 of file uac.h.

Referenced by mi_tm_uac_dlg(), req_outside(), and request().


Typedef Documentation

typedef int(* req_t)(str *m, str *ruri, str *t, str *f, str *h, str *b, str *oburi, transaction_cb c, void *cp)

Definition at line 55 of file uac.h.

typedef int(* reqout_t)(str *m, str *t, str *f, str *h, str *b, dlg_t **d, transaction_cb c, void *cp)

Definition at line 54 of file uac.h.

typedef int(* reqwith_t)(str *m, str *h, str *b, dlg_t *d, transaction_cb c, void *cp)

Definition at line 53 of file uac.h.


Function Documentation

void generate_fromtag ( str tag,
str callid 
)

Generate a From tag from the callid.

Note:
update the global from tag value
Parameters:
tag tag generated tag
callid source callid

Definition at line 128 of file tm/uac.c.

References crcitt_string_array(), from_tag, FROM_TAG_LEN, _str::len, MD5_LEN, and _str::s.

Referenced by mi_tm_uac_dlg(), req_outside(), and request().

int req_outside ( str method,
str to,
str from,
str headers,
str body,
dlg_t **  dialog,
transaction_cb  cb,
void *  cbp 
)

Send an initial request that will start a dialog.

Parameters:
method SIP method
to To URI
from From URI
headers SIP headers
body SIP body
dialog dialog state
cb transaction callback
cbp transaction callback parameter
Returns:
1 on success, negative on error

Definition at line 442 of file tm/uac.c.

References check_params(), DEFAULT_CSEQ, generate_callid(), generate_fromtag(), LM_ERR, new_dlg_uac(), and t_uac().

Referenced by load_tm().

int req_within ( str method,
str headers,
str body,
dlg_t dialog,
transaction_cb  completion_cb,
void *  cbp 
)

Send a message within a dialog.

Parameters:
method SIP method
headers SIP header
body SIP body
dialog dialog state
completion_cb transaction callback
cbp transaction callback parameter
Returns:
1 on success, negative on error

Definition at line 406 of file tm/uac.c.

References DLG_CONFIRMED, _str::len, LM_ERR, dlg::loc_seq, _str::s, dlg::state, t_uac(), and dlg_seq::value.

Referenced by load_tm().

int request ( str m,
str ruri,
str to,
str from,
str h,
str b,
str oburi,
transaction_cb  cb,
void *  cbp 
)

Send a transactional request, no dialogs involved.

Parameters:
m SIP method
ruri Request URI
to To URI
from From URI
h SIP headers
b SIP body
oburi outbound URI
cb transaction callback
cbp transaction callback parameter
Returns:
1 on success, negative on error

Definition at line 476 of file tm/uac.c.

References check_params(), DEFAULT_CSEQ, free_dlg(), generate_callid(), generate_fromtag(), dlg::hooks, _str::len, LM_ERR, new_dlg_uac(), dlg_hooks::next_hop, dlg::rem_target, dlg_hooks::request_uri, _str::s, t_uac(), and w_calculate_hooks().

Referenced by __dialog_created(), encode_msg(), end_media_session(), load_tm(), t_uac(), and use_media_proxy().

int t_uac ( str method,
str headers,
str body,
dlg_t dialog,
transaction_cb  cb,
void *  cbp 
)

int uac_init ( void   ) 


Variable Documentation

Enable/disable passing of provisional replies to FIFO applications

Definition at line 86 of file tm/uac.c.

Referenced by t_uac().


Generated on Thu May 24 20:00:45 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6