Аналоговый SIP-адаптер для SIP-телефонии Укртелекома

Тема в разделе "IT-раздел", создана пользователем VIPOS, 4 авг 2017.

  1. VIPOS
    Здравствуйте!

    Я купил аналоговый SIP-адаптер Cisco ATA 186 I1-A, настроил для работы с SIP-телефонией Укртелекома.

    Напишите, пожалуйста, как настроить DialPlan, чтобы можно было набирать без задержки номера из 3 цифр (101, 102, 103, 104), из 7 цифр (2******, 3******, 4******, 5******), номера из 10 цифр (0800, мобильные, межгород).

    В инструкции написано, что это можно реализовать в DialPlan:

    Dial Plan Examples

    This section contains three dial plan examples that use many different rules and commands.

    Dial Plan Example 1 (Default Dial Plan)

    The following dial plan:
    *St4-|#St4-|911|1>#t8.r9t2-|0>#t811.rat4-|^1t4>#.-
    consists of the following rules:
    • *St4-—If the first digit entered is *, all other dial plan rules are voided. Additional digits can be
    entered after the initial * digit, and the timeout before automatic dial string send is four seconds.
    • #St4—Same as above, except with # as the initial digit entered.
    • 911—If the dial string 911 is entered, send it immediately.
    • 1>#t8.r9t2—If the first digit entered is 1, the timeout before automatic send is eight seconds. The
    terminating character # can be entered at any time to manually send the dial string. After the 11th
    digit is entered, the timeout before an automatic send changes to two seconds. The user can enter
    more digits until the dial string is sent by the timeout or by the user entering the # character.
    • 0>#t811.rat4—If the first digit entered is 0, the timeout before automatic send is eight seconds, and
    the terminating character # can be entered at any time to manually send the dial string. If the first
    three digits entered are 011, then, after an additional 11 digits are entered, the timeout before an
    automatic send changes to four seconds. The user can enter more digits until the dial string is sent
    by the timeout or by the user entering the # character.
    • ^1t4>#.—If the first digit entered is anything other than 1, the timeout before an automatic send is
    four seconds. The terminating character # can be entered at any time to manually send the dial string.
    The user can enter more digits until the dial string is sent by the timeout or by the user entering the
    # character.


    Dial Plan Example 2


    The following dial plans:
    .t7>#......t4-|911|1t7>#..........t1-|0t4>#.t7-
    or
    .t7>#r6t4-|911|1t7>#.r9t1-|0t4>#.t7-
    consist of the following rules:

    • .t7>#r6t4-
    —You must enter at least one digit. After the first digit is entered and matched by the dial
    plan, the timeout before an automatic send is seven seconds, and the terminating character # can be
    entered at any time to manually send the dial string. After seven digits are entered, the timeout
    before an automatic send changes to two seconds. The - symbol at the end of the rule allows further
    digits to be entered until the dial string is sent by the timeout or the user entering the # character.
    • 911—If the dial string 911 is entered, send this string immediately.
    • 1t7>#.r9t1—If the first digit entered is 1, the timeout before an automatic send is seven seconds,
    and the terminating character # can be entered at any time to manually send the dial string. After the
    11th digit is entered, the timeout before an automatic send changes to one second. The user can enter
    more digits until the dial string is sent by the timeout or by the user entering the # character.
    • 0t4>#.t7—If the first digit entered is 0, the timeout before an automatic send is four seconds, and
    the terminating character # can be entered at any time to manually send the dial string. After the
    second digit is entered, the timeout before an automatic send changes to seven seconds. The user
    can enter more digits until the dial string is sent by the timeout or by the user entering the #
    character.


    Dial Plan Example 3

    The following dial plan:
    R1408([2_9].r5|[2_9].r6)|R9^(911|.r4)|X(1900|1888)|F011
    consists of the following rules:

    • R1408([2_9].r5|[2_9].r6)
    —The prefix 1408 will be added to any call numbers with seven or eight
    digits where the leading digit is in the range of 2 to 9. For example, 5551234 will become
    14085551234, but 555123 does not match this rule.
    • R9^(911|.r4)— The prefix 9 will added to any numbers except 911 and five-digit numbers. For
    example, 911 will still be 911, and 51234 will still be 51234.
    • X(1900|1888)— There will be no calls or call forwarding to numbers beginning with 1900 or 1888.
    • F011—There will be no call forwarding to numbers beginning with 011.
    In Dial Plan Example 3, there are two ‘R’ rules, so the first matched rule is triggered. Therefore, 5551234
    becomes 14085551234. However, 555123 will then become 9555123 because it matches the second rule.
     
  2. andyz

    из собственной практики замечу, что лучше сразу привыкать к общепринятой практике: выход в "город" -- через девятку, внутренние номера -- напрямую

    потому что с ростом компании очень быстро традиционной внутренней нумерации на "1хх" (101, 102, 103 и т.д.) может не хватить и тогда начинается задействование следующего якобы свободного номерного плана -- "3хх" (301, 302, 303, и т.д.)

    и вот тут нас ожидает засада, потому что у операторов CDMA и разных прочих проводных не-Укртелекомов номера как раз на "тройку" -- и вот тут начинается геморрой

    поэтому лучше сразу к прямому набору не привыкать :)
     

Поделиться этой страницей