VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Синхронизация по PRI

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

overGlosser
Сообщения: 6
Зарегистрирован: 02 дек 2022, 12:42

Синхронизация по PRI

Сообщение overGlosser »

Добрый день.
Пытаюсь настроить подключение по Е1 (Ростелеком) на следующем железе и софте:
DAHDI-карта: Parabel Quasar-M
FreePBX 14.0.16.13
Asterisk 13.38.3
CentOS 7.8 / ядро 3.10.0-1127.19.1.el7.x86_64

Скомпилировал и установил последнюю сборку драйверов от Парабел dahdi_2.11.1+2.11.1-parabel_2.11.1.11
Карта стала распознаваться. Произвел базовую настройку для подключения Е1

/etc/dahdi/system.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
span=1,1,0,CCS,HDB3
span=2,0,0,CCS,HDB3
bchan=1-15,17-31,32-46,48-62
dchan=16,47
loadzone=ru
defaultzone=ru
/etc/asterisk/chan_dahdi.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[general]

; generated by module
#include chan_dahdi_general.conf

; for user additions not provided by module
#include chan_dahdi_general_custom.conf

[channels]
language=ru
busydetect=yes
busycount=10
usecallerid=no
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0
callwaitingcallerid=yes
canpark=yes
overlapdial=yes

; for user additions not provided by module
#include chan_dahdi_channels_custom.conf
/etc/asterisk/chan_dahdi_channels_custom.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
; [span_1]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=national
group=1
context=from-digital
channel=>1-15,17-31


; [span_2]
signalling=pri_net
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=national
group=2
context=from-internal
channel=>32-46,48-62

dahdi_tool показывает статус линии ОК

freepbx*CLI> module load chan_dahdi.so
freepbx*CLI> module unload chan_dahdi.so
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Loaded chan_dahdi.so
== Registered bridge technology native_dahdi
== Registered application 'DAHDISendKeypadFacility'
== Registered application 'DAHDISendCallreroutingFacility'
-- Registered channel 1, ISDN PRI signalling
-- Registered channel 2, ISDN PRI signalling
-- Registered channel 3, ISDN PRI signalling
-- Registered channel 4, ISDN PRI signalling
-- Registered channel 5, ISDN PRI signalling
-- Registered channel 6, ISDN PRI signalling
-- Registered channel 7, ISDN PRI signalling
-- Registered channel 8, ISDN PRI signalling
-- Registered channel 9, ISDN PRI signalling
-- Registered channel 10, ISDN PRI signalling
-- Registered channel 11, ISDN PRI signalling
-- Registered channel 12, ISDN PRI signalling
-- Registered channel 13, ISDN PRI signalling
-- Registered channel 14, ISDN PRI signalling
-- Registered channel 15, ISDN PRI signalling
-- Registered channel 17, ISDN PRI signalling
-- Registered channel 18, ISDN PRI signalling
-- Registered channel 19, ISDN PRI signalling
-- Registered channel 20, ISDN PRI signalling
-- Registered channel 21, ISDN PRI signalling
-- Registered channel 22, ISDN PRI signalling
-- Registered channel 23, ISDN PRI signalling
-- Registered channel 24, ISDN PRI signalling
-- Registered channel 25, ISDN PRI signalling
-- Registered channel 26, ISDN PRI signalling
-- Registered channel 27, ISDN PRI signalling
-- Registered channel 28, ISDN PRI signalling
-- Registered channel 29, ISDN PRI signalling
-- Registered channel 30, ISDN PRI signalling
-- Registered channel 31, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 32: Red Alarm
-- Registered channel 32, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 33: Red Alarm
-- Registered channel 33, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 34: Red Alarm
-- Registered channel 34, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 35: Red Alarm
-- Registered channel 35, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 36: Red Alarm
-- Registered channel 36, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 37: Red Alarm
-- Registered channel 37, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 38: Red Alarm
-- Registered channel 38, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 39: Red Alarm
-- Registered channel 39, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 40: Red Alarm
-- Registered channel 40, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 41: Red Alarm
-- Registered channel 41, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 42: Red Alarm
-- Registered channel 42, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 43: Red Alarm
-- Registered channel 43, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 44: Red Alarm
-- Registered channel 44, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 45: Red Alarm
-- Registered channel 45, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 46: Red Alarm
-- Registered channel 46, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 48: Red Alarm
-- Registered channel 48, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 49: Red Alarm
-- Registered channel 49, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 50: Red Alarm
-- Registered channel 50, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 51: Red Alarm
-- Registered channel 51, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 52: Red Alarm
-- Registered channel 52, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 53: Red Alarm
-- Registered channel 53, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 54: Red Alarm
-- Registered channel 54, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 55: Red Alarm
-- Registered channel 55, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 56: Red Alarm
-- Registered channel 56, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 57: Red Alarm
-- Registered channel 57, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 58: Red Alarm
-- Registered channel 58, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 59: Red Alarm
-- Registered channel 59, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 60: Red Alarm
-- Registered channel 60, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 61: Red Alarm
-- Registered channel 61, ISDN PRI signalling
[2022-12-02 11:25:01] WARNING[31996]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 62: Red Alarm
-- Registered channel 62, ISDN PRI signalling
-- Automatically generated pseudo channel
== Starting D-Channel on span 1
== Starting D-Channel on span 2
== Registered channel type 'DAHDI' (DAHDI Telephony w/PRI & SS7 & MFC/R2)
== Registered application 'DAHDIAcceptR2Call'
== Manager registered action DAHDITransfer
== Manager registered action DAHDIHangup
== Manager registered action DAHDIDialOffhook
== Manager registered action DAHDIDNDon
== Manager registered action DAHDIDNDoff
== Manager registered action DAHDIShowChannels
== Manager registered action DAHDIRestart
== Manager registered action PRIShowSpans
== Manager registered action PRIDebugSet
== Manager registered action PRIDebugFileSet
== Manager registered action PRIDebugFileUnset
Заветная строчка не появляется :|
>> == Primary D-Channel on span 1 up

При этом с подключенным от провайдера кабелем:

freepbx*CLI> pri show spans
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
PRI span 1/0: Down, Active
PRI span 2/0: In Alarm, Down, Active
freepbx*CLI> pri show span 1
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Primary D-channel: 16
Status: Down, Active
Switchtype: EuroISDN
Type: CPE
Remote type: Unknown node type
Overlap Dial: 1
Logical Channel Mapping: 0
Включил дебаг спана который смотрит в сторону провайдера, там зацикленно повторяются эти строки

freepbx*CLI> pri set debug on span 1
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
Все настройки dahdi/system.conf и chan_dahdi*.conf взял со старого астериска который крутится с точно такой же картой Парабел, но на еще более старой CentOS 6 и голом астериске 1.8 и в данный момент успешно подключается по Е1. Но его надо дополнить еще одной машиной которая ни в какую не хочет дружиться с Е1.

Так же пробовал сохранять на старой машине конфиг через утилиту ecfg (как я понял это Парабелловская утилита тонкой настроки DAHDI). И загружать этот конфиг на новой машине ecfg -l <кофиг>.
При такой манипуляции у линии даже в dahdi_tool статус с ОК меняется на RED.

Прерывания у карты (quasar0) ни с кем не пересекаются
[root@freepbx asterisk]# cat /proc/interrupts
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

Код: Выделить всё

            CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7
   0:         66          0          0          0          0          0          0          0   IO-APIC-edge      timer
   1:          5          0          0          0          0          0          0          0   IO-APIC-edge      i8042
   8:          1          0          0          0          0          0          0          0   IO-APIC-edge      rtc0
   9:          0          0          0          0          0          0          0          0   IO-APIC-fasteoi   acpi
  12:          6          0          0          0          0          0          0          0   IO-APIC-edge      i8042
  18:    2088195          0          0          0          0          0          0          0   IO-APIC-fasteoi   quasar0
 123:       3285          0          0          0          0          0          0          0   PCI-MSI-edge      xhci_hcd
 124:          0          0          0          0          0          0          0          0   PCI-MSI-edge      eth0
 125:     238240          0          0          0          0          0          0          0   PCI-MSI-edge      eth1
 126:       8923          0          0          0          0          0      90291          0   PCI-MSI-edge      0000:00:17.0
 127:        612          0          0          0          0          0          0          0   PCI-MSI-edge      snd_hda_intel:card0
 NMI:         11          5          5          6          5          7          6          7   Non-maskable interrupts
 LOC:    1365709     923898     905467     916808     155487     173397     437428     962014   Local timer interrupts
 SPU:          0          0          0          0          0          0          0          0   Spurious interrupts
 PMI:         11          5          5          6          5          7          6          7   Performance monitoring interrupts
 IWI:      97630      27007      30211      29338        953       2139       3048       1579   IRQ work interrupts
 RTR:          4          0          0          0          0          0          0          0   APIC ICR read retries
 RES:      17998      10514       9359       8997       6404       6259       6406       4913   Rescheduling interrupts
 CAL:       5336       5378       5573       5370       4528       4870       4626       4709   Function call interrupts
 TLB:       1778       1756       1756       2022      11108       9894       9366      10896   TLB shootdowns
 TRM:          0          0          0          0          0          0          0          0   Thermal event interrupts
 THR:          0          0          0          0          0          0          0          0   Threshold APIC interrupts
 DFR:          0          0          0          0          0          0          0          0   Deferred Error APIC interrupts
 MCE:          0          0          0          0          0          0          0          0   Machine check exceptions
 MCP:         26         26         26         26         26         26         26         26   Machine check polls
 ERR:          0
 MIS:          0
 PIN:          0          0          0          0          0          0          0          0   Posted-interrupt notification event
 NPI:          0          0          0          0          0          0          0          0   Nested posted-interrupt event
 PIW:          0          0          0          0          0          0          0          0   Posted-interrupt wakeup event
dahdi_test стабильно показывает значения 99.999% 99.996% 100.000% 100.000% 99.909% 99.994% 99.999% 99.805%

Обращался к провайдеру. Те сказали что у них никто никогда не сталкивался с настройкой PRI на Астериске и они понятия не имеют что надо крутить и какие параметры выставлять чтобы договориться с их оборудованием.
Максимум что они смогли сделать - это произвести трассировку канала, заключив что физический уровень поднимается, а вот сигнализация уже не работает. Почему - они не знают. Разводят руками указывая что надо копать какие-то глубокие настройки.
Повторюсь, что параметры signalling, switchtype, pridialplan, prilocaldialplan и все параметры спанов взял с конфигов боевого сервера.

Прошу помочь разобраться с проблемой, т.к. уже понял что провайдер мне не помощник, знакомых кто работал с астериском опросил. Все они так же развели руками и сказали что работали только с SIP. И настройка PRI для них - темный лес.
ded
Сообщения: 15621
Зарегистрирован: 26 авг 2010, 19:00

Re: Синхронизация по PRI

Сообщение ded »

Видимо пытаетесь реализовать транзитную схему? Из города - в первый порт карты Parabel, а из второго порта карты Parabel - в какую-то традиционную АТС по Е1?
prilocaldialplan=national
Это вряд ли. Лучше поставьте пока unknown.

Судя по выхлопу -
== Registered application 'DAHDISendCallreroutingFacility'
-- Registered channel 1, ISDN PRI signalling
-- Registered channel 2, ISDN PRI signalling
-- Registered channel 3, ISDN PRI signalling
-- Registered channel 4, ISDN PRI signalling
у вс первый порт с провайдером (городом) поднимается. Но источник синхронизации в цепочке провайдер(города)--Астериск(порт1/2)--АТС, как правило, должен быть един, обычно - город. А у вас указан ещё один источник на втором порту. Пробуйте
span=1,1,0,CCS,HDB3
span=2,2,0,CCS,HDB3
Не стремитесь сразу сделать всю цепочку. Добейтесь чтобы а) оба порта были ОК (зелёные) и при командах
CLI> dahdi show channels
были видны хотя бы 32 канала, пробуйте включить pri debug и принять вызов из города..
overGlosser
Сообщения: 6
Зарегистрирован: 02 дек 2022, 12:42

Re: Синхронизация по PRI

Сообщение overGlosser »

Видимо пытаетесь реализовать транзитную схему?
Нет, транзита не предполагается. В 1-ый порт приходит Е1 канал от провайдера. Дальше все звонки должны маршрутизироваться по SIP. 2-ой порт карты остаётся пустым.
Про транзит Вы наверное подумали из-за того что конфиг описывает два спана. Однако, FreePBX сам генерирует этот конфиг и видя два порта автоматически создаёт на них спаны :roll:. А в заголовке конфига предупреждает, что все изменения в ручную будут затёрты после перезапуска FreePBX. Поэтому конфиг описывает два спана. Хотя я уже думал отключить модуль DAHDI от FreePBX и дальше править конфиги только руками. Лишь бы это помогло решить задачу.
prilocaldialplan=national
Это вряд ли. Лучше поставьте пока unknown.
Понял, принял. Взял этот параметр с работающего и успешно подключающегося сейчас сервера. Но за несколько дней мытарств пробовал выставлять unknown. Сейчас, конечно, переключу national на unknown но проблема явно где-то еще.

Привел конфиг к следующему виду, как и рекомендовали

cat /etc/dahdi/system.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
# -------------------------------------------------------------------------------;
# Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
# this file must be done via the web gui. There are alternative files to make ;
# custom modifications. ;
# -------------------------------------------------------------------------------;
#
span=1,1,0,CCS,HDB3
span=2,2,0,CCS,HDB3
bchan=1-15,17-31,32-46,48-62
dchan=16,47
loadzone=ru
Перезагрузил астериск и dahdi после правки конфигов. Подключаю город в 1-ый порт, выполняю команды и получаю выхлоп

freepbx*CLI> module load chan_dahdi.so
freepbx*CLI> module unload chan_dahdi.so
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Loaded chan_dahdi.so
== Registered bridge technology native_dahdi
== Registered application 'DAHDISendKeypadFacility'
== Registered application 'DAHDISendCallreroutingFacility'
-- Registered channel 1, ISDN PRI signalling
-- Registered channel 2, ISDN PRI signalling
-- Registered channel 3, ISDN PRI signalling
-- Registered channel 4, ISDN PRI signalling
-- Registered channel 5, ISDN PRI signalling
-- Registered channel 6, ISDN PRI signalling
-- Registered channel 7, ISDN PRI signalling
-- Registered channel 8, ISDN PRI signalling
-- Registered channel 9, ISDN PRI signalling
-- Registered channel 10, ISDN PRI signalling
-- Registered channel 11, ISDN PRI signalling
-- Registered channel 12, ISDN PRI signalling
-- Registered channel 13, ISDN PRI signalling
-- Registered channel 14, ISDN PRI signalling
-- Registered channel 15, ISDN PRI signalling
-- Registered channel 17, ISDN PRI signalling
-- Registered channel 18, ISDN PRI signalling
-- Registered channel 19, ISDN PRI signalling
-- Registered channel 20, ISDN PRI signalling
-- Registered channel 21, ISDN PRI signalling
-- Registered channel 22, ISDN PRI signalling
-- Registered channel 23, ISDN PRI signalling
-- Registered channel 24, ISDN PRI signalling
-- Registered channel 25, ISDN PRI signalling
-- Registered channel 26, ISDN PRI signalling
-- Registered channel 27, ISDN PRI signalling
-- Registered channel 28, ISDN PRI signalling
-- Registered channel 29, ISDN PRI signalling
-- Registered channel 30, ISDN PRI signalling
-- Registered channel 31, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 32: Red Alarm
-- Registered channel 32, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 33: Red Alarm
-- Registered channel 33, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 34: Red Alarm
-- Registered channel 34, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 35: Red Alarm
-- Registered channel 35, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 36: Red Alarm
-- Registered channel 36, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 37: Red Alarm
-- Registered channel 37, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 38: Red Alarm
-- Registered channel 38, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 39: Red Alarm
-- Registered channel 39, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 40: Red Alarm
-- Registered channel 40, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 41: Red Alarm
-- Registered channel 41, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 42: Red Alarm
-- Registered channel 42, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 43: Red Alarm
-- Registered channel 43, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 44: Red Alarm
-- Registered channel 44, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 45: Red Alarm
-- Registered channel 45, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 46: Red Alarm
-- Registered channel 46, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 48: Red Alarm
-- Registered channel 48, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 49: Red Alarm
-- Registered channel 49, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 50: Red Alarm
-- Registered channel 50, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 51: Red Alarm
-- Registered channel 51, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 52: Red Alarm
-- Registered channel 52, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 53: Red Alarm
-- Registered channel 53, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 54: Red Alarm
-- Registered channel 54, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 55: Red Alarm
-- Registered channel 55, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 56: Red Alarm
-- Registered channel 56, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 57: Red Alarm
-- Registered channel 57, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 58: Red Alarm
-- Registered channel 58, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 59: Red Alarm
-- Registered channel 59, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 60: Red Alarm
-- Registered channel 60, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 61: Red Alarm
-- Registered channel 61, ISDN PRI signalling
[2022-12-02 15:02:12] WARNING[4942]: chan_dahdi.c:7443 handle_alarms: Detected alarm on channel 62: Red Alarm
-- Registered channel 62, ISDN PRI signalling
-- Automatically generated pseudo channel
== Starting D-Channel on span 1
== Starting D-Channel on span 2
== Registered channel type 'DAHDI' (DAHDI Telephony w/PRI & SS7 & MFC/R2)
== Registered application 'DAHDIAcceptR2Call'
== Manager registered action DAHDITransfer
== Manager registered action DAHDIHangup
== Manager registered action DAHDIDialOffhook
== Manager registered action DAHDIDNDon
== Manager registered action DAHDIDNDoff
== Manager registered action DAHDIShowChannels
== Manager registered action DAHDIRestart
== Manager registered action PRIShowSpans
== Manager registered action PRIDebugSet
== Manager registered action PRIDebugFileSet
== Manager registered action PRIDebugFileUnset
Loaded chan_dahdi.so => (DAHDI Telephony w/PRI & SS7 & MFC/R2)

Проверяю каналы:
freepbx*CLI> dahdi show channels
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

Код: Выделить всё

