Osmo-CC: Fixed routing in screen tables

This commit is contained in:
Andreas Eversberg 2022-07-04 21:12:39 +02:00
parent 5335795759
commit a34ffda422
1 changed files with 3 additions and 2 deletions

View File

@ -512,7 +512,8 @@ static int osmo_cc_screen(const char *what, osmo_cc_screen_list_t *list, uint8_t
continue; continue;
/* '@' means to stop and return routing also */ /* '@' means to stop and return routing also */
} else if (list->to[i] == SCREEN_AT) { } else if (list->to[i] == SCREEN_AT) {
*routing_p = &list->to[i + 1]; if (routing_p)
*routing_p = &list->to[i + 1];
break; break;
} }
/* copy output digit */ /* copy output digit */
@ -549,7 +550,7 @@ static int osmo_cc_screen(const char *what, osmo_cc_screen_list_t *list, uint8_t
PDEBUG(DCC, DEBUG_INFO, " -> present = restricted\n"); PDEBUG(DCC, DEBUG_INFO, " -> present = restricted\n");
break; break;
} }
if (*routing_p && **routing_p) if (routing_p && *routing_p)
PDEBUG(DCC, DEBUG_INFO, " -> remote = %s\n", *routing_p); PDEBUG(DCC, DEBUG_INFO, " -> remote = %s\n", *routing_p);
return 0; return 0;