96 #define osip_via_set_version via_set_version
102 #define osip_via_get_version via_get_version
109 #define osip_via_set_protocol via_set_protocol
115 #define osip_via_get_protocol via_get_protocol
122 #define osip_via_set_host via_set_host
128 #define osip_via_get_host via_get_host
135 #define osip_via_set_port via_set_port
141 #define osip_via_get_port via_get_port
148 #define osip_via_set_comment via_set_comment
154 #define osip_via_get_comment via_get_comment
160 #define osip_via_set_hidden(header) osip_generic_param_add((&(header)->via_params),osip_strdup("hidden"),NULL)
166 #define osip_via_set_ttl(header,value) osip_generic_param_add((&(header)->via_params),osip_strdup("ttl"),value)
172 #define osip_via_set_maddr(header,value) osip_generic_param_add((&(header)->via_params),osip_strdup("maddr"),value)
178 #define osip_via_set_received(header,value) osip_generic_param_add((&(header)->via_params),osip_strdup("received"),value)
184 #define osip_via_set_branch(header,value) osip_generic_param_add((&(header)->via_params),osip_strdup("branch"),value)
192 #define osip_via_param_add(header,name,value) osip_generic_param_add((&(header)->via_params),name,value)
199 #define osip_via_param_get_byname(header,name,dest) osip_generic_param_get_byname((&(header)->via_params),name,dest)
char * via_get_host(osip_via_t *header)
Get the host from a Via header.
Structure for referencing a list of elements.
char * via_get_version(osip_via_t *header)
Get the SIP version from a Via header.
void via_set_host(osip_via_t *header, char *value)
Set the host in the Via element.
void osip_via_free(osip_via_t *header)
Free a Via element.
int osip_via_clone(const osip_via_t *header, osip_via_t **dest)
Clone a Via element.
char * port
Port where to send answers.
char * via_get_protocol(osip_via_t *header)
Get the protocol from a Via header.
int osip_via_parse(osip_via_t *header, const char *hvalue)
Parse a Via element.
void via_set_port(osip_via_t *header, char *value)
Set the port in the Via element.
int osip_via_match(osip_via_t *via1, osip_via_t *via2)
Check if the Via headers match.
char * via_get_port(osip_via_t *header)
Get the port from a Via header.
char * via_get_comment(osip_via_t *header)
Get the comment from a Via header.
char * version
SIP Version.
osip_list_t via_params
Via parameters.
int osip_via_init(osip_via_t **header)
Allocate a Via element.
void via_set_protocol(osip_via_t *header, char *value)
Set the protocol in the Via element.
Definition of the Via header.
char * comment
Comments about SIP Agent.
char * protocol
Protocol used by SIP Agent.
void via_set_comment(osip_via_t *header, char *value)
Set the comment in the Via element.
char * host
Host where to send answers.
void via_set_version(osip_via_t *header, char *value)
Set the SIP version in the Via element.
int osip_via_to_str(const osip_via_t *header, char **dest)
Get a string representation of a Via element.