Chan Extension       Context         Language   MOH Interpret        Blocked    In Service Description
 pseudo                 default                    default                         Yes
      1                 from-digital    ru         default                         Yes
      2                 from-digital    ru         default                         Yes
      3                 from-digital    ru         default                         Yes
      4                 from-digital    ru         default                         Yes
      5                 from-digital    ru         default                         Yes
      6                 from-digital    ru         default                         Yes
      7                 from-digital    ru         default                         Yes
      8                 from-digital    ru         default                         Yes
      9                 from-digital    ru         default                         Yes
     10                 from-digital    ru         default                         Yes
     11                 from-digital    ru         default                         Yes
     12                 from-digital    ru         default                         Yes
     13                 from-digital    ru         default                         Yes
     14                 from-digital    ru         default                         Yes
     15                 from-digital    ru         default                         Yes
     17                 from-digital    ru         default                         Yes
     18                 from-digital    ru         default                         Yes
     19                 from-digital    ru         default                         Yes
     20                 from-digital    ru         default                         Yes
     21                 from-digital    ru         default                         Yes
     22                 from-digital    ru         default                         Yes
     23                 from-digital    ru         default                         Yes
     24                 from-digital    ru         default                         Yes
     25                 from-digital    ru         default                         Yes
     26                 from-digital    ru         default                         Yes
     27                 from-digital    ru         default                         Yes
     28                 from-digital    ru         default                         Yes
     29                 from-digital    ru         default                         Yes
     30                 from-digital    ru         default                         Yes
     31                 from-digital    ru         default                         Yes
     32                 from-internal   ru         default                         Yes
     33                 from-internal   ru         default                         Yes
     34                 from-internal   ru         default                         Yes
     35                 from-internal   ru         default                         Yes
     36                 from-internal   ru         default                         Yes
     37                 from-internal   ru         default                         Yes
     38                 from-internal   ru         default                         Yes
     39                 from-internal   ru         default                         Yes
     40                 from-internal   ru         default                         Yes
     41                 from-internal   ru         default                         Yes
     42                 from-internal   ru         default                         Yes
     43                 from-internal   ru         default                         Yes
     44                 from-internal   ru         default                         Yes
     45                 from-internal   ru         default                         Yes
     46                 from-internal   ru         default                         Yes
     48                 from-internal   ru         default                         Yes
     49                 from-internal   ru         default                         Yes
     50                 from-internal   ru         default                         Yes
     51                 from-internal   ru         default                         Yes
     52                 from-internal   ru         default                         Yes
     53                 from-internal   ru         default                         Yes
     54                 from-internal   ru         default                         Yes
     55                 from-internal   ru         default                         Yes
     56                 from-internal   ru         default                         Yes
     57                 from-internal   ru         default                         Yes
     58                 from-internal   ru         default                         Yes
     59                 from-internal   ru         default                         Yes
     60                 from-internal   ru         default                         Yes
     61                 from-internal   ru         default                         Yes
     62                 from-internal   ru         default                         Yes
freepbx*CLI> pri show spans
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
PRI span 1/0: Down, Active
PRI span 2/0: In Alarm, Down, Active
freepbx*CLI> pri show span 1
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Primary D-channel: 16
Status: Down, Active
Switchtype: EuroISDN
Type: CPE
Remote type: Unknown node type
Overlap Dial: 1
Logical Channel Mapping: 0
freepbx*CLI> pri set debug on span 1
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Enabled debugging on span 1
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
Никаких перемен :|
пробуйте включить pri debug и принять вызов из города..
Пробую, но при наборе своего городского номера дозвон сразу же сбрасывается без каких-либо гудков.
Если же пытаться совершить звонок наружу получаем голосовое сообщение FreePBX о том, что все линии заняты.
ded
Сообщения: 15621
Зарегистрирован: 26 авг 2010, 19:00

Re: Синхронизация по PRI

Сообщение ded »

Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
высыпает сообщения когда с одной стороны есть crc4, а с другой - нету. Layer 1 поднимается, а Layer 2 - нет. Укажите
span=1,1,0,CCS,HDB3,CRC4
Выгрузите
freepbx*CLI> module unload chan_dahdi.so
затем выгрузите драйверы dahdi кернел
# lsmod | grep dahdi
dahdi_transcode 14291 1 wctc4xxp
dahdi_voicebus 59241 2 wctdm24xxp,wcte12xp
dahdi 228088 18 xpp,r1t1,rxt1,wctdm24xxp,rcbfx,wcaxx,wcfxo,wctdm,dahdi_
crc_ccitt 12707 2 wctdm24xxp,dahdi
.....и снова загрузите. Посмотрите выхлоп
# dmesg
# dahdi_cfg -vv

Потом
freepbx*CLI> module load chan_dahdi.so

Сообщения начиная с
Detected alarm on channel 32: Red Alarm
- нормально, второй порт Е1 ведь никуда не включен?

Если физика ОК, зелёный горит, то вы на пол-пути к успеху!
freepbx*CLI> dahdi show channels показывает правильную, в общем то, картину

Почитайте свою эл. почту.
Аватара пользователя
Zavr2008
Сообщения: 2211
Зарегистрирован: 27 янв 2011, 00:35
Контактная информация:

Re: Синхронизация по PRI

Сообщение Zavr2008 »

PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 Sending SABME
PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)
PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
PRI Span: 1 SAPI/TEI=0/0 Kick starting link
Обычно говорит о том, что оператор подал какой-то технический поток, физика есть а в D-канале ерунда какая-то. Обычно лечится на кроссе у них.
Ставить вместо платы заворот к ним и пусть тестят.

Также можно локально проверить работу карточки - второй порт сконфигурировать как pri_net и между портами петельку поставить, если всё правильно то поднимутся оба.
Российские E1 шлюзы Alvis. Модернизация УПАТС с E1,Подключение к ИС "Антифрод" E1 PRI/SS#7 УВР Телестор, Грифин и др..
ded
Сообщения: 15621
Зарегистрирован: 26 авг 2010, 19:00

Re: Синхронизация по PRI

Сообщение ded »

Zavr2008 писал(а):Ставить вместо платы заворот к ним и пусть тестят.
Можно программно, в самой плате включить loopback.
Tx => Rx
Rx => Tx
Посмотрите документацию к карте. Вот пример у карт OpenVox:
https://openvoxwiki.atlassian.net/wiki/ ... FT1card%3F

Q46, How do I run a pattern loopback test (patlooptest) on my E1/T1 card
Аватара пользователя
Zavr2008
Сообщения: 2211
Зарегистрирован: 27 янв 2011, 00:35
Контактная информация:

Re: Синхронизация по PRI

Сообщение Zavr2008 »

Можно программно, в самой плате включить loopback.
не есть хорошо - правильнее аппаратный заворот. Сразу всё покажет.
Российские E1 шлюзы Alvis. Модернизация УПАТС с E1,Подключение к ИС "Антифрод" E1 PRI/SS#7 УВР Телестор, Грифин и др..
overGlosser
Сообщения: 6
Зарегистрирован: 02 дек 2022, 12:42

Re: Синхронизация по PRI

Сообщение overGlosser »

Добрый день.
Приняв к сведению и применив все рекомендации из темы мне, в конечном итоге, не удалось произвести успешное подключение. Чего-то не хватало. Методом проб, ошибок, заворотов на самого себя удалось найти где собака зарыта.

Проблема поднятия Е1 решилась следующим образом.
В моей карте Parabel Quasar-M отсутствует аппаратная поддержка эхоподавления.
В драйверах, скачанных с оф.сайта Парабел и скомпилированных с настройками по-дефолту, была включена функция эхоподавления. По-видимому, это как-то влияло на то что обе стороны не могли договориться. Возможно, эхоподавление резало ответ со стороны провайдера.
Отключив функцию эхоподавления на уровне драйвера Quasar канал Е1 благополучно поднялся и я увидел заветные строки в первом спане:

Код: Выделить всё

freepbx*CLI> pri show spans
PRI span 1/0: Up, Active
PRI span 2/0: In Alarm, Down, Active
Поэтому делюсь тем, как всё этопровернуть. Возможно, информация кому-то пригодится.
Проверить, включено ли эхоподавление в драйвере (ec - echo canceller) можно следующей командой:

Код: Выделить всё

grep Hw_fw_rev /var/log/messages
В дополнение к этим логам было сказано (цитата с записи зконка): "К нам вызовы приходят по ОКСу (ОКС-7) и там в Calling Party Number есть параметр Screening Indicator, в прошедших звонках на мобильный номер его значение 01, в звонках которые не прошли значение 00. Вот Screening Indicator должен быть 01 или 11. Или вы это на своей новой АТС должны настроить, или, я не знаю, может по PRI может в вашем городе у наших (Ростелеком) может что-то. Ну это уже ваши проблемы."


В выхлопе команды будут строки следующего вида. ec: 1 - означает что подавление включено. 0 - выключено.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
freepbx kernel: quasar: Quasar board 0 with 2 ports found#012Hw_fw_rev: 0x131010, slot 1, ec:1, wd:1
freepbx kernel: quasar: Quasar board 0 with 2 ports found#012Hw_fw_rev: 0x131010, slot 1, ec:0, wd:1
Отключаем эхоподавление:

Код: Выделить всё

echo "options quasar noec=1" >/etc/modprobe.d/quasar.conf
======================================================================================================================================================

Мои трудности на этом не закончились...

Подключение к Е1 поборол. Входящие звонки работают и успешно маршрутизируются дальше по SIP.
Исходящие звонки на городские номера тоже работают.
Однако, исходящие звонки на мобильные номера не проходят. И судя по тому что мне удалось выяснить, без помощи сообщества мне не обойтись.

При наборе мобильного номера в формате 89XXXXXXXXX звонок сбрасывается.
По логам звонок, согласно исходящей маршрутизации, отправляется в транк Е1, как и положено. Сразу оговорюсь, что звонки на городские и мобильные номера отправляются через один единственный транк (канал Е1 от Ростелекома). То есть его настройки устраивают исходящие звонки на городские номера но с мобильными какая-то проблема

Первая мысль: может быть я отправляю номер в транк в неправильном формате? Связался с Ростелекомом, уточнил, в правильном ли формате я передаю мобильный номер в канал? Они ответили положительно. Набираемый номер в формате 89XXXXXXXXX ими принимается и звонок должен проходить.

На вопрос: в чем же тогда проблема? Мне ответили, что ознакомились с логами и при успешно прошедших звонках на мобильные номера (с нашей старой АТС, которая сейчас в работе но нуждается в замене) некий screening indicator имеет значение 01.
А в не прошедших звонках на мобильные номера, совершенных с новой АТС (настраиваемый мною FreePBX), по логам screening indicator имеет значение 00.
Куски логов со стороны Ростелекома мне прислали на почту, привожу их ниже:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
ОШИБКА (звонок на мобильный номер 89XXXXXXXXX с новой настраиваемой АТС):
-- Calling Party Number
32 .0000011 Nature of address ind......... National (significant) number
0....... Odd/even ind.................. Even
33 ......00 Screening ind................. Reserved for national use
....00.. Presentation restricted ind... Presentation allowed
.001.... Numbering plan ind............ ISDN (Telephony)
0....... CallingPN incomplete ind...... Complete
34 ***B5*** Address signal................ 846XXXXXXX (наш CallerID)

НОРМА (звонок на мобильный номер 89XXXXXXXXX со старой работающей АТС):
-- Calling Party Number
32 .0000011 Nature of address ind......... National (significant) number
0....... Odd/even ind.................. Even
33 ......01 Screening ind................. User provided, verified and passed
....00.. Presentation restricted ind... Presentation allowed
.001.... Numbering plan ind............ ISDN (Telephony)
0....... CallingPN incomplete ind...... Complete
34 ***B5*** Address signal................ 846XXXXXXX (наш CallerID)
В сопровождении к этим логам инженер Ростелекома мне сказал следующее (цитата с записи телефонного разговора): "К нам вызовы приходят по ОКСу (ОКС-7). И в логах в группе Calling Party Number есть параметр Screening Indicator. В звонках на мобильные номера которые успешно прошли значение Screening Indicator - 01. В звонках которые не прошли значение - 00. Вот Screening Indicator должен быть 01 или 11. Или вы это должны на новой АТС настроить, или там я не знаю, может по PRI, может у вас в городе у наших (Ростелекомовцы) что-то... Ну это уже ваши проблемы".

Загуглив что из себя представляет Screening Indicator я приблизительно понял за что он отвечает. Но для меня остаётся загадкой, как на него повлиять со стороны FreePBX/Asterisk?

Лог астериска с включенным дебагом PRI.
Звонок на номер 8937XXXXXXX с использованием CallerID 846XXXXXXX (наш городской номер)
pridialplan=unknown
prilocaldialplan=unknown
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
freepbx*CLI>
== Setting global variable 'SIPDOMAIN' to '192.168.40.211'
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
-- Executing [8937XXXXXXX@from-internal:1] Macro("PJSIP/2041-00000000", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/2041-00000000", "TOUCH_MONITOR=1670497485.0") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/2041-00000000", "AMPUSER=2041") in new stack
-- Executing [s@macro-user-callerid:3] Set("PJSIP/2041-00000000", "HOTDESCKCHAN=2041-00000000") in new stack
-- Executing [s@macro-user-callerid:4] Set("PJSIP/2041-00000000", "HOTDESKEXTEN=2041") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/2041-00000000", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:6] ExecIf("PJSIP/2041-00000000", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:7] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/2041-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("PJSIP/2041-00000000", "1?Set(REALCALLERIDNUM=2041)") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/2041-00000000", "AMPUSER=2041") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("PJSIP/2041-00000000", "0?limit") in new stack
-- Executing [s@macro-user-callerid:12] Set("PJSIP/2041-00000000", "AMPUSERCIDNAME=A.V.") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/2041-00000000", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/2041-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:15] Set("PJSIP/2041-00000000", "AMPUSERCID=2041") in new stack
-- Executing [s@macro-user-callerid:16] Set("PJSIP/2041-00000000", "__DIAL_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-user-callerid:17] Set("PJSIP/2041-00000000", "CALLERID(all)="A.V." <2041>") in new stack
-- Executing [s@macro-user-callerid:18] Set("PJSIP/2041-00000000", "HOTDESCKCHAN=2041-00000000") in new stack
-- Executing [s@macro-user-callerid:19] Set("PJSIP/2041-00000000", "HOTDESKEXTEN=2041") in new stack
-- Executing [s@macro-user-callerid:20] Set("PJSIP/2041-00000000", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:21] ExecIf("PJSIP/2041-00000000", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:22] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)="" < >)") in new stack
-- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/2041-00000000", "0?Set(CUSDIAL=)") in new stack
-- Executing [s@macro-user-callerid:25] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)="A.V." <2041>)") in new stack
-- Executing [s@macro-user-callerid:26] GotoIf("PJSIP/2041-00000000", "0?limit") in new stack
-- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/2041-00000000", "1?Set(GROUP(concurrency_limit)=2041)") in new stack
-- Executing [s@macro-user-callerid:28] ExecIf("PJSIP/2041-00000000", "1?Set(CHANNEL(language)=ru)") in new stack
-- Executing [s@macro-user-callerid:29] NoOp("PJSIP/2041-00000000", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:30] GotoIf("PJSIP/2041-00000000", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,31)
-- Executing [s@macro-user-callerid:31] GotoIf("PJSIP/2041-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,50)
-- Executing [s@macro-user-callerid:50] Set("PJSIP/2041-00000000", "CALLERID(number)=2041") in new stack
-- Executing [s@macro-user-callerid:51] Set("PJSIP/2041-00000000", "CALLERID(name)=A.V.") in new stack
-- Executing [s@macro-user-callerid:52] GotoIf("PJSIP/2041-00000000", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:53] Set("PJSIP/2041-00000000", "CDR(cnam)=A.V.") in new stack
-- Executing [s@macro-user-callerid:54] Set("PJSIP/2041-00000000", "CDR(cnum)=2041") in new stack
-- Executing [s@macro-user-callerid:55] Set("PJSIP/2041-00000000", "CHANNEL(language)=ru") in new stack
-- Executing [8937XXXXXXX@from-internal:2] Gosub("PJSIP/2041-00000000", "sub-record-check,s,1(out,8937XXXXXXX,force)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/2041-00000000", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/2041-00000000", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/2041-00000000", "NOW=1670497485") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/2041-00000000", "__DAY=08") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/2041-00000000", "__MONTH=12") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/2041-00000000", "__YEAR=2022") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/2041-00000000", "__TIMESTR=20221208-150445") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/2041-00000000", "__FROMEXTEN=2041") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/2041-00000000", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/2041-00000000", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/2041-00000000", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/2041-00000000", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/2041-00000000", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/2041-00000000", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/2041-00000000", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("PJSIP/2041-00000000", "Outbound Recording Check from 2041 to 8937XXXXXXX") in new stack
-- Executing [out@sub-record-check:2] Set("PJSIP/2041-00000000", "RECMODE=force") in new stack
-- Executing [out@sub-record-check:3] ExecIf("PJSIP/2041-00000000", "0?Goto(routewins)") in new stack
-- Executing [out@sub-record-check:4] ExecIf("PJSIP/2041-00000000", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("PJSIP/2041-00000000", "recordcheck,1(force,out,8937XXXXXXX)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/2041-00000000", "Starting recording check against force") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/2041-00000000", "force") in new stack
-- Goto (sub-record-check,recordcheck,5)
-- Executing [recordcheck@sub-record-check:5] Set("PJSIP/2041-00000000", "__REC_POLICY_MODE=FORCE") in new stack
-- Executing [recordcheck@sub-record-check:6] GotoIf("PJSIP/2041-00000000", "1?startrec") in new stack
-- Goto (sub-record-check,recordcheck,16)
-- Executing [recordcheck@sub-record-check:16] NoOp("PJSIP/2041-00000000", "Starting recording: out, 8937XXXXXXX") in new stack
-- Executing [recordcheck@sub-record-check:17] Set("PJSIP/2041-00000000", "__CALLFILENAME=out-8937XXXXXXX-2041-20221208-150445-1670497485.0") in new stack
-- Executing [recordcheck@sub-record-check:18] MixMonitor("PJSIP/2041-00000000", "/var/spool/asterisk/monitor/2022/12/08/out-8937XXXXXXX-2041-20221208-150445-1670497485.0.wav,abi(LOCAL_MIXMON_ID),/opt/asterisk/scripts/mixmon-mp3-2.sh ^{YEAR} ^{MONTH} ^{DAY} ^{CALLFILENAME} ^{MIXMON_FORMAT} ^{MIXMON_DIR}") in new stack
-- Executing [recordcheck@sub-record-check:19] Set("PJSIP/2041-00000000", "__MIXMON_ID=0x7fec70029fc0") in new stack
== Begin MixMonitor Recording PJSIP/2041-00000000
-- Executing [recordcheck@sub-record-check:20] Set("PJSIP/2041-00000000", "__RECORD_ID=PJSIP/2041-00000000") in new stack
-- Executing [recordcheck@sub-record-check:21] Set("PJSIP/2041-00000000", "__REC_STATUS=RECORDING") in new stack
-- Executing [recordcheck@sub-record-check:22] Set("PJSIP/2041-00000000", "CDR(recordingfile)=out-8937XXXXXXX-2041-20221208-150445-1670497485.0.wav") in new stack
-- Executing [recordcheck@sub-record-check:23] Return("PJSIP/2041-00000000", "") in new stack
-- Executing [out@sub-record-check:8] Return("PJSIP/2041-00000000", "") in new stack
-- Executing [8937XXXXXXX@from-internal:3] ExecIf("PJSIP/2041-00000000", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [8937XXXXXXX@from-internal:4] Set("PJSIP/2041-00000000", "_ROUTEID=5") in new stack
-- Executing [8937XXXXXXX@from-internal:5] Set("PJSIP/2041-00000000", "_ROUTENAME=All calls") in new stack
-- Executing [8937XXXXXXX@from-internal:6] Set("PJSIP/2041-00000000", "MOHCLASS=default") in new stack
-- Executing [8937XXXXXXX@from-internal:7] Set("PJSIP/2041-00000000", "_CALLERIDNAMEINTERNAL=A.V.") in new stack
-- Executing [8937XXXXXXX@from-internal:8] Set("PJSIP/2041-00000000", "_CALLERIDNUMINTERNAL=2041") in new stack
-- Executing [8937XXXXXXX@from-internal:9] Set("PJSIP/2041-00000000", "_EMAILNOTIFICATION=FALSE") in new stack
-- Executing [8937XXXXXXX@from-internal:10] Set("PJSIP/2041-00000000", "_NODEST=") in new stack
-- Executing [8937XXXXXXX@from-internal:11] Macro("PJSIP/2041-00000000", "dialout-trunk,2,8937XXXXXXX,,on") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("PJSIP/2041-00000000", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
-- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/2041-00000000", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(num)=2041)") in new stack
-- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/2041-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("PJSIP/2041-00000000", "DIAL_NUMBER=8937XXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("PJSIP/2041-00000000", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("PJSIP/2041-00000000", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:9] Set("PJSIP/2041-00000000", "DIAL_TRUNK_OPTIONS=tT") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/2041-00000000", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:11] GotoIf("PJSIP/2041-00000000", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/2041-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/2041-00000000", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/2041-00000000", "2041") in new stack
-- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/2041-00000000", "") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/2041-00000000", "off") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERPRES(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERPRES(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:6] Set("PJSIP/2041-00000000", "HOTDESCKCHAN=2041-00000000") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("PJSIP/2041-00000000", "HOTDESKEXTEN=2041") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("PJSIP/2041-00000000", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/2041-00000000", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("PJSIP/2041-00000000", "ALLOWTHISROUTE=NO") in new stack
-- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/2041-00000000", "0?Set(ALLOWTHISROUTE=YES)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/2041-00000000", "0?Hangup()") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/2041-00000000", "0?Set(REALCALLERIDNUM=2041)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/2041-00000000", "0?Set(AMPUSER=2041)") in new stack
-- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/2041-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,20)
-- Executing [s@macro-outbound-callerid:20] Set("PJSIP/2041-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:21] Set("PJSIP/2041-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/2041-00000000", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [s@macro-outbound-callerid:23] Set("PJSIP/2041-00000000", "TRUNKOUTCID=846XXXXXXX") in new stack
-- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/2041-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,30)
-- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/2041-00000000", "1?Set(CALLERID(all)=846XXXXXXX)") in new stack
-- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=2041)") in new stack
-- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=2041)") in new stack
-- Executing [s@macro-outbound-callerid:35] Set("PJSIP/2041-00000000", "TIOHIDE=no") in new stack
-- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:40] Set("PJSIP/2041-00000000", "CDR(outbound_cnum)=846XXXXXXX") in new stack
-- Executing [s@macro-outbound-callerid:41] Set("PJSIP/2041-00000000", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/2041-00000000", "1?sub-flp-2,s,1()") in new stack
-- Executing [s@sub-flp-2:1] ExecIf("PJSIP/2041-00000000", "1?Return()") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("PJSIP/2041-00000000", "OUTNUM=8937XXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:16] Set("PJSIP/2041-00000000", "custom=DAHDI/g1") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tT)") in new stack
-- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_TRUNK_OPTIONS=tTM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/2041-00000000", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/2041-00000000", "") in new stack
-- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/2041-00000000", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/2041-00000000", "1?Set(CONNECTEDLINE(num,i)=8937XXXXXXX)") in new stack
-- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/2041-00000000", "1?Set(CONNECTEDLINE(name,i)=CID:846XXXXXXX)") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/2041-00000000", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)846XXXXXXX)") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/2041-00000000", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_TRUNK_OPTIONS=t)") in new stack
-- Executing [s@macro-dialout-trunk:26] Set("PJSIP/2041-00000000", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/2041-00000000", "DAHDI/g1/8937XXXXXXX,300,tTb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^8937XXXXXXX^8937XXXXXXX^2^1670497485^^846XXXXXXX)") in new stack
-- DAHDI/i1/8937XXXXXXX-1 Internal Gosub(func-apply-sipheaders,s,1(2)) start
-- Executing [s@func-apply-sipheaders:1] NoOp("DAHDI/i1/8937XXXXXXX-1", "Applying SIP Headers to channel DAHDI/i1/8937XXXXXXX-1") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("DAHDI/i1/8937XXXXXXX-1", "TECH=DAHDI") in new stack
-- Executing [s@func-apply-sipheaders:3] Set("DAHDI/i1/8937XXXXXXX-1", "SIPHEADERKEYS=Alert-Info") in new stack
-- Executing [s@func-apply-sipheaders:4] While("DAHDI/i1/8937XXXXXXX-1", "1") in new stack
-- Executing [s@func-apply-sipheaders:5] Set("DAHDI/i1/8937XXXXXXX-1", "sipheader=unset") in new stack
-- Executing [s@func-apply-sipheaders:6] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?SIPRemoveHeader(Alert-Info:)") in new stack
-- Executing [s@func-apply-sipheaders:7] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
-- Executing [s@func-apply-sipheaders:8] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
-- Executing [s@func-apply-sipheaders:9] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
-- Executing [s@func-apply-sipheaders:10] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?SIPAddHeader(Alert-Info:unset)") in new stack
-- Executing [s@func-apply-sipheaders:11] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
-- Executing [s@func-apply-sipheaders:12] EndWhile("DAHDI/i1/8937XXXXXXX-1", "") in new stack
-- Executing [s@func-apply-sipheaders:4] While("DAHDI/i1/8937XXXXXXX-1", "0") in new stack
-- Executing [s@func-apply-sipheaders:13] Return("DAHDI/i1/8937XXXXXXX-1", "") in new stack
== Spawn extension (from-digital, 8937XXXXXXX, 1) exited non-zero on 'DAHDI/i1/8937XXXXXXX-1'
-- DAHDI/i1/8937XXXXXXX-1 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
PRI Span: 1 -- Making new call for cref 32769
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=43
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=1, window is open V(A)=1 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=43
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 81]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 1 Type: CPE]
PRI Span: 1 > [6c 0c 00 80 38 34 36 34 39 38 34 31 31 35]
PRI Span: 1 > Calling Party Number (len=14) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0)
PRI Span: 1 > Presentation: Presentation allowed, User-provided, not screened (0) '846XXXXXXX' ]
PRI Span: 1 > [70 0c 80 38 39 33 37 36 36 39 35 31 36 33]
PRI Span: 1 > Called Party Number (len=14) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '8937XXXXXXX' ]
PRI Span: 1 q931.c:6531 q931_setup: Call 32769 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/g1/8937XXXXXXX
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=10
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: SETUP ACKNOWLEDGE (13)
PRI Span: 1 < [18 03 a9 83 81]
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 1 < ChanSel: As indicated in following octets
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 < Ext: 1 Channel: 1 Type: CPE]
PRI Span: 1 Received message for call 0x7fec700de200 on link 0x29126d0 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 24 (cs0, Channel ID)
PRI Span: 1 q931.c:9499 post_handle_q931_message: Call 32769 enters state 2 (Overlap Sending). Hold state: Idle
Span 1: Processing event PRI_EVENT_SETUP_ACK(14)
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
PRI Span: 1 < [1e 02 82 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7fec700de200 on link 0x29126d0 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 q931.c:9095 post_handle_q931_message: Call 32769 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
-- DAHDI/i1/8937XXXXXXX-1 is proceeding passing it to PJSIP/2041-00000000
-- DAHDI/i1/8937XXXXXXX-1 is making progress passing it to PJSIP/2041-00000000
> 0x7febf80e34b0 -- Strict RTP learning after remote address set to: 192.168.40.121:5100
> 0x7febf80e34b0 -- Strict RTP switching to RTP target address 192.168.40.121:5100 as source
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=26
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: DISCONNECT (69)
PRI Span: 1 < [08 02 83 9f]
PRI Span: 1 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Transit network (3)
PRI Span: 1 < Ext: 1 Cause: Normal, unspecified (31), class = Normal Event (1) ]
PRI Span: 1 < [1e 02 82 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 < [28 0b 43 4f 4e 47 45 53 54 49 4f 4e 20]
PRI Span: 1 < Display (len=11) [ CONGESTION ]
PRI Span: 1 Received message for call 0x7fec700de200 on link 0x29126d0 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 8 (cs0, Cause)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 -- Processing IE 40 (cs0, Display)
PRI Span: 1 -- Found active call: 0x7fec700de200 cref:32769
PRI Span: 1 q931.c:9345 post_handle_q931_message: Call 32769 enters state 12 (Disconnect Indication). Hold state: Idle
Span 1: Processing event PRI_EVENT_HANGUP_REQ(15)
-- Span 1: Channel 0/1 got hangup request, cause 31
PRI Span: 1 q931.c:7332 q931_hangup: Hangup other cref:32769
PRI Span: 1 q931.c:7089 __q931_hangup: ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
PRI Span: 1 q931.c:6124 q931_release: Call 32769 enters state 19 (Release Request). Hold state: Idle
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 TEI=0 Transmitting N(S)=2, window is open V(A)=2 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 > [08 02 81 9f]
PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
PRI Span: 1 > Ext: 1 Cause: Normal, unspecified (31), class = Normal Event (1) ]
-- Hungup 'DAHDI/i1/8937XXXXXXX-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/2041-00000000", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 31") in new stack
-- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/2041-00000000", "1?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/2041-00000000", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 31 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/2041-00000000", "1?Set(CALLERID(number)=2041)") in new stack
-- Executing [8937XXXXXXX@from-internal:12] Macro("PJSIP/2041-00000000", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("PJSIP/2041-00000000", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("PJSIP/2041-00000000", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("PJSIP/2041-00000000", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("PJSIP/2041-00000000", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
-- <PJSIP/2041-00000000> Playing 'all-circuits-busy-now.ulaw' (language 'ru')
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: RELEASE COMPLETE (90)
PRI Span: 1 Received message for call 0x7fec700de200 on link 0x29126d0 TEI/SAPI 0/0
PRI Span: 1 q931.c:9204 post_handle_q931_message: Call 32769 enters state 0 (Null). Hold state: Idle
PRI Span: 1 q931.c:7332 q931_hangup: Hangup other cref:32769
PRI Span: 1 q931.c:7089 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 1 Destroying call 0x7fec700de200, ourstate Null, peerstate Null, hold-state Idle
Span 1: Processing event PRI_EVENT_HANGUP_ACK(9)
-- <PJSIP/2041-00000000> Playing 'please-try-call-later.ulaw' (language 'ru')
> 0x7febf80e34b0 -- Strict RTP learning complete - Locking on source address 192.168.40.121:5100
-- Executing [s@macro-outisbusy:5] Congestion("PJSIP/2041-00000000", "20") in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'PJSIP/2041-00000000' in macro 'outisbusy'
== Spawn extension (from-internal, 8937XXXXXXX, 12) exited non-zero on 'PJSIP/2041-00000000'
-- Executing [h@from-internal:1] Macro("PJSIP/2041-00000000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/2041-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/2041-00000000", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("PJSIP/2041-00000000", " montior file= /var/spool/asterisk/monitor/2022/12/08/out-8937XXXXXXX-2041-20221208-150445-1670497485.0.wav") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("PJSIP/2041-00000000", "1?skipagi") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] Hangup("PJSIP/2041-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/2041-00000000' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/2041-00000000'
== MixMonitor close filestream (mixed)
== Executing [/opt/asterisk/scripts/mixmon-mp3-2.sh 2022 12 08 out-8937XXXXXXX-2041-20221208-150445-1670497485.0 wav /var/spool/asterisk/monitor/]
== End MixMonitor Recording PJSIP/2041-00000000
Попробовал поиграться с параметрами pridialplan и prilocaldialplan но выхлоп консоли не сильно менялся. Привожу только небольшие его части где заметил незначительные изменения.

Звонок на номер 8937XXXXXXX с использованием CallerID 846XXXXXXX (наш городской номер)
pridialplan=national
prilocaldialplan=national
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
== Spawn extension (from-digital, 8937XXXXXXX, 1) exited non-zero on 'DAHDI/i1/8937XXXXXXX-2'
-- DAHDI/i1/8937XXXXXXX-2 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
PRI Span: 1 -- Making new call for cref 32770
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=43
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 2/0x2) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=3, window is open V(A)=3 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=43
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 2/0x2) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 81]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 1 Type: CPE]
PRI Span: 1 > [6c 0c 21 80 38 34 36 34 39 38 34 31 31 35]
PRI Span: 1 > Calling Party Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation allowed, User-provided, not screened (0) '846XXXXXXX' ]
PRI Span: 1 > [70 0c a1 38 39 33 37 36 36 39 35 31 36 33]
PRI Span: 1 > Called Party Number (len=14) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '8937XXXXXXX' ]
PRI Span: 1 q931.c:6531 q931_setup: Call 32770 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/g1/8937XXXXXXX
Звонок на номер 8937XXXXXXX с использованием CallerID 846XXXXXXX (наш городской номер)
pridialplan=local
prilocaldialplan=local
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
-- DAHDI/i1/8937XXXXXXX-1 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
PRI Span: 1 -- Making new call for cref 32769
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=43
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=1, window is open V(A)=1 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=43
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 81]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 1 Type: CPE]
PRI Span: 1 > [6c 0c 41 80 38 34 36 34 39 38 34 31 31 35]
PRI Span: 1 > Calling Party Number (len=14) [ Ext: 0 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation allowed, User-provided, not screened (0) '846XXXXXXX' ]
PRI Span: 1 > [70 0c c1 38 39 33 37 36 36 39 35 31 36 33]
PRI Span: 1 > Called Party Number (len=14) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '8937XXXXXXX' ]
PRI Span: 1 q931.c:6531 q931_setup: Call 32769 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/g1/8937XXXXXXX
--Пробовал еще всяческие связки unknown+national, unknown+local и наоборот. Всё безрезультатно. Входящие к нам звонки проходят, исходящие на город проходят, исходящие на мобильные номера стабильно с Presentation allowed, User-provided, not screened (0). На старой АТС со старым Астериском 1.8 используется связка unknown+national. Пробовал выставлять такие параметры. Звонок на мобильный не проходит по той же причине.

