• דף הבית
    • אינדקס קישורים
    • פוסטים אחרונים
    • משתמשים
    • חיפוש בהגדרות המתקדמות
    • חיפוש גוגל בפורום
    • ניהול המערכת
    • ניהול המערכת - שרת private
    • הרשמה
    • התחברות

    ממשק להגדרת "מספר אישי" (Routing Yemot) בקליק אחד! 🚀💎

    מתוזמן נעוץ נעול הועבר טיפים עצות והדגמות מהמשתמשים
    4 פוסטים 3 כותבים 74 צפיות 1 עוקבים
    טוען פוסטים נוספים
    • מהישן לחדש
    • מהחדש לישן
    • הכי הרבה הצבעות
    תגובה
    • תגובה כנושא
    התחברו כדי לפרסם תגובה
    נושא זה נמחק. רק משתמשים עם הרשאות מתאימות יוכלו לצפות בו.
    • ל מנותק
      לימוד בתורת מרן
      נערך לאחרונה על ידי לימוד בתורת מרן

      שלום לכל התותחים בפורום! 👋

      הרבה פעמים אנחנו רוצים לתת למשתמשים (או לעצמנו) אפשרות להגדיר שלוחת ניתוב למערכת אחרת בצורה פשוטה, בלי להיכנס לאתר הניהול המורכב. 🛠️

      בניתי עבורכם קוד HTML מעוצב בסגנון Glassmorphism (זכוכית מודרנית) יוקרתי, שמאפשר להגדיר שלוחה ראשית כניתוב "מספר אישי" בצורה חלקה! ✨

      מה הממשק יודע לעשות? 🧐
      ✅ עיצוב מפואר ורספונסיבי (מתאים גם לנייד).
      ✅ הגדרה אוטומטית של השלוחה הראשית (/) כסוג routing_yemot.
      ✅ אימות מול ה-API של ימות המשיח.
      ✅ פידבק בעברית: במקום לקבל הודעת שגיאה באנגלית או JSON מפחיד, המשתמש מקבל הודעה ברורה: "הוגדר בהצלחה" או "סיסמה שגויה". 🇮🇱

      איך משתמשים? 📝

      1. מעתיקים את הקוד לפנקס רשימות.

      2. שומרים בשם יצירת מספר אישי.html.

      3. פותחים בדפדפן ונהנים!

      <!DOCTYPE html>
      <html lang="he" dir="rtl">
      <head>
          <meta charset="UTF-8">
          <title>הגדרת מספר אישי</title>
          <style>
              body {
                  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                  background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
                  height: 100vh;
                  display: flex;
                  justify-content: center;
                  align-items: center;
                  margin: 0;
                  color: #fff;
              }
              .container {
                  background: rgba(255, 255, 255, 0.1);
                  backdrop-filter: blur(15px);
                  padding: 40px;
                  border-radius: 25px;
                  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
                  width: 380px;
                  border: 1px solid rgba(255, 255, 255, 0.1);
                  text-align: center;
              }
              h2 { margin-bottom: 30px; font-weight: 300; letter-spacing: 1px; }
              input {
                  width: 100%;
                  padding: 14px;
                  margin: 12px 0;
                  border: none;
                  border-radius: 12px;
                  background: rgba(255, 255, 255, 0.05);
                  color: #fff;
                  font-size: 16px;
                  border: 1px solid rgba(255, 255, 255, 0.2);
                  transition: 0.3s;
                  box-sizing: border-box;
              }
              input:focus {
                  outline: none;
                  background: rgba(255, 255, 255, 0.15);
                  border-color: #00d2ff;
              }
              button {
                  width: 100%;
                  padding: 15px;
                  margin-top: 25px;
                  border: none;
                  border-radius: 12px;
                  background: linear-gradient(to right, #00d2ff, #3a7bd5);
                  color: white;
                  font-size: 18px;
                  font-weight: bold;
                  cursor: pointer;
                  transition: transform 0.2s, box-shadow 0.3s;
              }
              button:hover {
                  transform: translateY(-2px);
                  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.4);
              }
              #status {
                  margin-top: 25px;
                  font-size: 14px;
                  font-weight: bold;
                  min-height: 20px;
              }
              .success { color: #00ffcc; }
              .error { color: #ff6666; }
          </style>
      </head>
      <body>
      
      <div class="container">
          <h2>הגדרת מספר אישי</h2>
          <input type="text" id="systemNum" placeholder="מספר מערכת">
          <input type="password" id="password" placeholder="סיסמת ניהול">
          <button onclick="setupRouting()">הגדר על שלוחה ראשית</button>
          <div id="status"></div>
      </div>
      
      <script>
          async function setupRouting() {
              const num = document.getElementById('systemNum').value;
              const pass = document.getElementById('password').value;
              const statusDiv = document.getElementById('status');
      
              if (!num || !pass) {
                  alert('אנא הזן מספר מערכת וסיסמה');
                  return;
              }
      
              statusDiv.innerText = 'מבצע הגדרה, נא להמתין...';
              statusDiv.className = '';
      
              const url = `https://www.call2all.co.il/ym/api/UpdateExtension?token=${num}:${pass}&path=ivr2:/&type=routing_yemot&routing_yemot_number=${num}`;
      
              try {
                  const response = await fetch(url);
                  const data = await response.json();
      
                  if (data.responseStatus === 'OK') {
                      statusDiv.className = 'success';
                      statusDiv.innerText = `הוגדר בהצלחה מספר אישי למערכת ומספר המערכת: ${num}`;
                  } else {
                      statusDiv.className = 'error';
                      // כאן מוגדר המלל בעברית במקרה של שגיאת התחברות (סיסמה שגויה וכד')
                      statusDiv.innerText = `לא ניתן להגדיר מספר אישי למערכת ${num}: סיסמה או מספר שגויים`;
                  }
              } catch (error) {
                  statusDiv.className = 'error';
                  statusDiv.innerText = 'שגיאת תקשורת: ודא שיש חיבור אינטרנט תקין';
              }
          }
      </script>
      
      </body>
      </html>
      
      י פ 2 תגובות תגובה אחרונה תגובה ציטוט 3
      • ל לימוד בתורת מרן התייחס לנושא זה
      • י מנותק
        יעקב יצחק @לימוד בתורת מרן
        נערך לאחרונה על ידי

        @לימוד-בתורת-מרן הוספתי אפשרות אישור באנטר (במקום דווקא בכפתור "הגדר על שלוחה ראשית"):

        <!DOCTYPE html>
        <html lang="he" dir="rtl">
        <head>
            <meta charset="UTF-8">
            <title>הגדרת מספר אישי</title>
            <style>
                body {
                    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                    background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
                    height: 100vh;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    margin: 0;
                    color: #fff;
                }
                .container {
                    background: rgba(255, 255, 255, 0.1);
                    backdrop-filter: blur(15px);
                    padding: 40px;
                    border-radius: 25px;
                    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
                    width: 380px;
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    text-align: center;
                }
                h2 { margin-bottom: 30px; font-weight: 300; letter-spacing: 1px; }
                label {
                    display: block;
                    text-align: right;
                    font-size: 13px;
                    opacity: 0.8;
                    margin: 10px 2px 2px;
                }
                input {
                    width: 100%;
                    padding: 14px;
                    margin: 4px 0;
                    border: none;
                    border-radius: 12px;
                    background: rgba(255, 255, 255, 0.05);
                    color: #fff;
                    font-size: 16px;
                    border: 1px solid rgba(255, 255, 255, 0.2);
                    transition: 0.3s;
                    box-sizing: border-box;
                }
                input:focus {
                    outline: none;
                    background: rgba(255, 255, 255, 0.15);
                    border-color: #00d2ff;
                }
                button {
                    width: 100%;
                    padding: 15px;
                    margin-top: 25px;
                    border: none;
                    border-radius: 12px;
                    background: linear-gradient(to right, #00d2ff, #3a7bd5);
                    color: white;
                    font-size: 18px;
                    font-weight: bold;
                    cursor: pointer;
                    transition: transform 0.2s, box-shadow 0.3s, opacity 0.2s;
                }
                button:hover:not(:disabled) {
                    transform: translateY(-2px);
                    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.4);
                }
                button:disabled {
                    opacity: 0.6;
                    cursor: not-allowed;
                    transform: none;
                    box-shadow: none;
                }
                #status {
                    margin-top: 25px;
                    font-size: 14px;
                    font-weight: bold;
                    min-height: 20px;
                }
                .success { color: #00ffcc; }
                .error { color: #ff6666; }
            </style>
        </head>
        <body>
        
        <div class="container">
            <h2>הגדרת מספר אישי</h2>
        
            <label for="systemNum">מספר מערכת</label>
            <input type="text" id="systemNum" placeholder="מספר מערכת" inputmode="numeric" autocomplete="off">
        
            <label for="password">סיסמת ניהול</label>
            <input type="password" id="password" placeholder="סיסמת ניהול" autocomplete="current-password">
        
            <button id="submitBtn" onclick="setupRouting()">הגדר על שלוחה ראשית</button>
            <div id="status" role="status" aria-live="polite"></div>
        </div>
        
        <script>
            const numInput = document.getElementById('systemNum');
            const passInput = document.getElementById('password');
            const submitBtn = document.getElementById('submitBtn');
            const statusDiv = document.getElementById('status');
        
            // אפשר גם לשלוח עם Enter מתוך שדה הסיסמה, לא רק בלחיצה על הכפתור
            passInput.addEventListener('keydown', (e) => {
                if (e.key === 'Enter') setupRouting();
            });
        
            async function setupRouting() {
                const num = numInput.value.trim();
                const pass = passInput.value;
        
                if (!num || !pass) {
                    statusDiv.className = 'error';
                    statusDiv.innerText = 'אנא הזן מספר מערכת וסיסמה';
                    return;
                }
        
                submitBtn.disabled = true;
                statusDiv.className = '';
                statusDiv.innerText = 'מבצע הגדרה, נא להמתין...';
        
                // קידוד תקין של כל פרמטר בנפרד - מונע שבירת הכתובת אם הסיסמה/המספר
                // מכילים תווים מיוחדים כמו & # % + : וכד'.
                const params = new URLSearchParams({
                    token: `${num}:${pass}`,
                    path: 'ivr2:/',
                    type: 'routing_yemot',
                    routing_yemot_number: num
                });
                const url = `https://www.call2all.co.il/ym/api/UpdateExtension?${params.toString()}`;
        
                try {
                    const response = await fetch(url);
        
                    let data;
                    try {
                        data = await response.json();
                    } catch (parseErr) {
                        statusDiv.className = 'error';
                        statusDiv.innerText = 'התקבלה תשובה לא תקינה מהשרת';
                        return;
                    }
        
                    if (response.ok && data.responseStatus === 'OK') {
                        statusDiv.className = 'success';
                        statusDiv.innerText = `הוגדר בהצלחה מספר אישי למערכת ומספר המערכת: ${num}`;
                    } else {
                        statusDiv.className = 'error';
                        statusDiv.innerText = `לא ניתן להגדיר מספר אישי למערכת ${num}: סיסמה או מספר שגויים`;
                    }
                } catch (error) {
                    statusDiv.className = 'error';
                    statusDiv.innerText = 'שגיאת תקשורת: ודא שיש חיבור אינטרנט תקין';
                } finally {
                    submitBtn.disabled = false;
                }
            }
        </script>
        
        </body>
        </html>
        
        ל תגובה 1 תגובה אחרונה תגובה ציטוט 2
        • פ מנותק
          פיתה @לימוד בתורת מרן
          נערך לאחרונה על ידי

          @לימוד-בתורת-מרן
          מושלם!

          תגובה 1 תגובה אחרונה תגובה ציטוט 1
          • י יעקב יצחק התייחס לנושא זה
          • ל מנותק
            לימוד בתורת מרן @יעקב יצחק
            נערך לאחרונה על ידי

            @יעקב-יצחק כתב:

            @לימוד-בתורת-מרן הוספתי אפשרות אישור באנטר (במקום דווקא בכפתור "הגדר על שלוחה ראשית"):

            <!DOCTYPE html>
            <html lang="he" dir="rtl">
            <head>
                <meta charset="UTF-8">
                <title>הגדרת מספר אישי</title>
                <style>
                    body {
                        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                        background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
                        height: 100vh;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin: 0;
                        color: #fff;
                    }
                    .container {
                        background: rgba(255, 255, 255, 0.1);
                        backdrop-filter: blur(15px);
                        padding: 40px;
                        border-radius: 25px;
                        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
                        width: 380px;
                        border: 1px solid rgba(255, 255, 255, 0.1);
                        text-align: center;
                    }
                    h2 { margin-bottom: 30px; font-weight: 300; letter-spacing: 1px; }
                    label {
                        display: block;
                        text-align: right;
                        font-size: 13px;
                        opacity: 0.8;
                        margin: 10px 2px 2px;
                    }
                    input {
                        width: 100%;
                        padding: 14px;
                        margin: 4px 0;
                        border: none;
                        border-radius: 12px;
                        background: rgba(255, 255, 255, 0.05);
                        color: #fff;
                        font-size: 16px;
                        border: 1px solid rgba(255, 255, 255, 0.2);
                        transition: 0.3s;
                        box-sizing: border-box;
                    }
                    input:focus {
                        outline: none;
                        background: rgba(255, 255, 255, 0.15);
                        border-color: #00d2ff;
                    }
                    button {
                        width: 100%;
                        padding: 15px;
                        margin-top: 25px;
                        border: none;
                        border-radius: 12px;
                        background: linear-gradient(to right, #00d2ff, #3a7bd5);
                        color: white;
                        font-size: 18px;
                        font-weight: bold;
                        cursor: pointer;
                        transition: transform 0.2s, box-shadow 0.3s, opacity 0.2s;
                    }
                    button:hover:not(:disabled) {
                        transform: translateY(-2px);
                        box-shadow: 0 10px 20px rgba(0, 210, 255, 0.4);
                    }
                    button:disabled {
                        opacity: 0.6;
                        cursor: not-allowed;
                        transform: none;
                        box-shadow: none;
                    }
                    #status {
                        margin-top: 25px;
                        font-size: 14px;
                        font-weight: bold;
                        min-height: 20px;
                    }
                    .success { color: #00ffcc; }
                    .error { color: #ff6666; }
                </style>
            </head>
            <body>
            
            <div class="container">
                <h2>הגדרת מספר אישי</h2>
            
                <label for="systemNum">מספר מערכת</label>
                <input type="text" id="systemNum" placeholder="מספר מערכת" inputmode="numeric" autocomplete="off">
            
                <label for="password">סיסמת ניהול</label>
                <input type="password" id="password" placeholder="סיסמת ניהול" autocomplete="current-password">
            
                <button id="submitBtn" onclick="setupRouting()">הגדר על שלוחה ראשית</button>
                <div id="status" role="status" aria-live="polite"></div>
            </div>
            
            <script>
                const numInput = document.getElementById('systemNum');
                const passInput = document.getElementById('password');
                const submitBtn = document.getElementById('submitBtn');
                const statusDiv = document.getElementById('status');
            
                // אפשר גם לשלוח עם Enter מתוך שדה הסיסמה, לא רק בלחיצה על הכפתור
                passInput.addEventListener('keydown', (e) => {
                    if (e.key === 'Enter') setupRouting();
                });
            
                async function setupRouting() {
                    const num = numInput.value.trim();
                    const pass = passInput.value;
            
                    if (!num || !pass) {
                        statusDiv.className = 'error';
                        statusDiv.innerText = 'אנא הזן מספר מערכת וסיסמה';
                        return;
                    }
            
                    submitBtn.disabled = true;
                    statusDiv.className = '';
                    statusDiv.innerText = 'מבצע הגדרה, נא להמתין...';
            
                    // קידוד תקין של כל פרמטר בנפרד - מונע שבירת הכתובת אם הסיסמה/המספר
                    // מכילים תווים מיוחדים כמו & # % + : וכד'.
                    const params = new URLSearchParams({
                        token: `${num}:${pass}`,
                        path: 'ivr2:/',
                        type: 'routing_yemot',
                        routing_yemot_number: num
                    });
                    const url = `https://www.call2all.co.il/ym/api/UpdateExtension?${params.toString()}`;
            
                    try {
                        const response = await fetch(url);
            
                        let data;
                        try {
                            data = await response.json();
                        } catch (parseErr) {
                            statusDiv.className = 'error';
                            statusDiv.innerText = 'התקבלה תשובה לא תקינה מהשרת';
                            return;
                        }
            
                        if (response.ok && data.responseStatus === 'OK') {
                            statusDiv.className = 'success';
                            statusDiv.innerText = `הוגדר בהצלחה מספר אישי למערכת ומספר המערכת: ${num}`;
                        } else {
                            statusDiv.className = 'error';
                            statusDiv.innerText = `לא ניתן להגדיר מספר אישי למערכת ${num}: סיסמה או מספר שגויים`;
                        }
                    } catch (error) {
                        statusDiv.className = 'error';
                        statusDiv.innerText = 'שגיאת תקשורת: ודא שיש חיבור אינטרנט תקין';
                    } finally {
                        submitBtn.disabled = false;
                    }
                }
            </script>
            
            </body>
            </html>
            

            כן אחרי זה ראיתי בלילה אבל אין בזה מה לשנות שיהי כתוב כך אין הבדל

            תגובה 1 תגובה אחרונה תגובה ציטוט 0

            שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.

            נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.

            בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗

            הרשמה התחברות
            • פוסט ראשון
              פוסט אחרון