Доброго дня!
Подскажите пожалуйста, как правильно настроить исходящие/входящие правила.
SIP-провайдер предоставляет 4-х канальный телефон.
От него пришла информация вида.
Сервер 213.х.х.х
UserID (4 штуки) user1, user2, user3, user4 (но внешний номер один - многоканальный)
Пароль Password
У меня внутри пусть будут 4 номера телефона - 101,102,103 и 104.
Нужно сделать, чтобы все 4 могли одновременно звонить наружу. И входящий звонок распределялся на все внутренние телефоны (на те, что не заняты в данный момент).
Мало информации. Ни о чем. Что стоит? Какие версии?
В общем виде ответ на вопрос - описать в соответствующих файлах конфигурации внутренние номера, транки до провайдера и настроить желаемую маршрутизацию и стратегию звонков.
Может кто встречался с другой проблемой?
При наборе номера астериск соединяет, внешний телефон звонит, разговор проходит нормально, но нет никакой сигнализации на внутренней трубке при работе именно через этот выход на город! Нет длинных гудков перед тем как поднимут трубку, нет коротких об окончании разговора.
exten => _98XXXXXXXXXX,1,Dial(SIP/sipout/${EXTEN:1},,tTr)
Идите в библиотеку. http://asterisk.ru/knowledgebase/books
Ваши вопросы стандартны, от незнания, ответы тоже будут стандартными.
Это все я уже видел.
С параметром r гудки перед снятием трубки - есть, а вот звуков отбоя нет. При добавлении tT - пропадает голос вообще. Абоненты не слышат друг друга.
Ребята, помогите пожалуйста, не работают исходящие звонки. Elastix 2.2.0 , Asterisk 1.8.7.0 , freePBX 2.8.1. Настраиваюсь через freePBX. Входящие заходят, внутрение номера между собой перезваниваются. В пункте "Asterisk logfiles" пишет:
[Mar 27 21:13:11] VERBOSE[3531] netsock2.c: == Using SIP RTP TOS bits 184
[Mar 27 21:13:11] VERBOSE[3531] netsock2.c: == Using SIP RTP CoS mark 5
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:1] Macro("SIP/2003-00000017", "user-callerid,SKIPTTL,") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/2003-00000017", "AMPUSER=2003") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2003-00000017", "0?report") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2003-00000017", "1?Set(REALCALLERIDNUM=2003)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2003-00000017", "AMPUSER=2003") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2003-00000017", "AMPUSERCIDNAME=roman") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2003-00000017", "0?report") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2003-00000017", "AMPUSERCID=2003") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2003-00000017", "CALLERID(all)="roman" <2003>") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2003-00000017", "0?Set(CHANNEL(language)=)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2003-00000017", "1?continue") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Goto (macro-user-callerid,s,19)
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:19] Set("SIP/2003-00000017", "CALLERID(number)=2003") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:20] Set("SIP/2003-00000017", "CALLERID(name)=roman") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-user-callerid:21] NoOp("SIP/2003-00000017", "Using CallerID "roman" <2003>") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:2] NoOp("SIP/2003-00000017", "Calling Out Route: outside") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:3] Set("SIP/2003-00000017", "MOHCLASS=default") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:4] Set("SIP/2003-00000017", "_NODEST=") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:5] Macro("SIP/2003-00000017", "record-enable,2003,OUT,") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/2003-00000017", "1?check") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Goto (macro-record-enable,s,4)
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("SIP/2003-00000017", "0?MacroExit()") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("SIP/2003-00000017", "0?Group:OUT") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Goto (macro-record-enable,s,15)
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("SIP/2003-00000017", "0?IN") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("SIP/2003-00000017", "1?MacroExit()") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:6] Macro("SIP/2003-00000017", "dialout-trunk,1,453075,") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/2003-00000017", "DIAL_TRUNK=1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/2003-00000017", "0?sub-pincheck,s,1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/2003-00000017", "0?disabletrunk,1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/2003-00000017", "DIAL_NUMBER=453075") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/2003-00000017", "DIAL_TRUNK_OPTIONS=tr") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/2003-00000017", "OUTBOUND_GROUP=OUT_1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/2003-00000017", "1?nomax") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Goto (macro-dialout-trunk,s,9)
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/2003-00000017", "0?skipoutcid") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/2003-00000017", "DIAL_TRUNK_OPTIONS=") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/2003-00000017", "outbound-callerid,1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/2003-00000017", "0?Set(CALLERPRES()=)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/2003-00000017", "0?Set(REALCALLERIDNUM=2003)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/2003-00000017", "1?normcid") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/2003-00000017", "USEROUTCID=") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/2003-00000017", "EMERGENCYCID=") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/2003-00000017", "TRUNKOUTCID=950410") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/2003-00000017", "1?trunkcid") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Goto (macro-outbound-callerid,s,12)
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/2003-00000017", "1?Set(CALLERID(all)=950410)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/2003-00000017", "0?Set(CALLERID(all)=)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/2003-00000017", "0?Set(CALLERID(all)=)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/2003-00000017", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/2003-00000017", "1?sub-flp-1,s,1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@sub-flp-1:1] ExecIf("SIP/2003-00000017", "0?Set(TARGET_FLP_1=53075)") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@sub-flp-1:2] GotoIf("SIP/2003-00000017", "0?match") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@sub-flp-1:3] Return("SIP/2003-00000017", "") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/2003-00000017", "OUTNUM=9453075") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/2003-00000017", "custom=SIP/cst1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/2003-00000017", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/2003-00000017", "dialout-trunk-predial-hook,") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/2003-00000017", "") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/2003-00000017", "0?bypass,1") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/2003-00000017", "0?customtrunk") in new stack
[Mar 27 21:13:11] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/2003-00000017", "SIP/cst1/9453075,300,") in new stack
[Mar 27 21:13:11] VERBOSE[7961] netsock2.c: == Using SIP RTP TOS bits 184
[Mar 27 21:13:11] VERBOSE[7961] netsock2.c: == Using SIP RTP CoS mark 5
[Mar 27 21:13:11] VERBOSE[7961] app_dial.c: -- Called SIP/cst1/9453075
[Mar 27 21:13:43] VERBOSE[7961] app_dial.c: -- SIP/cst1-00000018 is circuit-busy
[Mar 27 21:13:43] VERBOSE[7961] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/2003-00000017", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 0") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s@macro-dialout-trunk:21] Goto("SIP/2003-00000017", "s-CONGESTION,1") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Goto (macro-dialout-trunk,s-CONGESTION,1)
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s-CONGESTION@macro-dialout-trunk:1] Set("SIP/2003-00000017", "RC=0") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("SIP/2003-00000017", "0,1") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Goto (macro-dialout-trunk,0,1)
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [0@macro-dialout-trunk:1] Goto("SIP/2003-00000017", "continue,1") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Goto (macro-dialout-trunk,continue,1)
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/2003-00000017", "1?noreport") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Goto (macro-dialout-trunk,continue,3)
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/2003-00000017", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 0 - failing through to other trunks") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [continue@macro-dialout-trunk:4] Set("SIP/2003-00000017", "CALLERID(number)=2003") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [9453075@from-internal:7] Macro("SIP/2003-00000017", "outisbusy,") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s@macro-outisbusy:1] Progress("SIP/2003-00000017", "") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s@macro-outisbusy:2] GotoIf("SIP/2003-00000017", "0?emergency,1") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s@macro-outisbusy:3] GotoIf("SIP/2003-00000017", "0?intracompany,1") in new stack
[Mar 27 21:13:43] VERBOSE[7961] pbx.c: -- Executing [s@macro-outisbusy:4] Playback("SIP/2003-00000017", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
[Mar 27 21:13:43] VERBOSE[7961] file.c: -- <SIP/2003-00000017> Playing 'all-circuits-busy-now.gsm' (language 'en')
[Mar 27 21:13:43] WARNING[3531] chan_sip.c: Retransmission timeout reached on transmission 281f42ce56647269626c92066372f69c@192.168.0.2:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32001ms with no response
[Mar 27 21:13:45] VERBOSE[7961] file.c: -- <SIP/2003-00000017> Playing 'pls-try-call-later.gsm' (language 'en')
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-outisbusy:5] Congestion("SIP/2003-00000017", "20") in new stack
[Mar 27 21:13:47] WARNING[7961] channel.c: Prodding channel 'SIP/2003-00000017' failed
[Mar 27 21:13:47] VERBOSE[7961] app_macro.c: == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/2003-00000017' in macro 'outisbusy'
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: == Spawn extension (from-internal, 9453075, 7) exited non-zero on 'SIP/2003-00000017'
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/2003-00000017", "hangupcall") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2003-00000017", "1?endmixmoncheck") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,9)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:9] NoOp("SIP/2003-00000017", "End of MIXMON check") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:10] GotoIf("SIP/2003-00000017", "1?nomeetmemon") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,15)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:15] NoOp("SIP/2003-00000017", "MEETME_RECORDINGFILE=") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:16] GotoIf("SIP/2003-00000017", "1?noautomon") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,18)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:18] NoOp("SIP/2003-00000017", "TOUCH_MONITOR_OUTPUT=") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:19] GotoIf("SIP/2003-00000017", "1?noautomon2") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,25)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:25] NoOp("SIP/2003-00000017", "MONITOR_FILENAME=") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:26] GotoIf("SIP/2003-00000017", "1?skiprg") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,29)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:29] GotoIf("SIP/2003-00000017", "1?skipblkvm") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,32)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:32] GotoIf("SIP/2003-00000017", "1?theend") in new stack
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Goto (macro-hangupcall,s,34)
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: -- Executing [s@macro-hangupcall:34] Hangup("SIP/2003-00000017", "") in new stack
[Mar 27 21:13:47] VERBOSE[7961] app_macro.c: == Spawn extension (macro-hangupcall, s, 34) exited non-zero on 'SIP/2003-00000017' in macro 'hangupcall'
[Mar 27 21:13:47] VERBOSE[7961] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2003-00000017'
В трубке "all circuis are busy now" Что делать? какой лог, какой конфиг выложить? Очень прошу помочь мне!
Извиняюсь за лишний мусор!