--Так же пробовал менять CallerID с 846XXXXXXX на формат XXXXXX (только городской номер, без кода города). Безуспешно. На старой АТС со старым Астериском 1.8 в конфиге диалпланов для исходящих звонков используется CallerID 846XXXXXXX и исходящие звонки проходят.

Помогите разобраться, как во FreePBX повлиять на этот параметр Screening Indicator чтобы звонки на мобильный номер прошли :cry:

chan_dahdi.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[channels]
language=ru
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0
callerid=asreceived
callwaitingcallerid=yes
canpark=yes
overlapdial=yes
chan_dahdi_groups.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
; [span_1]
signalling=pri_cpe
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=1
context=from-digital
channel=>1-15,17-31

; не используется
; [span_2]
signalling=pri_net
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
group=2
context=from-internal
channel=>32-46,48-62
ded
Сообщения: 15621
Зарегистрирован: 26 авг 2010, 19:00

Re: Синхронизация по PRI

Сообщение ded »

Проблема Screening Indicator - 0 или 1 выключено или включено, один бит должен считывается. Это анонимизация звонков на мобильный, подавление Caller ID. Но ваш провайдер отвечает, что при проходящих звонках значение Screening Indicator - 01.
Возможно передающий канал устанавливает один бит, а принимающий (провайдера) считывает два бита.

"К нам вызовы приходят по ОКСу (ОКС-7)" - эта фраза относится ведь не к вашему подключению? prilocaldialplan и pridialplan к Screening никак не относятся. Вопрос к параметрам Calling presentation, должно быть
usecallingpres=yes

В старых конфигах версий chan_dahdi.conf
Set(CALLERPRES()=prohib_passed_screen)
в новых - см. ниже.

Вот ваша проблема:
https://community.asterisk.org/t/proble ... ahdi/66003
Set(CALLERID(num-pres)=prohib_passed_screen) does the trick.
This way I can see in the IAM both the screening indicator and the Presentation flag set to 1.
overGlosser
Сообщения: 6
Зарегистрирован: 02 дек 2022, 12:42

Re: Синхронизация по PRI

Сообщение overGlosser »

Благодарю за ответ!
По ссылке у человека используется астериск 13, поэтому прибегнул к его варианту решения.
На сколько я понял из его сообщения, функция CALLERPRES устаревшая и он вместо нее использовал в диалплане функцию CALLERID.

Поправил свой диалплан руками, заменив все упоминания CALLERPRES на CALLERID (num-pres) и (name-pres) соответственно. Сохранил, перезагрузил диалплан.

Параметр usecallingpres=yes у меня включен.

Совершил тестовый звонок на мобильный телефон 8937XXXXXXX.
В логе астериска уже нет упоминаний вызова функции CALLERPRES, как было ранее. Только CALLERID.
Однако, звонок по прежнему сбрасывается.
И по прежнему в дебаге вижу строчку

Код: Выделить всё

PRI Span: 1 > Called Party Number (len=14) [ Ext: 1  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)  '8937XXXXXXX' ]
Полный лог при звонке на мобильный номер
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Span 1: Processing event PRI_EVENT_RESTART(3)
-- Restart requested on entire span 1
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
-- Executing [8937XXXXXXX@from-internal:1] Macro("PJSIP/2041-00000000", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/2041-00000000", "TOUCH_MONITOR=1670585772.0") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/2041-00000000", "AMPUSER=2041") in new stack
-- Executing [s@macro-user-callerid:3] Set("PJSIP/2041-00000000", "HOTDESCKCHAN=2041-00000000") in new stack
-- Executing [s@macro-user-callerid:4] Set("PJSIP/2041-00000000", "HOTDESKEXTEN=2041") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/2041-00000000", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:6] ExecIf("PJSIP/2041-00000000", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:7] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("PJSIP/2041-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("PJSIP/2041-00000000", "1?Set(REALCALLERIDNUM=2041)") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/2041-00000000", "AMPUSER=2041") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("PJSIP/2041-00000000", "0?limit") in new stack
-- Executing [s@macro-user-callerid:12] Set("PJSIP/2041-00000000", "AMPUSERCIDNAME=A.V.") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/2041-00000000", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/2041-00000000", "0?report") in new stack
-- Executing [s@macro-user-callerid:15] Set("PJSIP/2041-00000000", "AMPUSERCID=2041") in new stack
-- Executing [s@macro-user-callerid:16] Set("PJSIP/2041-00000000", "__DIAL_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-user-callerid:17] Set("PJSIP/2041-00000000", "CALLERID(all)="A.V." <2041>") in new stack
-- Executing [s@macro-user-callerid:18] Set("PJSIP/2041-00000000", "HOTDESCKCHAN=2041-00000000") in new stack
-- Executing [s@macro-user-callerid:19] Set("PJSIP/2041-00000000", "HOTDESKEXTEN=2041") in new stack
-- Executing [s@macro-user-callerid:20] Set("PJSIP/2041-00000000", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:21] ExecIf("PJSIP/2041-00000000", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:22] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)="" < >)") in new stack
-- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/2041-00000000", "0?Set(CUSDIAL=)") in new stack
-- Executing [s@macro-user-callerid:25] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)="A.V." <2041>)") in new stack
-- Executing [s@macro-user-callerid:26] GotoIf("PJSIP/2041-00000000", "0?limit") in new stack
-- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/2041-00000000", "1?Set(GROUP(concurrency_limit)=2041)") in new stack
-- Executing [s@macro-user-callerid:28] ExecIf("PJSIP/2041-00000000", "1?Set(CHANNEL(language)=ru)") in new stack
-- Executing [s@macro-user-callerid:29] NoOp("PJSIP/2041-00000000", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:30] GotoIf("PJSIP/2041-00000000", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,31)
-- Executing [s@macro-user-callerid:31] GotoIf("PJSIP/2041-00000000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,50)
-- Executing [s@macro-user-callerid:50] Set("PJSIP/2041-00000000", "CALLERID(number)=2041") in new stack
-- Executing [s@macro-user-callerid:51] Set("PJSIP/2041-00000000", "CALLERID(name)=A.V.") in new stack
-- Executing [s@macro-user-callerid:52] GotoIf("PJSIP/2041-00000000", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:53] Set("PJSIP/2041-00000000", "CDR(cnam)=A.V.") in new stack
-- Executing [s@macro-user-callerid:54] Set("PJSIP/2041-00000000", "CDR(cnum)=2041") in new stack
-- Executing [s@macro-user-callerid:55] Set("PJSIP/2041-00000000", "CHANNEL(language)=ru") in new stack
-- Executing [8937XXXXXXX@from-internal:2] Gosub("PJSIP/2041-00000000", "sub-record-check,s,1(out,8937XXXXXXX,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/2041-00000000", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/2041-00000000", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/2041-00000000", "NOW=1670585772") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/2041-00000000", "__DAY=09") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/2041-00000000", "__MONTH=12") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/2041-00000000", "__YEAR=2022") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/2041-00000000", "__TIMESTR=20221209-153612") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/2041-00000000", "__FROMEXTEN=2041") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/2041-00000000", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/2041-00000000", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/2041-00000000", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/2041-00000000", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/2041-00000000", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/2041-00000000", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/2041-00000000", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("PJSIP/2041-00000000", "Outbound Recording Check from 2041 to 8937XXXXXXX") in new stack
-- Executing [out@sub-record-check:2] Set("PJSIP/2041-00000000", "RECMODE=force") in new stack
-- Executing [out@sub-record-check:3] ExecIf("PJSIP/2041-00000000", "0?Goto(routewins)") in new stack
-- Executing [out@sub-record-check:4] ExecIf("PJSIP/2041-00000000", "0?Goto(routewins)") in new stack
-- Executing [out@sub-record-check:5] Gosub("PJSIP/2041-00000000", "recordcheck,1(force,out,8937XXXXXXX)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/2041-00000000", "Starting recording check against force") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/2041-00000000", "force") in new stack
-- Goto (sub-record-check,recordcheck,5)
-- Executing [recordcheck@sub-record-check:5] Set("PJSIP/2041-00000000", "__REC_POLICY_MODE=FORCE") in new stack
-- Executing [recordcheck@sub-record-check:6] GotoIf("PJSIP/2041-00000000", "1?startrec") in new stack
-- Goto (sub-record-check,recordcheck,16)
-- Executing [recordcheck@sub-record-check:16] NoOp("PJSIP/2041-00000000", "Starting recording: out, 8937XXXXXXX") in new stack
-- Executing [recordcheck@sub-record-check:17] Set("PJSIP/2041-00000000", "__CALLFILENAME=out-8937XXXXXXX-2041-20221209-153612-1670585772.0") in new stack
-- Executing [recordcheck@sub-record-check:18] MixMonitor("PJSIP/2041-00000000", "/var/spool/asterisk/monitor/2022/12/09/out-8937XXXXXXX-2041-20221209-153612-1670585772.0.wav,abi(LOCAL_MIXMON_ID),/opt/asterisk/scripts/mixmon-mp3-2.sh ^{YEAR} ^{MONTH} ^{DAY} ^{CALLFILENAME} ^{MIXMON_FORMAT} ^{MIXMON_DIR}") in new stack
-- Executing [recordcheck@sub-record-check:19] Set("PJSIP/2041-00000000", "__MIXMON_ID=0x7efcb8062490") in new stack
== Begin MixMonitor Recording PJSIP/2041-00000000
-- Executing [recordcheck@sub-record-check:20] Set("PJSIP/2041-00000000", "__RECORD_ID=PJSIP/2041-00000000") in new stack
-- Executing [recordcheck@sub-record-check:21] Set("PJSIP/2041-00000000", "__REC_STATUS=RECORDING") in new stack
-- Executing [recordcheck@sub-record-check:22] Set("PJSIP/2041-00000000", "CDR(recordingfile)=out-8937XXXXXXX-2041-20221209-153612-1670585772.0.wav") in new stack
-- Executing [recordcheck@sub-record-check:23] Return("PJSIP/2041-00000000", "") in new stack
-- Executing [out@sub-record-check:6] Return("PJSIP/2041-00000000", "") in new stack
-- Executing [8937XXXXXXX@from-internal:3] ExecIf("PJSIP/2041-00000000", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [8937XXXXXXX@from-internal:4] Set("PJSIP/2041-00000000", "_ROUTEID=7") in new stack
-- Executing [8937XXXXXXX@from-internal:5] Set("PJSIP/2041-00000000", "_ROUTENAME=test_route") in new stack
-- Executing [8937XXXXXXX@from-internal:6] Set("PJSIP/2041-00000000", "MOHCLASS=default") in new stack
-- Executing [8937XXXXXXX@from-internal:7] ExecIf("PJSIP/2041-00000000", "1?Set(TRUNKCIDOVERRIDE=846XXXXXXX)") in new stack
-- Executing [8937XXXXXXX@from-internal:8] Set("PJSIP/2041-00000000", "_CALLERIDNAMEINTERNAL=A.V.") in new stack
-- Executing [8937XXXXXXX@from-internal:9] Set("PJSIP/2041-00000000", "_CALLERIDNUMINTERNAL=2041") in new stack
-- Executing [8937XXXXXXX@from-internal:10] Set("PJSIP/2041-00000000", "_EMAILNOTIFICATION=FALSE") in new stack
-- Executing [8937XXXXXXX@from-internal:11] Set("PJSIP/2041-00000000", "_NODEST=") in new stack
-- Executing [8937XXXXXXX@from-internal:12] Macro("PJSIP/2041-00000000", "dialout-trunk,2,8937XXXXXXX,,on") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("PJSIP/2041-00000000", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
-- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/2041-00000000", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(num)=2041)") in new stack
-- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/2041-00000000", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("PJSIP/2041-00000000", "DIAL_NUMBER=8937XXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("PJSIP/2041-00000000", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("PJSIP/2041-00000000", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:9] Set("PJSIP/2041-00000000", "DIAL_TRUNK_OPTIONS=tT") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/2041-00000000", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:11] GotoIf("PJSIP/2041-00000000", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/2041-00000000", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/2041-00000000", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/2041-00000000", "2041") in new stack
-- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/2041-00000000", "") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/2041-00000000", "all") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:6] Set("PJSIP/2041-00000000", "HOTDESCKCHAN=2041-00000000") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("PJSIP/2041-00000000", "HOTDESKEXTEN=2041") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("PJSIP/2041-00000000", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/2041-00000000", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("PJSIP/2041-00000000", "ALLOWTHISROUTE=NO") in new stack
-- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/2041-00000000", "0?Set(ALLOWTHISROUTE=YES)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/2041-00000000", "0?Hangup()") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/2041-00000000", "0?Set(REALCALLERIDNUM=2041)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/2041-00000000", "0?Set(AMPUSER=2041)") in new stack
-- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/2041-00000000", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,20)
-- Executing [s@macro-outbound-callerid:20] Set("PJSIP/2041-00000000", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:21] Set("PJSIP/2041-00000000", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/2041-00000000", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [s@macro-outbound-callerid:23] Set("PJSIP/2041-00000000", "TRUNKOUTCID=846XXXXXXX") in new stack
-- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/2041-00000000", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,30)
-- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/2041-00000000", "1?Set(CALLERID(all)=846XXXXXXX)") in new stack
-- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/2041-00000000", "1?Set(CALLERID(all)=846XXXXXXX)") in new stack
-- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=2041)") in new stack
-- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(all)=2041)") in new stack
-- Executing [s@macro-outbound-callerid:35] Set("PJSIP/2041-00000000", "TIOHIDE=no") in new stack
-- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/2041-00000000", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:40] Set("PJSIP/2041-00000000", "CDR(outbound_cnum)=846XXXXXXX") in new stack
-- Executing [s@macro-outbound-callerid:41] Set("PJSIP/2041-00000000", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/2041-00000000", "1?sub-flp-2,s,1()") in new stack
-- Executing [s@sub-flp-2:1] ExecIf("PJSIP/2041-00000000", "1?Return()") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("PJSIP/2041-00000000", "OUTNUM=8937XXXXXXX") in new stack
-- Executing [s@macro-dialout-trunk:16] Set("PJSIP/2041-00000000", "custom=DAHDI/g1") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tT)") in new stack
-- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_TRUNK_OPTIONS=tTM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/2041-00000000", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/2041-00000000", "") in new stack
-- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/2041-00000000", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/2041-00000000", "1?Set(CONNECTEDLINE(num,i)=8937XXXXXXX)") in new stack
-- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/2041-00000000", "1?Set(CONNECTEDLINE(name,i)=CID:846XXXXXXX)") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/2041-00000000", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)846XXXXXXX)") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/2041-00000000", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/2041-00000000", "0?Set(DIAL_TRUNK_OPTIONS=t)") in new stack
-- Executing [s@macro-dialout-trunk:26] Set("PJSIP/2041-00000000", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/2041-00000000", "DAHDI/g1/8937XXXXXXX,300,tTb(func-apply-sipheaders^s^1,(2))U(sub-send-obroute-email^8937XXXXXXX^8937XXXXXXX^2^1670585772^^846XXXXXXX)") in new stack
-- DAHDI/i1/8937XXXXXXX-1 Internal Gosub(func-apply-sipheaders,s,1(2)) start
-- Executing [s@func-apply-sipheaders:1] NoOp("DAHDI/i1/8937XXXXXXX-1", "Applying SIP Headers to channel DAHDI/i1/8937XXXXXXX-1") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("DAHDI/i1/8937XXXXXXX-1", "TECH=DAHDI") in new stack
-- Executing [s@func-apply-sipheaders:3] Set("DAHDI/i1/8937XXXXXXX-1", "SIPHEADERKEYS=Alert-Info") in new stack
-- Executing [s@func-apply-sipheaders:4] While("DAHDI/i1/8937XXXXXXX-1", "1") in new stack
-- Executing [s@func-apply-sipheaders:5] Set("DAHDI/i1/8937XXXXXXX-1", "sipheader=unset") in new stack
-- Executing [s@func-apply-sipheaders:6] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?SIPRemoveHeader(Alert-Info:)") in new stack
-- Executing [s@func-apply-sipheaders:7] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
-- Executing [s@func-apply-sipheaders:8] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
-- Executing [s@func-apply-sipheaders:9] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
-- Executing [s@func-apply-sipheaders:10] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?SIPAddHeader(Alert-Info:unset)") in new stack
-- Executing [s@func-apply-sipheaders:11] ExecIf("DAHDI/i1/8937XXXXXXX-1", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
-- Executing [s@func-apply-sipheaders:12] EndWhile("DAHDI/i1/8937XXXXXXX-1", "") in new stack
-- Executing [s@func-apply-sipheaders:4] While("DAHDI/i1/8937XXXXXXX-1", "0") in new stack
-- Executing [s@func-apply-sipheaders:13] Return("DAHDI/i1/8937XXXXXXX-1", "") in new stack
== Spawn extension (from-digital, 8937XXXXXXX, 1) exited non-zero on 'DAHDI/i1/8937XXXXXXX-1'
-- DAHDI/i1/8937XXXXXXX-1 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
PRI Span: 1 -- Making new call for cref 32769
-- Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=44
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Transmitting N(S)=1, window is open V(A)=1 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=44
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 > [04 03 80 90 a3]
PRI Span: 1 > Bearer Capability (len= 5) [ Ext: 1 Coding-Std: 0 Info transfer capability: Speech (0)
PRI Span: 1 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
PRI Span: 1 > User information layer 1: A-Law (35)
PRI Span: 1 > [18 03 a1 83 81]
PRI Span: 1 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Preferred Dchan: 0
PRI Span: 1 > ChanSel: As indicated in following octets
PRI Span: 1 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 > Ext: 1 Channel: 1 Type: CPE]
PRI Span: 1 > [6c 0c 21 80 38 34 36 34 39 38 34 31 31 35]
PRI Span: 1 > Calling Party Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
PRI Span: 1 > Presentation: Presentation allowed, User-provided, not screened (0) '846XXXXXXX' ]
PRI Span: 1 > [70 0c 80 38 39 33 37 36 36 39 35 31 36 33]
PRI Span: 1 > Called Party Number (len=14) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '8937XXXXXXX' ]
PRI Span: 1 > [a1]
PRI Span: 1 > Sending Complete (len= 1)
PRI Span: 1 q931.c:6531 q931_setup: Call 32769 enters state 1 (Call Initiated). Hold state: Idle
-- Called DAHDI/g1/8937XXXXXXX
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=14
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: CALL PROCEEDING (2)
PRI Span: 1 < [18 03 a9 83 81]
PRI Span: 1 < Channel ID (len= 5) [ Ext: 1 IntID: Implicit Other(PRI) Spare: 0 Exclusive Dchan: 0
PRI Span: 1 < ChanSel: As indicated in following octets
PRI Span: 1 < Ext: 1 Coding: 0 Number Specified Channel Type: 3
PRI Span: 1 < Ext: 1 Channel: 1 Type: CPE]
PRI Span: 1 < [1e 02 82 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 Received message for call 0x7efcb80156d0 on link 0x3384410 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 24 (cs0, Channel ID)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 q931.c:9095 post_handle_q931_message: Call 32769 enters state 3 (Outgoing Call Proceeding). Hold state: Idle
Span 1: Processing event PRI_EVENT_PROCEEDING(13)
-- DAHDI/i1/8937XXXXXXX-1 is proceeding passing it to PJSIP/2041-00000000
-- DAHDI/i1/8937XXXXXXX-1 is making progress passing it to PJSIP/2041-00000000
> 0x7efc880e5590 -- Strict RTP learning after remote address set to: 192.168.40.121:5072
> 0x7efc880e5590 -- Strict RTP switching to RTP target address 192.168.40.121:5072 as source
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=26
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: DISCONNECT (69)
PRI Span: 1 < [08 02 83 9f]
PRI Span: 1 < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Transit network (3)
PRI Span: 1 < Ext: 1 Cause: Normal, unspecified (31), class = Normal Event (1) ]
PRI Span: 1 < [1e 02 82 88]
PRI Span: 1 < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
PRI Span: 1 < Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
PRI Span: 1 < [28 0b 43 4f 4e 47 45 53 54 49 4f 4e 20]
PRI Span: 1 < Display (len=11) [ CONGESTION ]
PRI Span: 1 Received message for call 0x7efcb80156d0 on link 0x3384410 TEI/SAPI 0/0
PRI Span: 1 -- Processing IE 8 (cs0, Cause)
PRI Span: 1 -- Processing IE 30 (cs0, Progress Indicator)
PRI Span: 1 -- Processing IE 40 (cs0, Display)
PRI Span: 1 -- Found active call: 0x7efcb80156d0 cref:32769
PRI Span: 1 q931.c:9345 post_handle_q931_message: Call 32769 enters state 12 (Disconnect Indication). Hold state: Idle
Span 1: Processing event PRI_EVENT_HANGUP_REQ(15)
-- Span 1: Channel 0/1 got hangup request, cause 31
PRI Span: 1 q931.c:7332 q931_hangup: Hangup other cref:32769
PRI Span: 1 q931.c:7089 __q931_hangup: ourstate Disconnect Indication, peerstate Disconnect Request, hold-state Idle
PRI Span: 1 q931.c:6124 q931_release: Call 32769 enters state 19 (Release Request). Hold state: Idle
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 TEI=0 Transmitting N(S)=2, window is open V(A)=2 K=7
PRI Span: 1
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=9
PRI Span: 1 > TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent from originator)
PRI Span: 1 > Message Type: RELEASE (77)
PRI Span: 1 > [08 02 81 9f]
PRI Span: 1 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
PRI Span: 1 > Ext: 1 Cause: Normal, unspecified (31), class = Normal Event (1) ]
-- Hungup 'DAHDI/i1/8937XXXXXXX-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/2041-00000000", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 31") in new stack
-- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/2041-00000000", "1?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/2041-00000000", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 31 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/2041-00000000", "1?Set(CALLERID(number)=2041)") in new stack
-- Executing [8937XXXXXXX@from-internal:13] Macro("PJSIP/2041-00000000", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("PJSIP/2041-00000000", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("PJSIP/2041-00000000", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("PJSIP/2041-00000000", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("PJSIP/2041-00000000", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
PRI Span: 1
PRI Span: 1 < Protocol Discriminator: Q.931 (8) len=5
PRI Span: 1 < TEI=0 Call Ref: len= 2 (reference 1/0x1) (Sent to originator)
PRI Span: 1 < Message Type: RELEASE COMPLETE (90)
PRI Span: 1 Received message for call 0x7efcb80156d0 on link 0x3384410 TEI/SAPI 0/0
PRI Span: 1 q931.c:9204 post_handle_q931_message: Call 32769 enters state 0 (Null). Hold state: Idle
PRI Span: 1 q931.c:7332 q931_hangup: Hangup other cref:32769
PRI Span: 1 q931.c:7089 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 1 Destroying call 0x7efcb80156d0, ourstate Null, peerstate Null, hold-state Idle
UPD
То, как сейчас выглядит диалплан в частях где упоминается prohib_passed_screen

Код: Выделить всё

grep -r prohib_passed_screen /etc/asterisk/
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

Код: Выделить всё

exten => s,n(hidecid),ExecIf($["${CALLERID(name)}"="hidden"]?Set(CALLERID(name-pres)=prohib_passed_screen))
exten => s,n,ExecIf($["${CALLERID(name)}"="hidden"]?Set(CALLERID(num-pres)=prohib_passed_screen))
exten => s,n,ExecIf($["${TIOHIDE}"="yes"]?Set(CALLERID(name-pres)=prohib_passed_screen))
exten => s,n,ExecIf($["${TIOHIDE}"="yes"]?Set(CALLERID(num-pres)=prohib_passed_screen))
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH