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

Обратный звонок - проблема

Обо всем касательно FreePBX, MetPBX, TrixBox, Elastix, AstPBX и всех других дистрибутивов

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

Ответить
kirush
Сообщения: 23
Зарегистрирован: 13 май 2012, 14:05

Обратный звонок - проблема

Сообщение kirush »

Есть форма обратного звонка на сайте.
Asterisk 13.5.0 + FreePBX 13.0.1RC1.14 Stable
Обновил FreePBX на последний - перестал работать :( помогите понять в чем дело:
Заведен номер "110", на котором стоит переадресация в очередь "1000"
Вводим в форме любой номер, в логах заменил на (926) 111-11-11 (для примера)
Внешний транк (4999183284) через задарма.
Если позвонить на 110 - то очередь работает.

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

 -- Called 110
    -- Got SIP response 302 "Moved Temporarily" back from 10.1.7.252:5060
    -- Called 1000@from-internal
    -- Executing [1000@from-internal:1] Macro("Local/1000@from-internal-00000019;2", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/1000@from-internal-00000019;2", "TOUCH_MONITOR=1442935890.673") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Local/1000@from-internal-00000019;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Local/1000@from-internal-00000019;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("Local/1000@from-internal-00000019;2", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/1000@from-internal-00000019;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/1000@from-internal-00000019;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/1000@from-internal-00000019;2", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("Local/1000@from-internal-00000019;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,16)
    -- Executing [s@macro-user-callerid:16] GotoIf("Local/1000@from-internal-00000019;2", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:17] ExecIf("Local/1000@from-internal-00000019;2", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [s@macro-user-callerid:18] Set("Local/1000@from-internal-00000019;2", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:19] GotoIf("Local/1000@from-internal-00000019;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,30)
    -- Executing [s@macro-user-callerid:30] Set("Local/1000@from-internal-00000019;2", "CALLERID(number)=") in new stack
    -- Executing [s@macro-user-callerid:31] Set("Local/1000@from-internal-00000019;2", "CALLERID(name)=") in new stack
    -- Executing [s@macro-user-callerid:32] Set("Local/1000@from-internal-00000019;2", "CDR(cnum)=") in new stack
[2015-09-22 18:31:30] WARNING[2148]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)
)�Executing [s@macro-user-callerid:33] Set("Local/1000@from-internal-00000019;2", "CDR(cnam)=") in new stack
[2015-09-22 18:31:30] WARNING[2148]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)
    -- Executing [s@macro-user-callerid:34] Set("Local/1000@from-internal-00000019;2", "CHANNEL(language)=en") in new stack
    -- Executing [1000@from-internal:2] Answer("Local/1000@from-internal-00000019;2", "") in new stack
    -- Local/1000@from-internal-00000019;1 answered
    -- Executing [89261111111@from-internal:1] Macro("Local/1000@from-internal-00000019;1", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/1000@from-internal-00000019;1", "TOUCH_MONITOR=1442935890.672") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Local/1000@from-internal-00000019;1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Local/1000@from-internal-00000019;1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("Local/1000@from-internal-00000019;1", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/1000@from-internal-00000019;1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/1000@from-internal-00000019;1", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/1000@from-internal-00000019;1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("Local/1000@from-internal-00000019;1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,16)
    -- Executing [s@macro-user-callerid:16] GotoIf("Local/1000@from-internal-00000019;1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,30)
    -- Executing [s@macro-user-callerid:30] Set("Local/1000@from-internal-00000019;1", "CALLERID(number)=") in new stack
    -- Executing [s@macro-user-callerid:31] Set("Local/1000@from-internal-00000019;1", "CALLERID(name)=") in new stack
    -- Executing [s@macro-user-callerid:32] Set("Local/1000@from-internal-00000019;1", "CDR(cnum)=") in new stack
[2015-09-22 18:31:30] WARNING[2148]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)
    -- Executing [s@macro-user-callerid:33] Set("Local/1000@from-internal-00000019;1", "CDR(cnam)=") in new stack
[2015-09-22 18:31:30] WARNING[2148]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)
    -- Executing [s@macro-user-callerid:34] Set("Local/1000@from-internal-00000019;1", "CHANNEL(language)=en") in new stack
    -- Executing [89261111111@from-internal:2] Gosub("Local/1000@from-internal-00000019;1", "sub-record-check,s,1(out,89261111111,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/1000@from-internal-00000019;1", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("Local/1000@from-internal-00000019;1", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("Local/1000@from-internal-00000019;1", "NOW=1442935890") in new stack
    -- Executing [s@sub-record-check:4] Set("Local/1000@from-internal-00000019;1", "__DAY=22") in new stack
    -- Executing [s@sub-record-check:5] Set("Local/1000@from-internal-00000019;1", "__MONTH=09") in new stack
    -- Executing [s@sub-record-check:6] Set("Local/1000@from-internal-00000019;1", "__YEAR=2015") in new stack
    -- Executing [s@sub-record-check:7] Set("Local/1000@from-internal-00000019;1", "__TIMESTR=20150922-183130") in new stack
    -- Executing [s@sub-record-check:8] Set("Local/1000@from-internal-00000019;1", "__FROMEXTEN=unknown") in new stack
    -- Executing [s@sub-record-check:9] Set("Local/1000@from-internal-00000019;1", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("Local/1000@from-internal-00000019;1", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/1000@from-internal-00000019;1", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("Local/1000@from-internal-00000019;1", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("Local/1000@from-internal-00000019;1", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("Local/1000@from-internal-00000019;1", "Outbound Recording Check from unknown to 89261111111") in new stack
    -- Executing [out@sub-record-check:2] Set("Local/1000@from-internal-00000019;1", "RECMODE=") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("Local/1000@from-internal-00000019;1", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("Local/1000@from-internal-00000019;1", "recordcheck,1(dontcare,out,89261111111)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("Local/1000@from-internal-00000019;1", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("Local/1000@from-internal-00000019;1", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("Local/1000@from-internal-00000019;1", "") in new stack
    -- Executing [out@sub-record-check:8] Return("Local/1000@from-internal-00000019;1", "") in new stack
    -- Executing [89261111111@from-internal:3] ExecIf("Local/1000@from-internal-00000019;1", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [89261111111@from-internal:4] Set("Local/1000@from-internal-00000019;1", "MOHCLASS=default") in new stack
    -- Executing [89261111111@from-internal:5] Set("Local/1000@from-internal-00000019;1", "_NODEST=") in new stack
    -- Executing [89261111111@from-internal:6] Macro("Local/1000@from-internal-00000019;1", "dialout-trunk,2,79261111111,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/1000@from-internal-00000019;1", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/1000@from-internal-00000019;1", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/1000@from-internal-00000019;1", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/1000@from-internal-00000019;1", "DIAL_NUMBER=79261111111") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/1000@from-internal-00000019;1", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/1000@from-internal-00000019;1", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/1000@from-internal-00000019;1", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/1000@from-internal-00000019;1", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/1000@from-internal-00000019;1", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/1000@from-internal-00000019;1", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:3] ExecIf("Local/1000@from-internal-00000019;1", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("Local/1000@from-internal-00000019;1", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,7)
    -- Executing [s@macro-outbound-callerid:7] Set("Local/1000@from-internal-00000019;1", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/1000@from-internal-00000019;1", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] Set("Local/1000@from-internal-00000019;1", "TRUNKOUTCID=4999183284") in new stack
    -- Executing [s@macro-outbound-callerid:10] GotoIf("Local/1000@from-internal-00000019;1", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/1000@from-internal-00000019;1", "1?Set(CALLERID(all)=4999183284)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:18] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:19] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:20] Set("Local/1000@from-internal-00000019;1", "CDR(outbound_cnum)=4999183284") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("Local/1000@from-internal-00000019;1", "CDR(outbound_cnam)=") in new stack
[2015-09-22 18:31:30] WARNING[2148]: func_cdr.c:352 cdr_write_callback: CDR requires a value (CDR(variable)=value)
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/1000@from-internal-00000019;1", "1?sub-flp-2,s,1()") in new stack
    -- Executing [s@sub-flp-2:1] ExecIf("Local/1000@from-internal-00000019;1", "1?Return()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/1000@from-internal-00000019;1", "OUTNUM=79261111111") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/1000@from-internal-00000019;1", "custom=SIP/Zadarma") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("Local/1000@from-internal-00000019;1", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/1000@from-internal-00000019;1", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/1000@from-internal-00000019;1", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CONNECTEDLINE(num,i)=79261111111)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CONNECTEDLINE(name,i)=CID:4999183284)") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("Local/1000@from-internal-00000019;1", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)4999183284)") in new stack
    -- Executing [s@macro-dialout-trunk:22] GotoIf("Local/1000@from-internal-00000019;1", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:23] Dial("Local/1000@from-internal-00000019;1", "SIP/Zadarma/79261111111,300,Tt") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/Zadarma/79261111111
[2015-09-22 18:31:30] WARNING[7723][C-00000052]: channel.c:6337 ast_channel_make_compatible_helper: No path to translate from SIP/Zadarma-0000003d to Local/1000@from-internal-00000019;1
  == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'Local/1000@from-internal-00000019;1' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 89261111111, 6) exited non-zero on 'Local/1000@from-internal-00000019;1'
    -- Executing [h@from-internal:1] Hangup("Local/1000@from-internal-00000019;1", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/1000@from-internal-00000019;1'
  == Spawn extension (from-internal, 1000, 2) exited non-zero on 'Local/1000@from-internal-00000019;2'
    -- Executing [h@from-internal:1] Hangup("Local/1000@from-internal-00000019;2", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/1000@from-internal-00000019;2'
Пугает:

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

 [2015-09-22 18:31:30] WARNING[7723][C-00000052]: channel.c:6337 ast_channel_make_compatible_helper: No path to translate from SIP/Zadarma-0000003d to Local/1000@from-internal-00000019;1
но что бы это значило? Нашел вариант что с кодеками что-то..
Направьте на путь истины.
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Обратный звонок - проблема

Сообщение ded »

Путь истины:
1) asterisk -rx 'sip show settings' |grep Codecs
2) asterisk -rx 'sip show peer Zadarma
3) CLI> dialplan show 1000@from-internal
4) CLI> sip set debug peer Zadarma
kirush
Сообщения: 23
Зарегистрирован: 13 май 2012, 14:05

Re: Обратный звонок - проблема

Сообщение kirush »

# asterisk -rx 'sip show settings' |grep Codecs

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

  Codecs:                 (ulaw|alaw|gsm|g726|g723|g722|g729)
# asterisk -rx 'sip show peer Zadarma'

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

  * Name       : Zadarma
  Description  :
  Secret       : <Set>
  MD5Secret    : <Not set>
  Remote Secret: <Not set>
  Context      : from-trunk-sip-Zadarma
  Record On feature : automon
  Record Off feature : automon
  Subscr.Cont. : <Not set>
  Language     : ru
  Tonezone     : <Not set>
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  FromUser     : 17002
  FromDomain   : sip.zadarma.com Port 5060
  Callgroup    :
  Pickupgroup  :
  Named Callgr :
  Nam. Pickupgr:
  MOH Suggest  :
  Mailbox      :
  VM Extension : *97
  LastMsgsSent : 0/0
  Call limit   : 0
  Max forwards : 0
  Dynamic      : No
  Callerid     : "" <>
  MaxCallBR    : 384 kbps
  Expire       : -1
  Insecure     : invite
  Force rport  : No
  Symmetric RTP: No
  ACL          : No
  DirectMedACL : No
  T.38 support : No
  T.38 EC mode : Unknown
  T.38 MaxDtgrm: 4294967295
  DirectMedia  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: No
  Text Support : No
  Ign SDP ver  : No
  Trust RPID   : No
  Send RPID    : No
  Path support : No
  Path         : N/A
  TrustIDOutbnd: Legacy
  Subscriptions: Yes
  Overlap dial : Yes
  DTMFmode     : rfc2833
  Timer T1     : 500
  Timer B      : 32000
  ToHost       : sipde.zadarma.com
  Addr->IP     : 185.45.152.174:5060
  Defaddr->IP  : (null)
  Prim.Transp. : UDP
  Allowed.Trsp : UDP
  Def. Username: 17002
  SIP Options  : (none)
  Codecs       : (ulaw|gsm)
  Auto-Framing : No
  Status       : OK (46 ms)
  Useragent    :
  Reg. Contact :
  Qualify Freq : 60000 ms
  Keepalive    : 0 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs
  RTP Engine   : asterisk
  Parkinglot   :
  Use Reason   : No
  Encryption   : No
asterix*CLI> dialplan show 1000@from-internal

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

[ Included context 'ext-queues' created by 'pbx_config' ]
  '1000' =>         1. Macro(user-callerid,)                      [pbx_config]
                    2. Answer()                                   [pbx_config]
                    3. Macro(blkvm-set,reset)                     [pbx_config]
                    4. ExecIf($["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != "1"]?Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm))) [pbx_config]
                    5. Set(__NODEST=${EXTEN})                     [pbx_config]
                    6. Set(QCIDPP=${IF($[${LEN(${VQ_CIDPP})}>0]?${VQ_CIDPP}: )}) [pbx_config]
                    7. Set(VQ_CIDPP=)                             [pbx_config]
                    8. ExecIf($["${QCIDPP}"!=""]?Macro(prepend-cid,${QCIDPP})) [pbx_config]
                    9. Set(QAINFO=${IF($[${LEN(${VQ_AINFO})}>0]?${VQ_AINFO}: )}) [pbx_config]
                    10. Set(VQ_AINFO=)                            [pbx_config]
                    11. ExecIf($["${QAINFO}"!=""]?Set(__ALERT_INFO=${QAINFO})) [pbx_config]
                    12. Set(QJOINMSG=${IF($[${LEN(${VQ_JOINMSG})}>0]?${IF($["${VQ_JOINMSG}"!="0"]?${VQ_JOINMSG}: )}:queue-periodic-announce)}) [pbx_config]
                    13. Set(VQ_JOINMSG=)                          [pbx_config]
                    14. Set(QRETRY=${IF($[${LEN(${VQ_RETRY})}>0]?${VQ_RETRY}:n)}) [pbx_config]
                    15. Set(VQ_RETRY=)                            [pbx_config]
     [qoptions]     16. Set(QOPTIONS=${IF($[${LEN(${VQ_OPTIONS})}>0]?${VQ_OPTIONS}:t)}${QCANCELMISSED}${QRINGOPTS}${QRETRY}) [pbx_config]
                    17. Set(VQ_OPTIONS=)                          [pbx_config]
     [qgosub]       18. Set(QGOSUB=${IF($[${LEN(${VQ_GOSUB})}>0]?${VQ_GOSUB}:${QGOSUB})}) [pbx_config]
                    19. Set(VQ_GOSUB=)                            [pbx_config]
     [qagi]         20. Set(QAGI=${IF($[${LEN(${VQ_AGI})}>0]?${VQ_AGI}:${QAGI})}) [pbx_config]
                    21. Set(VQ_AGI=)                              [pbx_config]
     [qrule]        22. Set(QRULE=${IF($[${LEN(${VQ_RULE})}>0]?${IF($["${VQ_RULE}"!="0"]?${VQ_RULE}: )}:${QRULE})}) [pbx_config]
                    23. Set(VQ_RULE=)                             [pbx_config]
     [qposition]    24. Set(QPOSITION=${IF($[${LEN(${VQ_POSITION})}>0]?${VQ_POSITION}:${QPOSITION})}) [pbx_config]
                    25. Set(VQ_POSITION=)                         [pbx_config]
                    26. Gosub(sub-record-check,s,1(q,1000,yes))   [pbx_config]
                    27. ExecIf($["${QJOINMSG}"!="" && ${QUEUE_MEMBER(1000,free)}<1]?Playback(${QJOINMSG}, )) [pbx_config]
                    28. QueueLog(1000,${UNIQUEID},NONE,DID,${FROM_DID}) [pbx_config]
                    29. Set(QAANNOUNCE=${IF($[${LEN(${VQ_AANNOUNCE})}>0]?${IF($["${VQ_AANNOUNCE}"!="0"]?${VQ_AANNOUNCE}: )}: )}) [pbx_config]
                    30. Set(VQ_AANNOUNCE=)                        [pbx_config]
                    31. Set(QMOH=${IF($["${VQ_MOH}"!=""]?${VQ_MOH}:default)}) [pbx_config]
                    32. Set(VQ_MOH=)                              [pbx_config]
                    33. ExecIf($["${QMOH}"!=""]?Set(__MOHCLASS=${QMOH})) [pbx_config]
                    34. ExecIf($["${MOHCLASS}"!=""]?Set(CHANNEL(musicclass)=${MOHCLASS})) [pbx_config]
                    35. Set(QMAXWAIT=${IF($[${LEN(${VQ_MAXWAIT})}>0]?${VQ_MAXWAIT}: )}) [pbx_config]
                    36. Set(VQ_MAXWAIT=)                          [pbx_config]
                    37. Set(QUEUENUM=1000)                        [pbx_config]
                    38. Set(QUEUEJOINTIME=${EPOCH})               [pbx_config]
     [qcall]        39. Queue(1000,${QOPTIONS},,${QAANNOUNCE},${QMAXWAIT},${QAGI},,${QGOSUB},${QRULE},${QPOSITION}) [pbx_config]
                    40. Macro(blkvm-clr,)                         [pbx_config]
                    41. Gosub(sub-record-cancel,s,1())            [pbx_config]
                    42. Set(__NODEST=)                            [pbx_config]
                    43. Set(_QUEUE_PRIO=0)                        [pbx_config]
                    44. Set(QDEST=${VQ_DEST})                     [pbx_config]
                    45. Set(VQ_DEST=)                             [pbx_config]
     [gotodest]     46. GotoIf($["${QDEST}"=""]?app-blackhole,hangup,1:${CUT(QDEST,^,1)},${CUT(QDEST,^,2)},${CUT(QDEST,^,3)}) [pbx_config]

[ Included context 'outrt-10' created by 'pbx_config' ]
  '_XXXX' =>        1. Macro(user-callerid,LIMIT,EXTERNAL,)       [pbx_config]
                    2. Gosub(sub-record-check,s,1(out,${EXTEN},dontcare)) [pbx_config]
                    3. ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE})) [pbx_config]
                    4. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})}) [pbx_config]
                    5. Set(_NODEST=)                              [pbx_config]
                    6. Macro(outisbusy,)                          [pbx_config]

[ Included context 'bad-number' created by 'pbx_config' ]
  '_X.' =>          1. ResetCDR()                                 [pbx_config]
                    2. NoCDR()                                    [pbx_config]
                    3. Progress()                                 [pbx_config]
                    4. Wait(1)                                    [pbx_config]
                    5. Progress()                                 [pbx_config]
                    6. Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer) [pbx_config]
                    7. Wait(1)                                    [pbx_config]
                    8. Congestion(20)                             [pbx_config]
                    9. Hangup()                                   [pbx_config]

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

Audio is at 10352
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
INVITE sip:79261111111@sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK5ed856bb
Max-Forwards: 70
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 102 INVITE
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:44:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1656732580 1656732580 IN IP4 91.207.114.4
s=Asterisk PBX 13.5.0
c=IN IP4 91.207.114.4
t=0 0
m=audio 10352 RTP/AVP 0 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

---
    -- Called SIP/Zadarma/79261111111
[2015-09-23 10:44:03] WARNING[6963][C-0000037e]: channel.c:6337 ast_channel_make_compatible_helper: No path to translate from SIP/Zadarma-00000008 to Local/1000@from-internal-00000002;1
Scheduling destruction of SIP dialog '43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com' in 6400 ms (Method: INVITE)
  == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'Local/1000@from-internal-00000002;1' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 89261111111, 6) exited non-zero on 'Local/1000@from-internal-00000002;1'
    -- Executing [h@from-internal:1] Hangup("Local/1000@from-internal-00000002;1", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/1000@from-internal-00000002;1'
  == Spawn extension (from-internal, 1000, 2) exited non-zero on 'Local/1000@from-internal-00000002;2'
    -- Executing [h@from-internal:1] Hangup("Local/1000@from-internal-00000002;2", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/1000@from-internal-00000002;2'

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK5ed856bb;rport=5060
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>;tag=5149c1126e702672db415b970eae4141.9706
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 102 INVITE
Proxy-Authenticate: Digest realm="sip.zadarma.com", nonce="VgJZb1YCWEMHT1AoaAwjspvn2v8f+ABb", qop="auth"
Server: Zadarma server
Content-Length: 0

<------------->
--- (9 headers 0 lines) ---
Transmitting (no NAT) to 185.45.152.174:5060:
ACK sip:79261111111@sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK5ed856bb
Max-Forwards: 70
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>;tag=5149c1126e702672db415b970eae4141.9706
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 102 ACK
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Content-Length: 0


---
Audio is at 10352
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
INVITE sip:79261111111@sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK4ee5a724
Max-Forwards: 70
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 103 INVITE
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Proxy-Authorization: Digest username="17002", realm="sip.zadarma.com", algorithm=MD5, uri="sip:79261111111@sipde.zadarma.com", nonce="VgJZb1YCWEMHT1AoaAwjspvn2v8f+ABb", response="9a77234798d2ccd9ebcc757c2ee5b0cd", qop=auth, cnonce="0d6aaa14", nc=00000001
Date: Wed, 23 Sep 2015 07:44:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 301

v=0
o=root 1656732580 1656732581 IN IP4 91.207.114.4
s=Asterisk PBX 13.5.0
c=IN IP4 91.207.114.4
t=0 0
m=audio 10352 RTP/AVP 0 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=maxptime:150
a=sendrecv

---

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK4ee5a724;rport=5060
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 103 INVITE
Server: Zadarma server
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
CANCEL sip:79261111111@sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK4ee5a724
Max-Forwards: 70
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 103 CANCEL
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Content-Length: 0


---
Scheduling destruction of SIP dialog '43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com' in 6400 ms (Method: INVITE)

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 canceling
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK4ee5a724;rport=5060
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>;tag=be65fadf4b5691fd708d37edc74e1232-bf08
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 103 CANCEL
Server: Zadarma server
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 91.207.114.4:5060;rport=5060;branch=z9hG4bK4ee5a724
From: "k17002" <sip:k17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:79261111111@sipde.zadarma.com>;tag=as064923da
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 103 INVITE
Server: Zadarma Voip
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Content-Length: 0

<------------->
--- (10 headers 0 lines) ---
Transmitting (no NAT) to 185.45.152.174:5060:
ACK sip:79261111111@sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK4ee5a724
Max-Forwards: 70
From: <sip:17002@sip.zadarma.com>;tag=as7b25d3b4
To: <sip:7921111111@sipde.zadarma.com>;tag=as064923da
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com
CSeq: 103 ACK
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Content-Length: 0


---
Scheduling destruction of SIP dialog '43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com' in 6400 ms (Method: INVITE)
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
OPTIONS sip:sip2.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK3a10eea1
Max-Forwards: 70
From: "Unknown" <sip:Unknown@91.207.114.4>;tag=as35a8a148
To: <sip:sip2.zadarma.com>
Contact: <sip:Unknown@91.207.114.4:5060>
Call-ID: 144dd55c36e67a0562f7a8a826bf1ab8@91.207.114.4:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:44:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
OPTIONS sip:sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK216c023d
Max-Forwards: 70
From: "Unknown" <sip:17002@91.207.114.4>;tag=as3dcd59b9
To: <sip:sipde.zadarma.com>
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 58d0d075799772660378dfcb24058445@91.207.114.4:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:44:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
OPTIONS sip:sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK455ac108
Max-Forwards: 70
From: "Unknown" <sip:17002@91.207.114.4>;tag=as26ae897f
To: <sip:sipde.zadarma.com>
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 2b449400546fa27c233c1cec3181904f@91.207.114.4:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:44:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK216c023d
From: "Unknown" <sip:17002@91.207.114.4>;tag=as3dcd59b9
To: <sip:sipde.zadarma.com>;tag=5149c1126e702672db415b970eae4141.8593
Call-ID: 58d0d075799772660378dfcb24058445@91.207.114.4:5060
CSeq: 102 OPTIONS
Accept: */*
Accept-Encoding:
Accept-Language: en
Supported:
Server: Zadarma server
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
Really destroying SIP dialog '58d0d075799772660378dfcb24058445@91.207.114.4:5060' Method: OPTIONS

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK455ac108
From: "Unknown" <sip:17002@91.207.114.4>;tag=as26ae897f
To: <sip:sipde.zadarma.com>;tag=5149c1126e702672db415b970eae4141.45cf
Call-ID: 2b449400546fa27c233c1cec3181904f@91.207.114.4:5060
CSeq: 102 OPTIONS
Accept: */*
Accept-Encoding:
Accept-Language: en
Supported:
Server: Zadarma server
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
Really destroying SIP dialog '2b449400546fa27c233c1cec3181904f@91.207.114.4:5060' Method: OPTIONS

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK3a10eea1
From: "Unknown" <sip:Unknown@91.207.114.4>;tag=as35a8a148
To: <sip:sip2.zadarma.com>;tag=5149c1126e702672db415b970eae4141.f9fe
Call-ID: 144dd55c36e67a0562f7a8a826bf1ab8@91.207.114.4:5060
CSeq: 102 OPTIONS
Accept: */*
Accept-Encoding:
Accept-Language: en
Supported:
Server: Zadarma server
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
Really destroying SIP dialog '144dd55c36e67a0562f7a8a826bf1ab8@91.207.114.4:5060' Method: OPTIONS
Really destroying SIP dialog '43e5d9af4f94f047198119b722c46bb4@sip.zadarma.com' Method: INVITE
[2015-09-23 10:44:45] NOTICE[10200]: chan_sip.c:23840 handle_response_register: Outbound Registration: Expiry for 185.6.124.5 is 120 sec (Scheduling reregistration in 105 s)
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
OPTIONS sip:sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK601df572
Max-Forwards: 70
From: "Unknown" <sip:17002@91.207.114.4>;tag=as33de18cb
To: <sip:sipde.zadarma.com>
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 5af78e9a24f1582b58c801020ae58e93@91.207.114.4:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:45:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0

---
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
OPTIONS sip:sipde.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK05dd102d
Max-Forwards: 70
From: "Unknown" <sip:17002@91.207.114.4>;tag=as0108058a
To: <sip:sipde.zadarma.com>
Contact: <sip:17002@91.207.114.4:5060>
Call-ID: 41d69a89652e26c8214f99783a7f5f7b@91.207.114.4:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:45:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


---
Reliably Transmitting (no NAT) to 185.45.152.174:5060:
OPTIONS sip:sip2.zadarma.com SIP/2.0
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK1523f03f
Max-Forwards: 70
From: "Unknown" <sip:Unknown@91.207.114.4>;tag=as64e4b190
To: <sip:sip2.zadarma.com>
Contact: <sip:Unknown@91.207.114.4:5060>
Call-ID: 21d086fb13884f1b4f3cdbd55703d583@91.207.114.4:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-13.0.1RC1.15(13.5.0)
Date: Wed, 23 Sep 2015 07:45:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK05dd102d
From: "Unknown" <sip:17002@91.207.114.4>;tag=as0108058a
To: <sip:sipde.zadarma.com>;tag=5149c1126e702672db415b970eae4141.1759
Call-ID: 41d69a89652e26c8214f99783a7f5f7b@91.207.114.4:5060
CSeq: 102 OPTIONS
Accept: */*
Accept-Encoding:
Accept-Language: en
Supported:
Server: Zadarma server
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
Really destroying SIP dialog '41d69a89652e26c8214f99783a7f5f7b@91.207.114.4:5060' Method: OPTIONS

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK601df572
From: "Unknown" <sip:17002@91.207.114.4>;tag=as33de18cb
To: <sip:sipde.zadarma.com>;tag=5149c1126e702672db415b970eae4141.40ed
Call-ID: 5af78e9a24f1582b58c801020ae58e93@91.207.114.4:5060
CSeq: 102 OPTIONS
Accept: */*
Accept-Encoding:
Accept-Language: en
Supported:
Server: Zadarma server
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
Really destroying SIP dialog '5af78e9a24f1582b58c801020ae58e93@91.207.114.4:5060' Method: OPTIONS

<--- SIP read from UDP:185.45.152.174:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 91.207.114.4:5060;branch=z9hG4bK1523f03f
From: "Unknown" <sip:Unknown@91.207.114.4>;tag=as64e4b190
To: <sip:sip2.zadarma.com>;tag=5149c1126e702672db415b970eae4141.611b
Call-ID: 21d086fb13884f1b4f3cdbd55703d583@91.207.114.4:5060
CSeq: 102 OPTIONS
Accept: */*
Accept-Encoding:
Accept-Language: en
Supported:
Server: Zadarma server
Content-Length: 0

<------------->
--- (12 headers 0 lines) ---
Really destroying SIP dialog '21d086fb13884f1b4f3cdbd55703d583@91.207.114.4:5060' Method: OPTIONS
Pechen
Сообщения: 118
Зарегистрирован: 29 дек 2013, 23:16

Re: Обратный звонок - проблема

Сообщение Pechen »

5) core show translation
так нагляднее)
virus_net
Сообщения: 2337
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва

Re: Обратный звонок - проблема

Сообщение virus_net »

На сайте ими рекомендуются, в настройках пира, кодеки
allow=alaw&ulaw
У вас же:
kirush писал(а):Codecs       : (ulaw|gsm)
И соответственно:
kirush писал(а):Adding codec ulaw to SDP
Adding codec gsm to SDP
А это тут откуда ?
kirush писал(а):-- Called 110
    -- Got SIP response 302 "Moved Temporarily" back from 10.1.7.252:5060
мой SIP URI sip:virus_net@asterisk.ru
bitname.ru - Домены .bit (namecoin) .emc .coin .lib .bazar (emercoin)

ENUMER - звони бесплатно и напрямую.
kirush
Сообщения: 23
Зарегистрирован: 13 май 2012, 14:05

Re: Обратный звонок - проблема

Сообщение kirush »

sterix*CLI> core show translation

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

         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

           ulaw  alaw   gsm  g726 g726aal2 adpcm  slin  slin lpc10  ilbc  g722 testlaw
     ulaw     -  9150 15000 15000    15000 15000  9000 26250 15000 15000 17250   15000
     alaw  9150     - 15000 15000    15000 15000  9000 26250 15000 15000 17250   15000
      gsm 15000 15000     - 15000    15000 15000  9000 26250 15000 15000 17250   15000
     g726 15000 15000 15000     -    15000 15000  9000 26250 15000 15000 17250   15000
 g726aal2 15000 15000 15000 15000        - 15000  9000 26250 15000 15000 17250   15000
    adpcm 15000 15000 15000 15000    15000     -  9000 26250 15000 15000 17250   15000
     slin  6000  6000  6000  6000     6000  6000     - 17250  6000  6000  8250    6000
     slin 21600 21600 21600 21600    21600 21600 15600     - 21600 21600  6000   21600
    lpc10 15000 15000 15000 15000    15000 15000  9000 26250     - 15000 17250   15000
     ilbc 15000 15000 15000 15000    15000 15000  9000 26250 15000     - 17250   15000
     g722 15600 15600 15600 15600    15600 15600  9600  9000 15600 15600     -   15600
  testlaw 15000 15000 15000 15000    15000 15000  9000 26250 15000 15000 17250       -
Поправил с кодеками, теперь так:

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

Adding codec alaw to SDP
Adding codec ulaw to SDP
С 110 это костыль, не знаю как направить "звонок с сайта" сразу в очередь, поэтому сделал чтобы соединял 110 и клиента, а на 110 поставил переадресацию в queue.
В скрипте, настройки:

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

use constant {
    ASTERISK_HOST => '91.207.114.4',
    ASTERISK_PORT => 5038,
    ASTERISK_USER => 'XXX',
    ASTERISK_PASS => 'XXX'',
    ASTERISK_CHANNEL => 'SIP/110',
    ASTERISK_TIMEOUT => 60000,
    ASTERISK_CONTEXT => 'from-internal',
    ASTERISK_PRIORITY => 1
Pechen
Сообщения: 118
Зарегистрирован: 29 дек 2013, 23:16

Re: Обратный звонок - проблема

Сообщение Pechen »

не знаю как направить "звонок с сайта" сразу в очередь
думаю это гугится меньше чем за секнду
kirush
Сообщения: 23
Зарегистрирован: 13 май 2012, 14:05

Re: Обратный звонок - проблема

Сообщение kirush »

Это не первоочередная задача. Просил помощи понять в чем проблема в настоящий момент для того чтобы восстановить работоспособность.
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH