Страница 1 из 2

Автодозвон с уведомлением в линию

Добавлено: 17 июл 2013, 12:47
chubaka
Здравствуйте.
Есть FreePBX
Вот так реализован Автодозвон

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

[from-internal-custom]
exten => _88X.,1,Dial(Local/${EXTEN:2}@from-internal,20)
exten => _88X.,n,GotoIF($[ "${DIALSTATUS}" == "ANSWER" ]?end)
exten => _88X.,n,GotoIF($[ "${DIALSTATUS}" == "ANSWERED" ]?end)
exten => _88X.,n,GotoIF($[ ${CDR(billsec)} >0 ]?end)
exten => _88X.,n,Wait(30)
exten => _88X.,n,Goto(${EXTEN},1)
exten => _88X.,n(end),Hangup
Как добавить сообщение при соединение удаленному пользователю что сейчас его соединят с сотрудником компании кто делал автодозвон ?

Пытался сделать вот так не получается :

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

[from-internal-custom]
exten => _88X.,1,Dial(Local/${EXTEN:2}@from-internal,20)
exten => _88X.,n,GotoIF($[ "${DIALSTATUS}" == "ANSWER" ]?end)
exten => _88X.,n,GotoIF($[ "${DIALSTATUS}" == "ANSWERED" ]?end)
exten => _88X.,n,Playback(now-you-will-be-connected)
exten => _88X.,n,GotoIF($[ ${CDR(billsec)} >0 ]?end)
exten => _88X.,n,Wait(30)
exten => _88X.,n,Goto(${EXTEN},1)
exten => _88X.,n(end),Hangup
Заранее благодарен.

Re: Автодозвон с уведомлением в линию

Добавлено: 17 июл 2013, 13:58
virus_net
chubaka писал(а):Пытался сделать вот так не получается
ну не удивительно что так не получается.
Открой документацию, хотя бы voip-info.org и прочти это и это.
Asterisk variable DIALSTATUS
Contains a text string signifying result of the last dial attempt
Затем подумай над тем когда ж * сможет добраться до твоего Playback.
Ну а затем открыть Asterisk cmd Dial и внимательно прочесть и осознать.

Re: Автодозвон с уведомлением в линию

Добавлено: 17 июл 2013, 21:53
chubaka
Сделал сейчас вот так:

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

cat /etc/asterisk/extensions_custom.conf

[from-internal-custom].
exten => _+7XXXXXXXXXX,1,GoTo(outbound-allroutes,08${EXTEN:2},1)

[from-internal-custom]
exten => _*20X.,1,Macro(autodial,${EXTEN:3},${CALLERID(number)})
exten => _*20X.,2,Busy()

[macro-autodial]
; проверка на наличие "*" вначале номера и на длину номера сотрудника"
exten => s,1,ExecIf($["${ARG1:0:1}" = "*" | ${LEN(${ARG2})} != 4 ],Hangup)
exten => s,n,System(echo "Channel: Local/${ARG1}@from-internal" > /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "MaxRetries: 10" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "RetryTime: 20" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "WaitTime: 40" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo -e "Callerid: \\x22CallBack ${ARG1}\\x22 \\x3C${ARG2}\\x3E" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "Context: internal" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "Extension: ${ARG2}" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "Priority: 1" >> /tmp/${ARG2}${UNIQUEID}.call)
; в фоне ждем 15 секунд и перемещаем файл
exten => s,n,System(sleep 15 && mv -f /tmp/${ARG2}${UNIQUEID}.call /var/spool/asterisk/outgoing/ &)

[internal]
exten => _XXXX,1,Dial(SIP/${EXTEN})
exten => _XXXX,2,Hangup()
Набираю с телефона 1009 номер *20НОМЕР_МОБИЛЬНОГО происходит отбой , * звонит на НОМЕР_МОБИЛЬНОГО поднимаю трубку и сразу отбой.

Вот лог звонка:
1я часть * сформировала call файл и дала отбой

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

  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [*20089253715126@from-internal:1] Macro("SIP/1009-000138b8", "autodial,НОМЕР_МОБИЛЬНОГО,1009") in new stack
    -- Executing [s@macro-autodial:1] ExecIf("SIP/1009-000138b8", "0,Hangup") in new stack
[2013-07-17 21:40:14] WARNING[13784]: app_exec.c:231 execif_exec: Deprecated syntax found.  Please upgrade to using ExecIf(<expr>?Hangup((null)))
    -- Executing [s@macro-autodial:2] System("SIP/1009-000138b8", "echo "Channel: Local/НОМЕР_МОБИЛЬНОГО@from-internal" > /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:3] System("SIP/1009-000138b8", "echo "MaxRetries: 10" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:4] System("SIP/1009-000138b8", "echo "RetryTime: 20" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:5] System("SIP/1009-000138b8", "echo "WaitTime: 40" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:6] System("SIP/1009-000138b8", "echo -e "Callerid: \\x22CallBack НОМЕР_МОБИЛЬНОГО\\x22 \\x3C1009\\x3E" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:7] System("SIP/1009-000138b8", "echo "Context: internal" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:8] System("SIP/1009-000138b8", "echo "Extension: 1009" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:9] System("SIP/1009-000138b8", "echo "Priority: 1" >> /tmp/10091374082814.86234.call") in new stack
    -- Executing [s@macro-autodial:10] System("SIP/1009-000138b8", "sleep 15 && mv -f /tmp/10091374082814.86234.call /var/spool/asterisk/outgoing/ &") in new stack
    -- Executing [*20089253715126@from-internal:2] Busy("SIP/1009-000138b8", "") in new stack
  == Spawn extension (from-internal, *20089253715126, 2) exited non-zero on 'SIP/1009-000138b8'
    -- Executing [h@from-internal:1] Hangup("SIP/1009-000138b8", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1009-000138b8'
Вот call файла работает и дает отбой сразу как на мобильном поднимаю трубку:

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

-- Attempting call on Local/НОМЕР_МОБИЛЬНОГО@from-internal for 1009@internal:1 (Retry 3)
    -- Executing [НОМЕР_МОБИЛЬНОГО@from-internal:1] Macro("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "AMPUSER=1009") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?Set(REALCALLERIDNUM=1009)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "AMPUSER=1009") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "AMPUSERCIDNAME=1009") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "AMPUSERCID=1009") in new stack
    -- Executing [s@macro-user-callerid:8] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "CALLERID(all)="1009" <1009>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?Set(GROUP(concurrency_limit)=1009)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "7?sub-ccss,s,1(from-internal,)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "CALLERID(number)=1009") in new stack
    -- Executing [s@macro-user-callerid:27] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "CALLERID(name)=1009") in new stack
    -- Executing [s@macro-user-callerid:28] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "CHANNEL(language)=en") in new stack
    -- Executing [НОМЕР_МОБИЛЬНОГО@from-internal:2] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "MOHCLASS=default") in new stack
    -- Executing [НОМЕР_МОБИЛЬНОГО@from-internal:3] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "_NODEST=") in new stack
    -- Executing [НОМЕР_МОБИЛЬНОГО@from-internal:4] Gosub("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "sub-record-check,s,1(out,,)") НОМЕР_МОБИЛЬНОГОin new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?check") in new stack
    -- Goto (sub-record-check,s,6)
    -- Executing [s@sub-record-check:6] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:7] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?next") in new stack
    -- Goto (sub-record-check,s,10)
-- Executing [s@sub-record-check:10] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Return()") in new stack
    -- Executing [s@sub-record-check:11] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?out,1") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:14] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "NOW=1374082869") in new stack
    -- Executing [s@sub-record-check:15] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__DAY=17") in new stack
    -- Executing [s@sub-record-check:16] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__MONTH=07") in new stack
    -- Executing [s@sub-record-check:17] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__YEAR=2013") in new stack
    -- Executing [s@sub-record-check:18] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__TIMESTR=20130717-214109") in new stack
    -- Executing [s@sub-record-check:19] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__FROMEXTEN=1009") in new stack
    -- Executing [s@sub-record-check:20] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "__CALLFILENAME=out-НОМЕР_МОБИЛЬНОГО-1009-20130717-214109-1374082869.86246") in new stack
    -- Executing [s@sub-record-check:21] Goto("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?Set(__REC_POLICY_MODE=never)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?record,1(exten,НОМЕР_МОБИЛЬНОГО,1009)") in new stack
    -- Executing [out@sub-record-check:3] Return("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "") in new stack
    -- Executing [НОМЕР_МОБИЛЬНОГО@from-internal:5] Macro("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "dialout-trunk,2,НОМЕР_МОБИЛЬНОГО,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "DIAL_NUMBER=НОМЕР_МОБИЛЬНОГО") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "DIAL_TRUNK_OPTIONS=tTw") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "DIAL_TRUNK_OPTIONS=tTw") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(REALCALLERIDNUM=1009)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "TRUNKOUTCID=1045141") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?Set(CALLERID(all)=1045141)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "OUTNUM=НОМЕР_МОБИЛЬНОГО") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "custom=SIP/trunk-out") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tTw)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?Set(DIAL_TRUNK_OPTIONS=tTwM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?Set(CONNECTEDLINE(num,i)=НОМЕР_МОБИЛЬНОГО)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "1?Set(CONNECTEDLINE(name,i)=CID:1045141)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "SIP/trunk-out/НОМЕР_МОБИЛЬНОГО,300,tTw") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
Called SIP/trunk-out/НОМЕР_МОБИЛЬНОГО
[2013-07-17 21:41:09] WARNING[13804]: channel.c:6076 ast_channel_make_compatible_helper: No path to translate from SIP/trunk-out-000138bf to Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2
  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2' in macro 'dialout-trunk'
  == Spawn extension (from-internal, НОМЕР_МОБИЛЬНОГО, 5) exited non-zero on 'Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2'
    -- Executing [h@from-internal:1] Hangup("Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/НОМЕР_МОБИЛЬНОГО@from-internal-000008f1;2'
[2013-07-17 21:41:09] NOTICE[13803]: pbx_spool.c:360 attempt_thread: Call failed to go through, reason (1) Hangup
sip*CLI> 
[2013-07-17 21:41:09] WARNING[2019]: chan_sip.c:22236 handle_response: Remote host can't match request CANCEL to call '5d1c4f29151e15b21ff87f4b2212a7b3@192.168.190.2'. Giving up.
Подскажиет что я не так делаю , скорей всего я снова туплю и не могу увидеть фигу в логе ткните плиз тока сильно не ругайтесь =)

Re: Автодозвон с уведомлением в линию

Добавлено: 18 июл 2013, 07:08
Vlad1983
exten => s,n,System(echo "Channel: Local/${ARG1}@from-internal" > /tmp/${ARG2}${UNIQUEID}.call)
на
exten => s,n,System(echo "Channel: Local/${ARG1}@from-internal/n" > /tmp/${ARG2}${UNIQUEID}.call)

и НОМЕР_МОБИЛЬНОГО уже всем известен
-- Executing [*20089253715126@from-internal:1] Macro("SIP/1009-000138b8", "autodial,НОМЕР_МОБИЛЬНОГО,1009") in new stack
конспираторы хреновы

Re: Автодозвон с уведомлением в линию

Добавлено: 18 июл 2013, 09:28
chubaka
Влад сделал как ты написал тоже самое.

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

[macro-autodial]
; небольшая проверка от наличие "*" вначале номера и на длину номера сотрудника"
exten => s,1,ExecIf($["${ARG1:0:1}" = "*" | ${LEN(${ARG2})} != 4 ],Hangup)
exten => s,n,System(echo "Channel: Local/${ARG1}@from-internal/n" > /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "MaxRetries: 10" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "RetryTime: 20" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "WaitTime: 40" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo -e "Callerid: \\x22CallBack ${ARG1}\\x22 \\x3C${ARG2}\\x3E" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "Context: internal" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "Extension: ${ARG2}" >> /tmp/${ARG2}${UNIQUEID}.call)
exten => s,n,System(echo "Priority: 1" >> /tmp/${ARG2}${UNIQUEID}.call)
; в фоне ждем 15 секунд и перемещаем файл
exten => s,n,System(sleep 15 && mv -f /tmp/${ARG2}${UNIQUEID}.call /var/spool/asterisk/outgoing/ &)

Re: Автодозвон с уведомлением в линию

Добавлено: 18 июл 2013, 09:37
Vlad1983
смотреть логи

Re: Автодозвон с уведомлением в линию

Добавлено: 18 июл 2013, 12:02
chubaka
Проблема с мобильными например если звонить на номера 84952345981 все работает как надо , если звонить на мобильный 89253715126 беда =(

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

Город:    
	-- Attempting call on Local/02345981@from-internal/n for 1007@internal:1 (Retry 1)
    -- Executing [02345981@from-internal:1] Macro("Local/02345981@from-internal-00000928;2", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/02345981@from-internal-00000928;2", "AMPUSER=1007") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/02345981@from-internal-00000928;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("Local/02345981@from-internal-00000928;2", "1?Set(REALCALLERIDNUM=1007)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Local/02345981@from-internal-00000928;2", "AMPUSER=1007") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/02345981@from-internal-00000928;2", "AMPUSERCIDNAME=1007") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/02345981@from-internal-00000928;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/02345981@from-internal-00000928;2", "AMPUSERCID=1007") in new stack
    -- Executing [s@macro-user-callerid:8] Set("Local/02345981@from-internal-00000928;2", "CALLERID(all)="1007" <1007>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("Local/02345981@from-internal-00000928;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("Local/02345981@from-internal-00000928;2", "1?Set(GROUP(concurrency_limit)=1007)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("Local/02345981@from-internal-00000928;2", "7?sub-ccss,s,1(from-internal,)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("Local/02345981@from-internal-00000928;2", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("Local/02345981@from-internal-00000928;2", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("Local/02345981@from-internal-00000928;2", "0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("Local/02345981@from-internal-00000928;2", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("Local/02345981@from-internal-00000928;2", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("Local/02345981@from-internal-00000928;2", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("Local/02345981@from-internal-00000928;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("Local/02345981@from-internal-00000928;2", "CALLERID(number)=1007") in new stack
    -- Executing [s@macro-user-callerid:27] Set("Local/02345981@from-internal-00000928;2", "CALLERID(name)=1007") in new stack
    -- Executing [s@macro-user-callerid:28] Set("Local/02345981@from-internal-00000928;2", "CHANNEL(language)=en") in new stack
    -- Executing [02345981@from-internal:2] Set("Local/02345981@from-internal-00000928;2", "MOHCLASS=default") in new stack
    -- Executing [02345981@from-internal:3] Set("Local/02345981@from-internal-00000928;2", "_NODEST=") in new stack
    -- Executing [02345981@from-internal:4] Gosub("Local/02345981@from-internal-00000928;2", "sub-record-check,s,1(out,02345981,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/02345981@from-internal-00000928;2", "1?check") in new stack
    -- Goto (sub-record-check,s,6)
    -- Executing [s@sub-record-check:6] Set("Local/02345981@from-internal-00000928;2", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:7] GotoIf("Local/02345981@from-internal-00000928;2", "1?next") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] ExecIf("Local/02345981@from-internal-00000928;2", "0?Return()") in new stack
    -- Executing [s@sub-record-check:11] GotoIf("Local/02345981@from-internal-00000928;2", "0?out,1") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/02345981@from-internal-00000928;2", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:14] Set("Local/02345981@from-internal-00000928;2", "NOW=1374133919") in new stack
    -- Executing [s@sub-record-check:15] Set("Local/02345981@from-internal-00000928;2", "__DAY=18") in new stack
    -- Executing [s@sub-record-check:16] Set("Local/02345981@from-internal-00000928;2", "__MONTH=07") in new stack
    -- Executing [s@sub-record-check:17] Set("Local/02345981@from-internal-00000928;2", "__YEAR=2013") in new stack
    -- Executing [s@sub-record-check:18] Set("Local/02345981@from-internal-00000928;2", "__TIMESTR=20130718-115159") in new stack
    -- Executing [s@sub-record-check:19] Set("Local/02345981@from-internal-00000928;2", "__FROMEXTEN=1007") in new stack
    -- Executing [s@sub-record-check:20] Set("Local/02345981@from-internal-00000928;2", "__CALLFILENAME=out-02345981-1007-20130718-115159-1374133919.87401") in new stack
    -- Executing [s@sub-record-check:21] Goto("Local/02345981@from-internal-00000928;2", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("Local/02345981@from-internal-00000928;2", "1?Set(__REC_POLICY_MODE=never)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("Local/02345981@from-internal-00000928;2", "0?record,1(exten,02345981,1007)") in new stack
    -- Executing [out@sub-record-check:3] Return("Local/02345981@from-internal-00000928;2", "") in new stack
    -- Executing [02345981@from-internal:5] Macro("Local/02345981@from-internal-00000928;2", "dialout-trunk,1,84952345981,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/02345981@from-internal-00000928;2", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/02345981@from-internal-00000928;2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/02345981@from-internal-00000928;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/02345981@from-internal-00000928;2", "DIAL_NUMBER=84952345981") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/02345981@from-internal-00000928;2", "DIAL_TRUNK_OPTIONS=tTw") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/02345981@from-internal-00000928;2", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/02345981@from-internal-00000928;2", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("Local/02345981@from-internal-00000928;2", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/02345981@from-internal-00000928;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/02345981@from-internal-00000928;2", "DIAL_TRUNK_OPTIONS=tTw") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/02345981@from-internal-00000928;2", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(REALCALLERIDNUM=1007)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("Local/02345981@from-internal-00000928;2", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("Local/02345981@from-internal-00000928;2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("Local/02345981@from-internal-00000928;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/02345981@from-internal-00000928;2", "TRUNKOUTCID=7902121") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/02345981@from-internal-00000928;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("Local/02345981@from-internal-00000928;2", "1?Set(CALLERID(all)=7902121)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/02345981@from-internal-00000928;2", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/02345981@from-internal-00000928;2", "OUTNUM=84952345981") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/02345981@from-internal-00000928;2", "custom=SIP/OUT-BEELINE") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tTw)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/02345981@from-internal-00000928;2", "0?Set(DIAL_TRUNK_OPTIONS=tTwM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("Local/02345981@from-internal-00000928;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/02345981@from-internal-00000928;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/02345981@from-internal-00000928;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("Local/02345981@from-internal-00000928;2", "1?Set(CONNECTEDLINE(num,i)=84952345981)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("Local/02345981@from-internal-00000928;2", "1?Set(CONNECTEDLINE(name,i)=CID:7902121)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("Local/02345981@from-internal-00000928;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("Local/02345981@from-internal-00000928;2", "SIP/OUT-BEELINE/84952345981,300,tTw") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/OUT-BEELINE/84952345981
    -- SIP/OUT-BEELINE-00013cd4 is making progress passing it to Local/02345981@from-internal-00000928;2
    -- Connected line update to SIP/4022-00013cd2 prevented.
    -- SIP/4007-00013cd3 answered SIP/4022-00013cd2
    -- SIP/OUT-BEELINE-00013cd4 answered Local/02345981@from-internal-00000928;2
    -- Executing [1007@internal:1] Dial("Local/02345981@from-internal-00000928;1", "SIP/1007") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/1007

Мобильный:
 -- Attempting call on Local/089253715126@from-internal/n for 1007@internal:1 (Retry 1)
    -- Executing [089253715126@from-internal:1] Macro("Local/089253715126@from-internal-0000092c;2", "user-callerid,LIMIT,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/089253715126@from-internal-0000092c;2", "AMPUSER=1007") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("Local/089253715126@from-internal-0000092c;2", "1?Set(REALCALLERIDNUM=1007)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Local/089253715126@from-internal-0000092c;2", "AMPUSER=1007") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/089253715126@from-internal-0000092c;2", "AMPUSERCIDNAME=Kudryavtsev") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/089253715126@from-internal-0000092c;2", "AMPUSERCID=1007") in new stack
    -- Executing [s@macro-user-callerid:8] Set("Local/089253715126@from-internal-0000092c;2", "CALLERID(all)="Kudryavtsev" <1007>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("Local/089253715126@from-internal-0000092c;2", "1?Set(GROUP(concurrency_limit)=1007)") in new stack
    -- Executing [s@macro-user-callerid:11] GosubIf("Local/089253715126@from-internal-0000092c;2", "7?sub-ccss,s,1(from-internal,)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("Local/089253715126@from-internal-0000092c;2", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("Local/089253715126@from-internal-0000092c;2", "0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("Local/089253715126@from-internal-0000092c;2", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("Local/089253715126@from-internal-0000092c;2", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("Local/089253715126@from-internal-0000092c;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("Local/089253715126@from-internal-0000092c;2", "CALLERID(number)=1007") in new stack
    -- Executing [s@macro-user-callerid:27] Set("Local/089253715126@from-internal-0000092c;2", "CALLERID(name)=Kudryavtsev") in new stack
    -- Executing [s@macro-user-callerid:28] Set("Local/089253715126@from-internal-0000092c;2", "CHANNEL(language)=en") in new stack
    -- Executing [089253715126@from-internal:2] Set("Local/089253715126@from-internal-0000092c;2", "MOHCLASS=default") in new stack
    -- Executing [089253715126@from-internal:3] Set("Local/089253715126@from-internal-0000092c;2", "_NODEST=") in new stack
    -- Executing [089253715126@from-internal:4] Gosub("Local/089253715126@from-internal-0000092c;2", "sub-record-check,s,1(out,089253715126,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/089253715126@from-internal-0000092c;2", "1?check") in new stack
    -- Goto (sub-record-check,s,6)
    -- Executing [s@sub-record-check:6] Set("Local/089253715126@from-internal-0000092c;2", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:7] GotoIf("Local/089253715126@from-internal-0000092c;2", "1?next") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Return()") in new stack
    -- Executing [s@sub-record-check:11] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?out,1") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/089253715126@from-internal-0000092c;2", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:14] Set("Local/089253715126@from-internal-0000092c;2", "NOW=1374134117") in new stack
    -- Executing [s@sub-record-check:15] Set("Local/089253715126@from-internal-0000092c;2", "__DAY=18") in new stack
    -- Executing [s@sub-record-check:16] Set("Local/089253715126@from-internal-0000092c;2", "__MONTH=07") in new stack
    -- Executing [s@sub-record-check:17] Set("Local/089253715126@from-internal-0000092c;2", "__YEAR=2013") in new stack
    -- Executing [s@sub-record-check:18] Set("Local/089253715126@from-internal-0000092c;2", "__TIMESTR=20130718-115517") in new stack
    -- Executing [s@sub-record-check:19] Set("Local/089253715126@from-internal-0000092c;2", "__FROMEXTEN=1007") in new stack
    -- Executing [s@sub-record-check:20] Set("Local/089253715126@from-internal-0000092c;2", "__CALLFILENAME=out-089253715126-1007-20130718-115517-1374134117.87431") in new stack
    -- Executing [s@sub-record-check:21] Goto("Local/089253715126@from-internal-0000092c;2", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("Local/089253715126@from-internal-0000092c;2", "1?Set(__REC_POLICY_MODE=never)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("Local/089253715126@from-internal-0000092c;2", "0?record,1(exten,089253715126,1007)") in new stack
    -- Executing [out@sub-record-check:3] Return("Local/089253715126@from-internal-0000092c;2", "") in new stack
    -- Executing [089253715126@from-internal:5] Macro("Local/089253715126@from-internal-0000092c;2", "dialout-trunk,2,89253715126,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/089253715126@from-internal-0000092c;2", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/089253715126@from-internal-0000092c;2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/089253715126@from-internal-0000092c;2", "DIAL_NUMBER=89253715126") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/089253715126@from-internal-0000092c;2", "DIAL_TRUNK_OPTIONS=tTw") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/089253715126@from-internal-0000092c;2", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/089253715126@from-internal-0000092c;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/089253715126@from-internal-0000092c;2", "DIAL_TRUNK_OPTIONS=tTw") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/089253715126@from-internal-0000092c;2", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(REALCALLERIDNUM=1007)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("Local/089253715126@from-internal-0000092c;2", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("Local/089253715126@from-internal-0000092c;2", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("Local/089253715126@from-internal-0000092c;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/089253715126@from-internal-0000092c;2", "TRUNKOUTCID=1045141") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/089253715126@from-internal-0000092c;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("Local/089253715126@from-internal-0000092c;2", "1?Set(CALLERID(all)=1045141)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/089253715126@from-internal-0000092c;2", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/089253715126@from-internal-0000092c;2", "OUTNUM=89253715126") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/089253715126@from-internal-0000092c;2", "custom=SIP/trunkMOBILE") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tTw)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/089253715126@from-internal-0000092c;2", "0?Set(DIAL_TRUNK_OPTIONS=tTwM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("Local/089253715126@from-internal-0000092c;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/089253715126@from-internal-0000092c;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("Local/089253715126@from-internal-0000092c;2", "1?Set(CONNECTEDLINE(num,i)=89253715126)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("Local/089253715126@from-internal-0000092c;2", "1?Set(CONNECTEDLINE(name,i)=CID:1045141)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("Local/089253715126@from-internal-0000092c;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("Local/089253715126@from-internal-0000092c;2", "SIP/trunkMOBILE/89253715126,300,tTw") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/trunkMOBILE/89253715126
[2013-07-18 11:55:17] WARNING[16262]: channel.c:6076 ast_channel_make_compatible_helper: No path to translate from SIP/trunkMOBILE-00013cea to Local/089253715126@from-internal-0000092c;2
  == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'Local/089253715126@from-internal-0000092c;2' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 089253715126, 5) exited non-zero on 'Local/089253715126@from-internal-0000092c;2'
    -- Executing [h@from-internal:1] Hangup("Local/089253715126@from-internal-0000092c;2", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/089253715126@from-internal-0000092c;2'
[2013-07-18 11:55:17] NOTICE[16261]: pbx_spool.c:360 attempt_thread: Call failed to go through, reason (1) Hangup
[2013-07-18 11:55:17] WARNING[2019]: chan_sip.c:22236 handle_response: Remote host can't match request CANCEL to call '4e289d2c2a873f420ef44a297e39317c@192.168.190.2'. Giving up.

Re: Автодозвон с уведомлением в линию

Добавлено: 18 июл 2013, 12:07
Vlad1983
они через разные пиры уходят
CLI> sip set debug peer trunkMOBILE
и пробуйте на 89253715126

Re: Автодозвон с уведомлением в линию

Добавлено: 28 июл 2013, 23:23
chubaka
Спасибо , проблему решил. Влад спасибо !

Re: Автодозвон с уведомлением в линию

Добавлено: 29 июл 2013, 11:37
virus_net
chubaka писал(а):Спасибо , проблему решил
ну а описать как именно ? для тех кто найдет эту тему через поиск и гугл ? думаем тока о себе ?