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

Проблема с исходящими звонками.

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

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

Alexey_761
Сообщения: 10
Зарегистрирован: 11 авг 2014, 20:18

Проблема с исходящими звонками.

Сообщение Alexey_761 »

Приветствую всех присутствующих!!

Мозг успешно сломан :)

Без посторонней помощи не справиться...

Все остальное работает, сип зарегин у провайдера, входящие звонки работают.

Проблема с исходящими звонками.

В CLI пишет:

Connected to Asterisk 11.10.2 currently running on localhost (pid = 1614)
> Saved useragent "RSIP SP2.0 v2.0" for peer 101
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [904542XXXX@from-sip-external:1] NoOp("SIP/101-00000000", "Received incoming SIP connection from unknown peer to 904542XXXX") in new stack
-- Executing [904542XXXX@from-sip-external:2] Set("SIP/101-00000000", "DID=904542XXXX") in new stack
-- Executing [904542XXXX@from-sip-external:3] Goto("SIP/101-00000000", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/101-00000000", "0?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,5)
-- Executing [s@from-sip-external:5] Set("SIP/101-00000000", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2014-08-11 11:32:40.658 EDT.
-- Executing [s@from-sip-external:6] Log("SIP/101-00000000", "WARNING,"Rejecting unknown SIP connection from 192.168.0.111"") in new stack
[2014-08-11 11:32:25] WARNING[2295][C-00000000]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 192.168.0.111"
-- Executing [s@from-sip-external:7] Answer("SIP/101-00000000", "") in new stack
> 0xb7324b00 -- Probation passed - setting RTP source address to 192.168.0.111:23546
-- Executing [s@from-sip-external:8] Wait("SIP/101-00000000", "2") in new stack
[2014-08-11 11:32:25] NOTICE[2295][C-00000000]: channel.c:4301 __ast_read: Dropping incompatible voice frame on SIP/101-00000000 of format gsm since our native format has changed to (ulaw)
-- Executing [s@from-sip-external:9] Playback("SIP/101-00000000", "ss-noservice") in new stack
-- <SIP/101-00000000> Playing 'ss-noservice.ulaw' (language 'en')
-- Executing [s@from-sip-external:10] PlayTones("SIP/101-00000000", "congestion") in new stack
-- Executing [s@from-sip-external:11] Congestion("SIP/101-00000000", "5") in new stack
== Spawn extension (from-sip-external, s, 11) exited non-zero on 'SIP/101-00000000'
-- Executing [h@from-sip-external:1] Hangup("SIP/101-00000000", "") in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/101-00000000'
localhost*CLI>


Весьма смущает фраза:

WARNING,"Rejecting unknown SIP connection from 192.168.0.111

В чем может быть причина?
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: Проблема с исходящими звонками.

Сообщение Vlad1983 »

Alexey_761 писал(а):-- Executing [904542XXXX@from-sip-external:1] NoOp("SIP/101-00000000", "Received incoming SIP connection from unknown peer to 904542XXXX") in new stack
-- Executing [904542XXXX@from-sip-external:2] Set("SIP/101-00000000", "DID=904542XXXX") in new stack
а это не смущает?
ЛС: @rostel
Alexey_761
Сообщения: 10
Зарегистрирован: 11 авг 2014, 20:18

Re: Проблема с исходящими звонками.

Сообщение Alexey_761 »

Ну новенький я... по подробней плиз.
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: Проблема с исходящими звонками.

Сообщение Vlad1983 »

должно быть

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

[101]
type=friend
...
ЛС: @rostel
Alexey_761
Сообщения: 10
Зарегистрирован: 11 авг 2014, 20:18

Re: Проблема с исходящими звонками.

Сообщение Alexey_761 »

Проверил так и есть...
TVMaker
Сообщения: 134
Зарегистрирован: 05 сен 2013, 19:01

Re: Проблема с исходящими звонками.

Сообщение TVMaker »

А вызов на 904542ХХХХ - это куда? В Турцию или что-то типа "7" или "8" пропущено впереди?
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: Проблема с исходящими звонками.

Сообщение Vlad1983 »

уберите все insecure
попробуйте нормальным софтфоном (X-lite, Linphone, MicroSip...)
ЛС: @rostel
Alexey_761
Сообщения: 10
Зарегистрирован: 11 авг 2014, 20:18

Re: Проблема с исходящими звонками.

Сообщение Alexey_761 »

С 8 и +7 попробовал, результат тоже.

insecure нашел только в транке, но он там обязателен, провайдер только так работает.

Во внутренних номерах insecure не нашел.
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: Проблема с исходящими звонками.

Сообщение Vlad1983 »

с внутренних не должно быть попаданий в контекст from-sip-external
ЛС: @rostel
Alexey_761
Сообщения: 10
Зарегистрирован: 11 авг 2014, 20:18

Re: Проблема с исходящими звонками.

Сообщение Alexey_761 »

На счет контекста согласен, исправил. Его поставил тоже в результате эксперементов.

Сейчас немного другая ошибка.

Перевел, говорит типа "заняты все цепи"...

Это про что?

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

  -- Executing [904542XXXX@from-internal:1] Macro("SIP/101-0000001a", "user-ca                                                                                       llerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/101-0000001a", "TOUCH_MONITO                                                                                       R=1407853672.26") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/101-0000001a", "AMPUSER=101"                                                                                       ) in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/101-0000001a", "0?report"                                                                                       ) in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/101-0000001a", "1?Set(REA                                                                                       LCALLERIDNUM=101)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/101-0000001a", "AMPUSER=101"                                                                                       ) in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/101-0000001a", "0?limit")                                                                                        in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/101-0000001a", "AMPUSERCIDNA                                                                                       ME=101") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/101-0000001a", "0?report"                                                                                       ) in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/101-0000001a", "AMPUSERCID=1                                                                                       01") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/101-0000001a", "__DIAL_OPTI                                                                                       ONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/101-0000001a", "CALLERID(al                                                                                       l)="101" <101>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/101-0000001a", "0?limit"                                                                                       ) in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/101-0000001a", "1?Set(GR                                                                                       OUP(concurrency_limit)=101)") in new stack
    -- Executing [s@macro-user-callerid:14] GosubIf("SIP/101-0000001a", "7?sub-c                                                                                       css,s,1(from-internal,904542XXXX)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/101-0000001a", "0?Return()") in new                                                                                        stack
    -- Executing [s@sub-ccss:2] Set("SIP/101-0000001a", "CCSS_SETUP=TRUE") in ne                                                                                       w stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/101-0000001a", "0?monitor_config,1(                                                                                       from-internal,904542XXXX):monitor_default,1(from-internal,904542XXXX)") in new s                                                                                       tack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/101-0000001a", "0?is_e                                                                                       xten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/101-0000001a", "") i                                                                                       n new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/101-0000001a", "FALSE"                                                                                       ) in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/101-0000001a", "1?contin                                                                                       ue") in new stack
    -- Goto (macro-user-callerid,s,28)
    -- Executing [s@macro-user-callerid:28] Set("SIP/101-0000001a", "CALLERID(nu                                                                                       mber)=101") in new stack
    -- Executing [s@macro-user-callerid:29] Set("SIP/101-0000001a", "CALLERID(na                                                                                       me)=101") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/101-0000001a", "CDR(cnum)=1                                                                                       01") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/101-0000001a", "CDR(cnam)=1                                                                                       01") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/101-0000001a", "CHANNEL(lan                                                                                       guage)=en") in new stack
    -- Executing [904542XXXX@from-internal:2] Set("SIP/101-0000001a", "MOHCLASS=                                                                                       default") in new stack
    -- Executing [904542XXXX@from-internal:3] ExecIf("SIP/101-0000001a", "1?Set(                                                                                       TRUNKCIDOVERRIDE=holkin01)") in new stack
    -- Executing [9045426488@from-internal:4] Set("SIP/101-0000001a", "_NODEST="                                                                                       ) in new stack
    -- Executing [904542XXXX@from-internal:5] Gosub("SIP/101-0000001a", "sub-rec                                                                                       ord-check,s,1(out,904542XXXX,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/101-0000001a", "REC_POLICY_MODE                                                                                       _SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/101-0000001a", "1?check") in                                                                                        new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/101-0000001a", "__MON_FMT=wav")                                                                                        in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/101-0000001a", "1?next") in                                                                                        new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/101-0000001a", "0?Return()"                                                                                       ) in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/101-0000001a", "0?Set(__REC                                                                                       _POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/101-0000001a", "0?out,1") i                                                                                       n new stack
    -- Executing [s@sub-record-check:14] Set("SIP/101-0000001a", "__REC_STATUS=I                                                                                       NITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/101-0000001a", "NOW=1407853672                                                                                       ") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/101-0000001a", "__DAY=12") in                                                                                        new stack
    -- Executing [s@sub-record-check:17] Set("SIP/101-0000001a", "__MONTH=08") i                                                                                       n new stack
    -- Executing [s@sub-record-check:18] Set("SIP/101-0000001a", "__YEAR=2014")                                                                                        in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/101-0000001a", "__TIMESTR=2014                                                                                       0812-102752") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/101-0000001a", "__FROMEXTEN=10                                                                                       1") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/101-0000001a", "__CALLFILENAME                                                                                       =out-9045426488-101-20140812-102752-1407853672.26") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/101-0000001a", "out,1") in ne                                                                                       w stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/101-0000001a", "1?Set(__RE                                                                                       C_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/101-0000001a", "0?record,                                                                                       1(exten,9045426488,101)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/101-0000001a", "") in new                                                                                        stack
    -- Executing [9045426488@from-internal:6] Macro("SIP/101-0000001a", "dialout                                                                                       -trunk,2,9045426488,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/101-0000001a", "DIAL_TRUNK=2                                                                                       ") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/101-0000001a", "0?sub-pi                                                                                       ncheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/101-0000001a", "0?disable                                                                                       trunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/101-0000001a", "DIAL_NUMBER=                                                                                       9045426488") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/101-0000001a", "DIAL_TRUNK_O                                                                                       PTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/101-0000001a", "OUTBOUND_GRO                                                                                       UP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/101-0000001a", "1?nomax")                                                                                        in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/101-0000001a", "0?skipout                                                                                       cid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/101-0000001a", "DIAL_TRUNK_                                                                                       OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/101-0000001a", "outbound-                                                                                       callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/101-0000001a", "0?Set                                                                                       (CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/101-0000001a", "0?Set                                                                                       (REALCALLERIDNUM=101)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/101-0000001a", "1?nor                                                                                       mcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/101-0000001a", "USEROUTC                                                                                       ID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/101-0000001a", "EMERGENC                                                                                       YCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/101-0000001a", "TRUNKOUT                                                                                       CID=holkin01") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/101-0000001a", "1?tru                                                                                       nkcid") in new stack
    -- Goto (macro-outbound-callerid,s,14)
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/101-0000001a", "1?Se                                                                                       t(CALLERID(all)=holkin01)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/101-0000001a", "0?Se                                                                                       t(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/101-0000001a", "1?Se                                                                                       t(CALLERID(all)=holkin01)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/101-0000001a", "0?Se                                                                                       t(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/101-0000001a", "CDR(out                                                                                       bound_cnum)=") in new stack
    -- Executing [s@macro-outbound-callerid:19] Set("SIP/101-0000001a", "CDR(out                                                                                       bound_cnam)=holkin01") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/101-0000001a", "0?sub-f                                                                                       lp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/101-0000001a", "OUTNUM=9045                                                                                       426488") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/101-0000001a", "custom=SIP/                                                                                       holkin01") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/101-0000001a", "0?Set(DI                                                                                       AL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/101-0000001a", "0?Set(DI                                                                                       AL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/101-0000001a", "dialout-t                                                                                       runk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/101-00000                                                                                       01a", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/101-0000001a", "0?bypass                                                                                       ,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/101-0000001a", "1?Set(CO                                                                                       NNECTEDLINE(num,i)=9045426488)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/101-0000001a", "1?Set(CO                                                                                       NNECTEDLINE(name,i)=CID:)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/101-0000001a", "0?custom                                                                                       trunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/101-0000001a", "SIP/holkin                                                                                       01/904542XXXX,300,Tt") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/holkin01/9045426488
[2014-08-12 10:27:52] WARNING[1654][C-00000010]: chan_sip.c:23127 handle_respons                                                                                       e_invite: Received response: "Forbidden" from '"holkin01" <sip:Unknown@192.168.0                                                                                       .110>;tag=as22dd5c5c'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/101-0000001a", "Dial faile                                                                                       d for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new st                                                                                       ack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/101-0000001a", "0?contin                                                                                       ue,1:s-CHANUNAVAIL,1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/101-0000001a", "                                                                                       RC=21") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/101-0000001a",                                                                                        "21,1") in new stack
    -- Goto (macro-dialout-trunk,21,1)
    -- Executing [21@macro-dialout-trunk:1] Goto("SIP/101-0000001a", "continue,1                                                                                       ") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/101-0000001a", "TRUN                                                                                       K Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trun                                                                                       ks") in new stack
    -- Executing [continue@macro-dialout-trunk:2] Set("SIP/101-0000001a", "CALLE                                                                                       RID(number)=101") in new stack
    -- Executing [9045426488@from-internal:7] Macro("SIP/101-0000001a", "outisbu                                                                                       sy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/101-0000001a", "") in new s                                                                                       tack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/101-0000001a", "0?emergency,1                                                                                       ") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/101-0000001a", "0?intracompan                                                                                       y,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/101-0000001a", "all-circuit                                                                                       s-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/101-0000001a> Playing 'all-circuits-busy-now.gsm' (language 'en')
  == Spawn extension (macro-outisbusy, s, 4) exited non-zero on 'SIP/101-0000001                                                                                       a' in macro 'outisbusy'
  == Spawn extension (from-internal, 904542XXXX, 7) exited non-zero on 'SIP/101-                                                                                       0000001a'
    -- Executing [h@from-internal:1] Hangup("SIP/101-0000001a", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/101-0000001a'
localhost*CLI>
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH