fix: restore notify init + Plivo numbers (#846) (thanks @vrknetha)

This commit is contained in:
Peter Steinberger
2026-01-15 07:28:14 +00:00
parent 2579609922
commit 3e6917c8ae
4 changed files with 40 additions and 32 deletions

View File

@@ -404,7 +404,7 @@ export class PlivoProvider implements VoiceCallProvider {
private static normalizeNumber(numberOrSip: string): string {
const trimmed = numberOrSip.trim();
if (trimmed.toLowerCase().startsWith("sip:")) return trimmed;
return trimmed.startsWith("+") ? trimmed.slice(1) : trimmed;
return trimmed.replace(/[^\d+]/g, "");
}
private static xmlEmpty(): string {