Commit 1e7438d6 authored by Martti Mela's avatar Martti Mela

initial support for dynamic address changes for register

darcs-hash:20060323132940-1b897-c34f496860b3054c8e34ef926b26a28118f7c935.gz
parent adb81bc6
...@@ -626,8 +626,26 @@ nua_stack_registrations_init(nua_t *nua) ...@@ -626,8 +626,26 @@ nua_stack_registrations_init(nua_t *nua)
static static
void nua_stack_tport_update(nua_t *nua, nta_agent_t *nta) void nua_stack_tport_update(nua_t *nua, nta_agent_t *nta)
{ {
register_usage *default_ru;
register_usage const *defaults = nua->nua_registrations;
sip_via_t *via = nta_agent_via(nta);
default_ru = register_usage_by_aor(defaults, NULL, 1);
if (default_ru) {
assert(default_ru->ru_via);
register_usage_contacts_from_via(default_ru,
via,
via->v_next);
/* refresh_register(nua_handle_t *nh, nua_dialog_usage_t *du, sip_time_t now); */
}
return;
} }
sip_contact_t const *nua_contact_by_aor(nua_t *nua, sip_contact_t const *nua_contact_by_aor(nua_t *nua,
url_t const *aor, url_t const *aor,
int only_default) int only_default)
......
...@@ -221,6 +221,13 @@ TPORT_DLL extern tag_typedef_t tptag_thrprqsize; ...@@ -221,6 +221,13 @@ TPORT_DLL extern tag_typedef_t tptag_thrprqsize;
TPORT_DLL extern tag_typedef_t tptag_thrprqsize_ref; TPORT_DLL extern tag_typedef_t tptag_thrprqsize_ref;
#define TPTAG_THRPRQSIZE_REF(x) tptag_thrprqsize_ref, tag_uint_vr(&(x)) #define TPTAG_THRPRQSIZE_REF(x) tptag_thrprqsize_ref, tag_uint_vr(&(x))
TPORT_DLL extern tag_typedef_t tptag_http_connect;
/** Specify that tport can use HTTP connect method. */
#define TPTAG_HTTP_CONNECT(x) tptag_http_connect, tag_str_v((x))
TPORT_DLL extern tag_typedef_t tptag_http_connect_ref;
#define TPTAG_HTTP_CONNECT_REF(x) tptag_http_connect_ref, tag_str_vr(&(x))
SOFIA_END_DECLS SOFIA_END_DECLS
#endif /* !defined TPORT_TAG_H */ #endif /* !defined TPORT_TAG_H */
This diff is collapsed.
...@@ -74,3 +74,4 @@ tag_typedef_t tptag_udp_rmem = UINTTAG_TYPEDEF(udp_rmem); ...@@ -74,3 +74,4 @@ tag_typedef_t tptag_udp_rmem = UINTTAG_TYPEDEF(udp_rmem);
tag_typedef_t tptag_udp_wmem = UINTTAG_TYPEDEF(udp_wmem); tag_typedef_t tptag_udp_wmem = UINTTAG_TYPEDEF(udp_wmem);
tag_typedef_t tptag_thrpsize = UINTTAG_TYPEDEF(thrpsize); tag_typedef_t tptag_thrpsize = UINTTAG_TYPEDEF(thrpsize);
tag_typedef_t tptag_thrprqsize = UINTTAG_TYPEDEF(thrprqsize); tag_typedef_t tptag_thrprqsize = UINTTAG_TYPEDEF(thrprqsize);
tag_typedef_t tptag_http_connect = STRTAG_TYPEDEF(http_connect);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment