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

Исходящая маршрутизация несколькольких номеров через 1 транк

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

Модератор: april22

Исходящая маршрутизация несколькольких номеров через 1 транк

Сообщение hideki » 07 ноя 2017, 19:14

Приветствую вас, коллеги всем.
серфил по веткам, в поисках моей проблемы, но так ничего не нашел что могло бы мне помочь, потому обращаюсь к умам сего форума.

Не могу настроить исходящую маршрутизацию нескольких номеров через 1 транк, опишу более подробно:
Система FreePBX 14.0.1.20 (Sangoma), Asterisk 13.17.2
Подключение к провайдеру через 1 транк, 3 линии и 10 номеров
Inbound Routes - входящие звонки настроил, проблем не возникло
а вот на счет Outbound (исходящих) мои попытки увенчались неудачей, все звонки выходят через 1 номер (12311111)
Подскажите как реализовать такое:
ринг група 1 (номера 100,102,103) - выходили через -> 12355555, група 2 (200,201,202) -> 12366666

Спасибо.
hideki
 
Сообщений: 12
Зарегистрирован: 03 ноя 2017, 13:53

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение april22 » 07 ноя 2017, 22:41

Создайте три исходящих маршрута, каждый со своим caller id
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2122
Зарегистрирован: 09 июл 2012, 09:47

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение hideki » 08 ноя 2017, 00:15

april22 писал(а):Создайте три исходящих маршрута, каждый со своим caller id

Создаю Outbound Routes
Route Settings:
name: test
Route CID: 12355555
Override Extension: no (пробовал из yes)
Trunk Sequence for Matched: Test_Trunk

Dial Patterns:
+XXXX. CallerID (100) - пробовал указать CallerID 12355555
XXXX. CallerID (100)



(100 - extension user)
Outbound CID: 12355555
hideki
 
Сообщений: 12
Зарегистрирован: 03 ноя 2017, 13:53

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение april22 » 08 ноя 2017, 11:46

а в консоли что !?
Своими вопросами , вы загоняете меня в ГУГЛЬ.
april22
 
Сообщений: 2122
Зарегистрирован: 09 июл 2012, 09:47

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение virus_net » 08 ноя 2017, 11:58

консоль !
мой SIP URI sip:virus_net@asterisk.ru
bitname.ru - Домены .bit (namecoin) .emc .coin .lib .bazar (emercoin)

ENUMER - звони бесплатно и напрямую.
virus_net
 
Сообщений: 2319
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение ded » 08 ноя 2017, 12:17

hideki писал(а):а вот на счет Outbound (исходящих) мои попытки увенчались неудачей, все звонки выходят через 1 номер (12311111).
Возможно провайдер перекрывает все вызовы этим вашим номером на свой стороне. Проверьте в ручном режиме:
[from-internal-custom]

exten => _X./100,1,Set(CALLERID(num)=12355555)
exten => _X./100,n,Dial(SIP/operator/${EXTEN})

Контроль через консоль, звоните на свой мобильный, с номера 100 должен выпрыгнуть через указаный транк и номером 12355555.
ded
 
Сообщений: 14386
Зарегистрирован: 26 авг 2010, 19:00

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение hideki » 08 ноя 2017, 13:11

virus_net писал(а):консоль !

Код: выделить все
   -- Executing [9999999999@from-internal:2] Gosub("SIP/100-000000f7", "sub-record-check,s,1(out,9999999999,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/100-000000f7", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/100-000000f7", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/100-000000f7", "NOW=1510127601") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/100-000000f7", "__DAY=08") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/100-000000f7", "__MONTH=11") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/100-000000f7", "__YEAR=2017") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/100-000000f7", "__TIMESTR=20171108-085321") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/100-000000f7", "__FROMEXTEN=unknown") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/100-000000f7", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/100-000000f7", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/100-000000f7", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/100-000000f7", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/100-000000f7", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/100-000000f7", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/100-000000f7", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("SIP/100-000000f7", "Outbound Recording Check from unknown to 9999999999") in new stack
    -- Executing [out@sub-record-check:2] Set("SIP/100-000000f7", "RECMODE=") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("SIP/100-000000f7", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("SIP/100-000000f7", "recordcheck,1(dontcare,out,9999999999)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/100-000000f7", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/100-000000f7", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/100-000000f7", "") in new stack
    -- Executing [out@sub-record-check:8] Return("SIP/100-000000f7", "") in new stack
    -- Executing [9999999999@from-internal:3] ExecIf("SIP/100-000000f7", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [9999999999@from-internal:4] Set("SIP/100-000000f7", "MOHCLASS=default") in new stack
    -- Executing [9999999999@from-internal:5] ExecIf("SIP/100-000000f7", "1?Set(TRUNKCIDOVERRIDE=12355555)") in new stack
    -- Executing [9999999999@from-internal:6] Set("SIP/100-000000f7", "_NODEST=") in new stack
    -- Executing [9999999999@from-internal:7] Macro("SIP/100-000000f7", "dialout-trunk,1,9999999999,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/100-000000f7", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/100-000000f7", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] ExecIf("SIP/100-000000f7", "0?Set(CALLERID(num)=)") in new stack
    -- Executing [s@macro-dialout-trunk:4] GotoIf("SIP/100-000000f7", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/100-000000f7", "DIAL_NUMBER=9999999999") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/100-000000f7", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("SIP/100-000000f7", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("SIP/100-000000f7", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/100-000000f7", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("SIP/100-000000f7", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:11] GotoIf("SIP/100-000000f7", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:12] Macro("SIP/100-000000f7", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("SIP/100-000000f7", "") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("SIP/100-000000f7", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/100-000000f7", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] ExecIf("SIP/100-000000f7", "1?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [s@macro-outbound-callerid:7] GotoIf("SIP/100-000000f7", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,11)
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/100-000000f7", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/100-000000f7", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] Set("SIP/100-000000f7", "TRUNKOUTCID=12344444, 12355555, 12366666") in new stack
    -- Executing [s@macro-outbound-callerid:14] GotoIf("SIP/100-000000f7", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/100-000000f7", "1?Set(CALLERID(all)=12344444, 12355555, 12366666)") in new stack
    -- Executing [s@macro-outbound-callerid:20] ExecIf("SIP/100-000000f7", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:21] ExecIf("SIP/100-000000f7", "1?Set(CALLERID(all)=12355555)") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:23] ExecIf("SIP/100-000000f7", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:24] Set("SIP/100-000000f7", "CDR(outbound_cnum)=12355555") in new stack
    -- Executing [s@macro-outbound-callerid:25] Set("SIP/100-000000f7", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:13] GosubIf("SIP/100-000000f7", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/100-000000f7", "OUTNUM=9999999999") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("SIP/100-000000f7", "custom=SIP/voicedata") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/100-000000f7", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/100-000000f7", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:18] Macro("SIP/100-000000f7", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/100-000000f7", "") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/100-000000f7", "0?skipcrm") in new stack
    -- Executing [s@macro-dialout-trunk:20] Set("SIP/100-000000f7", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [s@macro-dialout-trunk:21] Set("SIP/100-000000f7", "__CRM_DESTINATION=9999999999") in new stack
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/100-000000f7", "__CRM_SOURCE=") in new stack
    -- Executing [s@macro-dialout-trunk:23] AGI("SIP/100-000000f7", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/100-000000f7>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/100-000000f7", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:25] NoOp("SIP/100-000000f7", "CRM Finished") in new stack
    -- Executing [s@macro-dialout-trunk:26] GotoIf("SIP/100-000000f7", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:27] ExecIf("SIP/100-000000f7", "0?Set(CONNECTEDLINE(num,i)=9999999999)") in new stack
    -- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/100-000000f7", "0?Set(CONNECTEDLINE(name,i)=CID:12355555)") in new stack
    -- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/100-000000f7", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)12355555)") in new stack
    -- Executing [s@macro-dialout-trunk:30] GotoIf("SIP/100-000000f7", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:31] Dial("SIP/100-000000f7", "SIP/voicedata/9999999999,300,T") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/voicedata/9999999999
       > 0x7f8afc0193e0 -- Strict RTP learning after remote address set to: 84.84.2.2:18686
    -- SIP/voicedata-000000f8 is making progress passing it to SIP/100-000000f7
       > 0x7f8ad404bb10 -- Strict RTP switching to RTP target address 192.168.0.111:56378 as source
       > 0x7f8afc0193e0 -- Strict RTP switching to RTP target address 84.84.2.2:18686 as source
       > 0x7f8ad404bb10 -- Strict RTP learning complete - Locking on source address 192.168.0.111:56378
       > 0x7f8afc0193e0 -- Strict RTP learning complete - Locking on source address 84.84.2.2:18686
  == Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on 'SIP/100-000000f7' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 9999999999, 7) exited non-zero on 'SIP/100-000000f7'
    -- Executing [h@from-internal:1] Macro("SIP/100-000000f7", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/100-000000f7", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("SIP/100-000000f7", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] NoOp("SIP/100-000000f7", "SIP/voicedata-000000f8 monior file= ") in new stack
    -- Executing [s@macro-hangupcall:5] AGI("SIP/100-000000f7", "attendedtransfer-rec-restart.php,SIP/voicedata-000000f8,") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
    -- <SIP/100-000000f7>AGI Script attendedtransfer-rec-restart.php completed, returning 0
    -- Executing [s@macro-hangupcall:6] Hangup("SIP/100-000000f7", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'SIP/100-000000f7' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-000000f7'
    -- SIP/100-000000f7 Internal Gosub(crm-hangup,s,1) start
    -- Executing [s@crm-hangup:1] NoOp("SIP/100-000000f7", "Sending Hangup to CRM") in new stack
    -- Executing [s@crm-hangup:2] NoOp("SIP/100-000000f7", "HANGUP CAUSE: 16") in new stack
    -- Executing [s@crm-hangup:3] ExecIf("SIP/100-000000f7", "0?Set(__CRM_VOICEMAIL=)") in new stack
    -- Executing [s@crm-hangup:4] NoOp("SIP/100-000000f7", "MASTER CHANNEL: 1510127601.260 = 1510127601.260") in new stack
    -- Executing [s@crm-hangup:5] GotoIf("SIP/100-000000f7", "0?return") in new stack
    -- Executing [s@crm-hangup:6] Set("SIP/100-000000f7", "__CRM_HANGUP=1") in new stack
    -- Executing [s@crm-hangup:7] AGI("SIP/100-000000f7", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/100-000000f7>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [s@crm-hangup:8] Return("SIP/100-000000f7", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-000000f7'
    -- SIP/100-000000f7 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=



9999999999 - номер на который осуществляется звонок
100 - екстеншен
TRUNKOUTCID 12344444, 12355555, 12366666
192.168.0.111 - мой ір с которого я звоню через zoiper
84.84.2.2 - адрес voip провайдера
hideki
 
Сообщений: 12
Зарегистрирован: 03 ноя 2017, 13:53

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение hideki » 08 ноя 2017, 13:27

/etc/asterisk/extensions_additional.conf
добавляю в параметр
[macro-user-callerid]
exten => s,n,Set(CALLERID(num)=12355555)
exten => s,n,Set(CALLERID(name)=1235555)
exten => s,n,MacroExit()

после звонка на пул номеров я получаю номер 12355555, а при звонке за приделы провайдера 12311111
hideki
 
Сообщений: 12
Зарегистрирован: 03 ноя 2017, 13:53

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение ded » 08 ноя 2017, 15:06

всё в норме. Несколько способов есть, основанных на тестовых строках (выше).
Вам надо усовершенствовать шаблон маршрута используя маску /100 в шаблоне, а не Route CID: 12355555
И убрать TRUNKOUTCID (или на нём указать Override Extension: no
ded
 
Сообщений: 14386
Зарегистрирован: 26 авг 2010, 19:00

Re: Исходящая маршрутизация несколькольких номеров через 1 т

Сообщение hideki » 08 ноя 2017, 19:30

ded писал(а):всё в норме. Несколько способов есть, основанных на тестовых строках (выше).
Вам надо усовершенствовать шаблон маршрута используя маску /100 в шаблоне, а не Route CID: 12355555
И убрать TRUNKOUTCID (или на нём указать Override Extension: no


В транке (TRUNKOUTCID ) убрал Outbound CallerID, Hide CallerID - No, Override Extension -No

Outbound Routes
Route CID - 12355550 - оставил

Extension: 100
Outbound CID - пусто

и вот что получилось :(
Код: выделить все
- Executing [9999999999@from-internal:2] Gosub("SIP/100-0000007d", "sub-record-check,s,1(out,9999999999,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/100-0000007d", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/100-0000007d", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/100-0000007d", "NOW=1510151231") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/100-0000007d", "__DAY=08") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/100-0000007d", "__MONTH=11") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/100-0000007d", "__YEAR=2017") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/100-0000007d", "__TIMESTR=20171108-152711") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/100-0000007d", "__FROMEXTEN=unknown") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/100-0000007d", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/100-0000007d", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/100-0000007d", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/100-0000007d", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/100-0000007d", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/100-0000007d", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/100-0000007d", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("SIP/100-0000007d", "Outbound Recording Check from unknown to 9999999999") in new stack
    -- Executing [out@sub-record-check:2] Set("SIP/100-0000007d", "RECMODE=") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("SIP/100-0000007d", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("SIP/100-0000007d", "recordcheck,1(dontcare,out,9999999999)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/100-0000007d", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/100-0000007d", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/100-0000007d", "") in new stack
    -- Executing [out@sub-record-check:8] Return("SIP/100-0000007d", "") in new stack
    -- Executing [9999999999@from-internal:3] ExecIf("SIP/100-0000007d", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [9999999999@from-internal:4] Set("SIP/100-0000007d", "MOHCLASS=default") in new stack
    -- Executing [9999999999@from-internal:5] ExecIf("SIP/100-0000007d", "1?Set(TRUNKCIDOVERRIDE=12355555)") in new stack
    -- Executing [9999999999@from-internal:6] Set("SIP/100-0000007d", "_NODEST=") in new stack
    -- Executing [9999999999@from-internal:7] Macro("SIP/100-0000007d", "dialout-trunk,1,9999999999,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/100-0000007d", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/100-0000007d", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] ExecIf("SIP/100-0000007d", "0?Set(CALLERID(num)=)") in new stack
    -- Executing [s@macro-dialout-trunk:4] GotoIf("SIP/100-0000007d", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/100-0000007d", "DIAL_NUMBER=9999999999") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/100-0000007d", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("SIP/100-0000007d", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("SIP/100-0000007d", "DIAL_TRUNK_OPTIONS=T") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/100-0000007d", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:10] GotoIf("SIP/100-0000007d", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:11] GotoIf("SIP/100-0000007d", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:12] Macro("SIP/100-0000007d", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("SIP/100-0000007d", "") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("SIP/100-0000007d", "") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/100-0000007d", "off") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("SIP/100-0000007d", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("SIP/100-0000007d", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:6] ExecIf("SIP/100-0000007d", "1?Set(REALCALLERIDNUM=100)") in new stack
    -- Executing [s@macro-outbound-callerid:7] GotoIf("SIP/100-0000007d", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,11)
    -- Executing [s@macro-outbound-callerid:11] Set("SIP/100-0000007d", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:12] Set("SIP/100-0000007d", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] Set("SIP/100-0000007d", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:14] GotoIf("SIP/100-0000007d", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/100-0000007d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:20] ExecIf("SIP/100-0000007d", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:21] ExecIf("SIP/100-0000007d", "1?Set(CALLERID(all)=12355555)") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("SIP/100-0000007d", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:23] ExecIf("SIP/100-0000007d", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:24] Set("SIP/100-0000007d", "CDR(outbound_cnum)=12355555") in new stack
    -- Executing [s@macro-outbound-callerid:25] Set("SIP/100-0000007d", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:13] GosubIf("SIP/100-0000007d", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/100-0000007d", "OUTNUM=9999999999") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("SIP/100-0000007d", "custom=SIP/voicedata") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/100-0000007d", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("SIP/100-0000007d", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:18] Macro("SIP/100-0000007d", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/100-0000007d", "") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/100-0000007d", "0?skipcrm") in new stack
    -- Executing [s@macro-dialout-trunk:20] Set("SIP/100-0000007d", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [s@macro-dialout-trunk:21] Set("SIP/100-0000007d", "__CRM_DESTINATION=9999999999") in new stack
    -- Executing [s@macro-dialout-trunk:22] Set("SIP/100-0000007d", "__CRM_SOURCE=") in new stack
    -- Executing [s@macro-dialout-trunk:23] AGI("SIP/100-0000007d", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/100-0000007d>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [s@macro-dialout-trunk:24] Set("SIP/100-0000007d", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:25] NoOp("SIP/100-0000007d", "CRM Finished") in new stack
    -- Executing [s@macro-dialout-trunk:26] GotoIf("SIP/100-0000007d", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:27] ExecIf("SIP/100-0000007d", "0?Set(CONNECTEDLINE(num,i)=9999999999)") in new stack
    -- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/100-0000007d", "0?Set(CONNECTEDLINE(name,i)=CID:12355555)") in new stack
    -- Executing [s@macro-dialout-trunk:29] ExecIf("SIP/100-0000007d", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)12355555)") in new stack
    -- Executing [s@macro-dialout-trunk:30] GotoIf("SIP/100-0000007d", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:31] Dial("SIP/100-0000007d", "SIP/voicedata/9999999999,300,T") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/voicedata/9999999999
       > 0x7f08f400d960 -- Strict RTP learning after remote address set to: 84.84.2.2:30240
    -- SIP/voicedata-0000007e is making progress passing it to SIP/100-0000007d
       > 0x7f091c7698c0 -- Strict RTP switching to RTP target address 192.168.0.111:61834 as source
       > 0x7f08f400d960 -- Strict RTP switching to RTP target address 84.84.2.2:30240 as source
       > 0x7f091c7698c0 -- Strict RTP learning complete - Locking on source address 192.168.0.111:61834
       > 0x7f08f400d960 -- Strict RTP learning complete - Locking on source address 84.84.2.2:30240
  == Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on 'SIP/100-0000007d' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 9999999999, 7) exited non-zero on 'SIP/100-0000007d'
    -- Executing [h@from-internal:1] Macro("SIP/100-0000007d", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/100-0000007d", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] ExecIf("SIP/100-0000007d", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] NoOp("SIP/100-0000007d", "SIP/voicedata-0000007e monior file= ") in new stack
    -- Executing [s@macro-hangupcall:5] AGI("SIP/100-0000007d", "attendedtransfer-rec-restart.php,SIP/voicedata-0000007e,") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
    -- <SIP/100-0000007d>AGI Script attendedtransfer-rec-restart.php completed, returning 0
    -- Executing [s@macro-hangupcall:6] Hangup("SIP/100-0000007d", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'SIP/100-0000007d' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-0000007d'
    -- SIP/100-0000007d Internal Gosub(crm-hangup,s,1) start
    -- Executing [s@crm-hangup:1] NoOp("SIP/100-0000007d", "Sending Hangup to CRM") in new stack
    -- Executing [s@crm-hangup:2] NoOp("SIP/100-0000007d", "HANGUP CAUSE: 16") in new stack
    -- Executing [s@crm-hangup:3] ExecIf("SIP/100-0000007d", "0?Set(__CRM_VOICEMAIL=)") in new stack
    -- Executing [s@crm-hangup:4] NoOp("SIP/100-0000007d", "MASTER CHANNEL: 1510151231.125 = 1510151231.125") in new stack
    -- Executing [s@crm-hangup:5] GotoIf("SIP/100-0000007d", "0?return") in new stack
    -- Executing [s@crm-hangup:6] Set("SIP/100-0000007d", "__CRM_HANGUP=1") in new stack
    -- Executing [s@crm-hangup:7] AGI("SIP/100-0000007d", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/100-0000007d>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [s@crm-hangup:8] Return("SIP/100-0000007d", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-0000007d'
    -- SIP/100-0000007d Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
hideki
 
Сообщений: 12
Зарегистрирован: 03 ноя 2017, 13:53

След.

Вернуться в Вопросы новичков

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 10

© 2008 — 2020 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH