comparison sip-out/call_setup.c @ 266:556cd78f750a

sip-out: require explicit routes to made-up N9X area codes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 13 Nov 2023 15:18:09 -0800
parents e4a93ad611f3
children
comparison
equal deleted inserted replaced
265:e4a93ad611f3 266:556cd78f750a
113 no_route_to_dest: reject_mo_call(mncc, msg->callref, 113 no_route_to_dest: reject_mo_call(mncc, msg->callref,
114 GSM48_CAUSE_LOC_PRN_S_LU, 114 GSM48_CAUSE_LOC_PRN_S_LU,
115 GSM48_CC_CAUSE_NO_ROUTE); 115 GSM48_CC_CAUSE_NO_ROUTE);
116 return; 116 return;
117 } 117 }
118 /* made-up N9X area codes require explicit routes */
119 if (msg->called.number[0] == '1' &&
120 msg->called.number[2] == '9' && prefix_len < 4)
121 goto no_route_to_dest;
118 to_sip_user[0] = '+'; 122 to_sip_user[0] = '+';
119 strcpy(to_sip_user+1, msg->called.number); 123 strcpy(to_sip_user+1, msg->called.number);
120 special_rt = 0; 124 special_rt = 0;
121 } else { 125 } else {
122 rc = route_special_number(msg->called.number, &dest, 126 rc = route_special_number(msg->called.number, &dest,