Browse code

uac: remove old unused #ifdef UAC_OLD_AUTH, related to extension in 2011

Henning Westerholt authored on 09/08/2019 12:54:23
Showing 1 changed files
... ...
@@ -808,11 +808,6 @@ int uac_reg_tmdlg(dlg_t *tmdlg, sip_msg_t *rpl)
808 808
 	if (get_from(rpl)->tag_value.len) {
809 809
 		tmdlg->id.loc_tag = get_from(rpl)->tag_value;
810 810
 	}
811
-#if 0
812
-	if (get_to(rpl)->tag_value.len) {
813
-		tmdlg->id.rem_tag = get_to(rpl)->tag_value;
814
-	}
815
-#endif
816 811
 	tmdlg->loc_uri = get_from(rpl)->uri;
817 812
 	tmdlg->rem_uri = get_to(rpl)->uri;
818 813
 	tmdlg->state= DLG_CONFIRMED;
... ...
@@ -834,10 +829,6 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
834 829
 	struct uac_credential cred;
835 830
 	char  b_ruri[MAX_URI_SIZE];
836 831
 	str   s_ruri;
837
-#ifdef UAC_OLD_AUTH
838
-	char  b_turi[MAX_URI_SIZE];
839
-	str   s_turi;
840
-#endif
841 832
 	char  b_hdrs[MAX_UACH_SIZE];
842 833
 	str   s_hdrs;
843 834
 	uac_req_t uac_r;
... ...
@@ -979,12 +970,6 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
979 970
 			goto error;
980 971
 		}
981 972
 
982
-#ifdef UAC_OLD_AUTH
983
-		snprintf(b_turi, MAX_URI_SIZE, "sip:%.*s@%.*s",
984
-				ri->r_username.len, ri->r_username.s,
985
-				ri->r_domain.len, ri->r_domain.s);
986
-		s_turi.s = b_turi; s_turi.len = strlen(s_turi.s);
987
-#endif
988 973
 		snprintf(b_hdrs, MAX_UACH_SIZE,
989 974
 				"Contact: <sip:%.*s@%.*s>\r\n"
990 975
 				"Expires: %d\r\n"
... ...
@@ -1013,18 +998,6 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
1013 998
 		uac_r.cb  = uac_reg_tm_callback;
1014 999
 		/* Callback parameter */
1015 1000
 		uac_r.cbp = (void*)uuid;
1016
-#ifdef UAC_OLD_AUTH
1017
-		/* default socket */
1018
-		if(uac_default_socket.s != NULL && uac_default_socket.len > 0) {
1019
-			uac_r.ssock = &uac_default_socket;
1020
-		}
1021
-		ret = uac_tmb.t_request(&uac_r,  /* UAC Req */
1022
-				&s_ruri, /* Request-URI */
1023
-				&s_turi, /* To */
1024
-				&s_turi, /* From */
1025
-				(ri->auth_proxy.len)?&ri->auth_proxy:NULL /* outbound uri */
1026
-				);
1027
-#endif
1028 1001
 		ret = uac_tmb.t_request_within(&uac_r);
1029 1002
 
1030 1003
 		if(ret<0) {