Module: kamailio Branch: master Commit: b038de70ffdde8d2179f49edc574afca62e41638 URL: https://github.com/kamailio/kamailio/commit/b038de70ffdde8d2179f49edc574afca...
Author: Henning Westerholt hw@skalatan.de Committer: Henning Westerholt hw@skalatan.de Date: 2019-08-09T14:54:23+02:00
uac: remove old unused #ifdef UAC_OLD_AUTH, related to extension in 2011
---
Modified: src/modules/uac/uac_reg.c
---
Diff: https://github.com/kamailio/kamailio/commit/b038de70ffdde8d2179f49edc574afca... Patch: https://github.com/kamailio/kamailio/commit/b038de70ffdde8d2179f49edc574afca...
---
diff --git a/src/modules/uac/uac_reg.c b/src/modules/uac/uac_reg.c index 0e3cc65165..c19d758630 100644 --- a/src/modules/uac/uac_reg.c +++ b/src/modules/uac/uac_reg.c @@ -808,11 +808,6 @@ int uac_reg_tmdlg(dlg_t *tmdlg, sip_msg_t *rpl) if (get_from(rpl)->tag_value.len) { tmdlg->id.loc_tag = get_from(rpl)->tag_value; } -#if 0 - if (get_to(rpl)->tag_value.len) { - tmdlg->id.rem_tag = get_to(rpl)->tag_value; - } -#endif tmdlg->loc_uri = get_from(rpl)->uri; tmdlg->rem_uri = get_to(rpl)->uri; tmdlg->state= DLG_CONFIRMED; @@ -834,10 +829,6 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps) struct uac_credential cred; char b_ruri[MAX_URI_SIZE]; str s_ruri; -#ifdef UAC_OLD_AUTH - char b_turi[MAX_URI_SIZE]; - str s_turi; -#endif char b_hdrs[MAX_UACH_SIZE]; str s_hdrs; uac_req_t uac_r; @@ -979,12 +970,6 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps) goto error; }
-#ifdef UAC_OLD_AUTH - snprintf(b_turi, MAX_URI_SIZE, "sip:%.*s@%.*s", - ri->r_username.len, ri->r_username.s, - ri->r_domain.len, ri->r_domain.s); - s_turi.s = b_turi; s_turi.len = strlen(s_turi.s); -#endif snprintf(b_hdrs, MAX_UACH_SIZE, "Contact: sip:%.*s@%.*s\r\n" "Expires: %d\r\n" @@ -1013,18 +998,6 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps) uac_r.cb = uac_reg_tm_callback; /* Callback parameter */ uac_r.cbp = (void*)uuid; -#ifdef UAC_OLD_AUTH - /* default socket */ - if(uac_default_socket.s != NULL && uac_default_socket.len > 0) { - uac_r.ssock = &uac_default_socket; - } - ret = uac_tmb.t_request(&uac_r, /* UAC Req */ - &s_ruri, /* Request-URI */ - &s_turi, /* To */ - &s_turi, /* From */ - (ri->auth_proxy.len)?&ri->auth_proxy:NULL /* outbound uri */ - ); -#endif ret = uac_tmb.t_request_within(&uac_r);
if(ret<0) {