Commit 26ebf935 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Using port 5060 by default.

darcs-hash:20051017155555-65a35-3727c3738df82854fcdc1dc78cede440751af9c1.gz
parent d4940847
...@@ -296,17 +296,23 @@ int ua_init(su_root_t *root, nua_t *nua) ...@@ -296,17 +296,23 @@ int ua_init(su_root_t *root, nua_t *nua)
nua->nua_nta = nta_agent_create(root, NONE, NULL, NULL, nua->nua_nta = nta_agent_create(root, NONE, NULL, NULL,
TPTAG_CERTIFICATE(certificate_dir), TPTAG_CERTIFICATE(certificate_dir),
NTATAG_TAG_3261(0), NTATAG_TAG_3261(0),
TAG_END()); TAG_NEXT(nua->nua_args));
if (!nua->nua_nta) if (!nua->nua_nta)
return -1; return -1;
if (!contact && !sips_contact) if (!contact && !sips_contact) {
contact = URL_STRING_MAKE("sip:*:*"); if (nta_agent_add_tport(nua->nua_nta, NULL,
TAG_NEXT(nua->nua_args)) < 0 &&
if ((!contact || nta_agent_add_tport(nua->nua_nta, URL_STRING_MAKE("sip:*:*"),
nta_agent_add_tport(nua->nua_nta, contact, TAG_END()) < 0) && TAG_NEXT(nua->nua_args)) < 0)
return -1;
}
else if ((!contact ||
nta_agent_add_tport(nua->nua_nta, contact,
TAG_NEXT(nua->nua_args)) < 0) &&
(!sips_contact || (!sips_contact ||
nta_agent_add_tport(nua->nua_nta, sips_contact, TAG_END()) < 0)) { nta_agent_add_tport(nua->nua_nta, sips_contact,
TAG_NEXT(nua->nua_args)) < 0)) {
return -1; return -1;
} }
......
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