Calls from foreign numbers to local DISAs in any country do not pass verification, since it's done against the number as if it were local.
Such calls should probably be verified in a more robust number, and assigned the appropriate code (either 90 or the appropriate N0 specific one if applicable). 30 may not make sense, for example, if the call came through a US DISA, but the number is not a NANPA number. 40 or 90 might, if it were a UK number, for example.
One issue here is the current verification code (both dialplan and app_verify
) both assume the call originates from the country of the first DISA called, which may not be the case. This only applies within the PSTN subset of calls, not other networks, so we should probably have special handling for PSTN. The subroutines used for lookups are allowed to return anything, so we could simply put all the matches in one giant subroutine, or have some kind of fallback strategy.
You must be