FreeCalypso > hg > themwi-system-sw
comparison sip-out/call_setup.c @ 265:e4a93ad611f3
liboutrt: add prefix length output arg to route_e164_number()
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 13 Nov 2023 15:09:10 -0800 |
parents | 9f96e5b14755 |
children | 556cd78f750a |
comparison
equal
deleted
inserted
replaced
264:cdc807117841 | 265:e4a93ad611f3 |
---|---|
56 { | 56 { |
57 struct call *call; | 57 struct call *call; |
58 struct sip_out_dest *dest; | 58 struct sip_out_dest *dest; |
59 struct special_num_route *special_rt; | 59 struct special_num_route *special_rt; |
60 char to_sip_user[MAX_SIP_USER_PART+1]; | 60 char to_sip_user[MAX_SIP_USER_PART+1]; |
61 int rc; | 61 int rc, prefix_len; |
62 | 62 |
63 if (msglen != sizeof(struct gsm_mncc)) { | 63 if (msglen != sizeof(struct gsm_mncc)) { |
64 syslog(LOG_CRIT, | 64 syslog(LOG_CRIT, |
65 "FATAL: Rx MNCC_SETUP_IND has wrong length"); | 65 "FATAL: Rx MNCC_SETUP_IND has wrong length"); |
66 exit(1); | 66 exit(1); |
106 GSM48_CAUSE_LOC_PRN_S_LU, | 106 GSM48_CAUSE_LOC_PRN_S_LU, |
107 GSM48_CC_CAUSE_OP_DET_BARRING); | 107 GSM48_CC_CAUSE_OP_DET_BARRING); |
108 return; | 108 return; |
109 } | 109 } |
110 } | 110 } |
111 rc = route_e164_number(msg->called.number, &dest); | 111 rc = route_e164_number(msg->called.number, &dest, &prefix_len); |
112 if (!rc) { | 112 if (!rc) { |
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; |