Dongle,SMS, не пишет в лог смс
Добавлено: 26 янв 2017, 17:02
Добрый день!
FreePBX 13 + Dongle ,все звонит,все проходит нормально, появилась задача смс отправлять на мыло, но к несчастью для себя обнаружил что они не пишутся в файл....
extensions_custom.conf
Выдает в консоль когда смс приходит
Помогите,что то потерялся в логе
Соответственно и в файле ничего нет...
FreePBX 13 + Dongle ,все звонит,все проходит нормально, появилась задача смс отправлять на мыло, но к несчастью для себя обнаружил что они не пишутся в файл....
extensions_custom.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[from-gsm]
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${SMS})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: ${SMS}' >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()
exten => ussd,1,Verbose(Incoming USSD: ${USSD})
exten => ussd,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME}: ${USSD}' >> /var/log/asterisk/ussd.txt)
exten => ussd,n,Hangup()
exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${SMS})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: ${SMS}' >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()
exten => ussd,1,Verbose(Incoming USSD: ${USSD})
exten => ussd,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME}: ${USSD}' >> /var/log/asterisk/ussd.txt)
exten => ussd,n,Hangup()
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[D79206500000] Got SMS from +79622088888: 'Ещё раз тут смс'
-- Executing [sms@from-pstn:1] Set("Local/sms@from-pstn-00000004;1", "__FROM_DID=sms") in new stack
-- Executing [sms@from-pstn:2] NoOp("Local/sms@from-pstn-00000004;1", "Received an unknown call with DID set to sms") in new stack
-- Executing [sms@from-pstn:3] Goto("Local/sms@from-pstn-00000004;1", "s,a2") in new stack
-- Goto (from-pstn,s,2)
-- Executing [s@from-pstn:2] Answer("Local/sms@from-pstn-00000004;1", "") in new stack
[2017-01-26 16:53:08] WARNING[21020][C-00003384]: chan_sip.c:22812 func_header_read: This function can only be used on SIP channels.
-- Executing [s@from-pstn:3] Log("Local/sms@from-pstn-00000004;1", "WARNING,Friendly Scanner from ") in new stack
[2017-01-26 16:53:08] WARNING[21020][C-00003384]: Ext. s:3 @ from-pstn: Friendly Scanner from
-- Executing [s@from-pstn:4] Wait("Local/sms@from-pstn-00000004;1", "2") in new stack
[2017-01-26 16:53:10] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
-- Executing [s@from-pstn:5] Playback("Local/sms@from-pstn-00000004;1", "ss-noservice") in new stack
-- <Local/sms@from-pstn-00000004;1> Playing 'ss-noservice.slin' (language 'ru')
[2017-01-26 16:53:11] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
[2017-01-26 16:53:13] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
[2017-01-26 16:53:14] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
-- Executing [s@from-pstn:6] SayAlpha("Local/sms@from-pstn-00000004;1", "sms") in new stack
-- <Local/sms@from-pstn-00000004;1> Playing 'letters/s.slin' (language 'ru')
-- <Local/sms@from-pstn-00000004;1> Playing 'letters/m.slin' (language 'ru')
[2017-01-26 16:53:15] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
-- <Local/sms@from-pstn-00000004;1> Playing 'letters/s.slin' (language 'ru')
-- Executing [s@from-pstn:7] Hangup("Local/sms@from-pstn-00000004;1", "") in new stack
== Spawn extension (from-pstn, s, 7) exited non-zero on 'Local/sms@from-pstn-00000004;1'
-- Executing [h@from-pstn:1] Macro("Local/sms@from-pstn-00000004;1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/sms@from-pstn-00000004;1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/sms@from-pstn-00000004;1", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("Local/sms@from-pstn-00000004;1", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/sms@from-pstn-00000004;1' in macro 'hangupcall'
== Spawn extension (from-pstn, h, 1) exited non-zero on 'Local/sms@from-pstn-00000004;1'
-- Executing [sms@from-pstn:1] Set("Local/sms@from-pstn-00000004;1", "__FROM_DID=sms") in new stack
-- Executing [sms@from-pstn:2] NoOp("Local/sms@from-pstn-00000004;1", "Received an unknown call with DID set to sms") in new stack
-- Executing [sms@from-pstn:3] Goto("Local/sms@from-pstn-00000004;1", "s,a2") in new stack
-- Goto (from-pstn,s,2)
-- Executing [s@from-pstn:2] Answer("Local/sms@from-pstn-00000004;1", "") in new stack
[2017-01-26 16:53:08] WARNING[21020][C-00003384]: chan_sip.c:22812 func_header_read: This function can only be used on SIP channels.
-- Executing [s@from-pstn:3] Log("Local/sms@from-pstn-00000004;1", "WARNING,Friendly Scanner from ") in new stack
[2017-01-26 16:53:08] WARNING[21020][C-00003384]: Ext. s:3 @ from-pstn: Friendly Scanner from
-- Executing [s@from-pstn:4] Wait("Local/sms@from-pstn-00000004;1", "2") in new stack
[2017-01-26 16:53:10] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
-- Executing [s@from-pstn:5] Playback("Local/sms@from-pstn-00000004;1", "ss-noservice") in new stack
-- <Local/sms@from-pstn-00000004;1> Playing 'ss-noservice.slin' (language 'ru')
[2017-01-26 16:53:11] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
[2017-01-26 16:53:13] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
[2017-01-26 16:53:14] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
-- Executing [s@from-pstn:6] SayAlpha("Local/sms@from-pstn-00000004;1", "sms") in new stack
-- <Local/sms@from-pstn-00000004;1> Playing 'letters/s.slin' (language 'ru')
-- <Local/sms@from-pstn-00000004;1> Playing 'letters/m.slin' (language 'ru')
[2017-01-26 16:53:15] WARNING[21020][C-00003384]: channel.c:1101 __ast_queue_frame: Exceptionally long voice queue length queuing to Local/sms@from-pstn-00000004;2
-- <Local/sms@from-pstn-00000004;1> Playing 'letters/s.slin' (language 'ru')
-- Executing [s@from-pstn:7] Hangup("Local/sms@from-pstn-00000004;1", "") in new stack
== Spawn extension (from-pstn, s, 7) exited non-zero on 'Local/sms@from-pstn-00000004;1'
-- Executing [h@from-pstn:1] Macro("Local/sms@from-pstn-00000004;1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/sms@from-pstn-00000004;1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/sms@from-pstn-00000004;1", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("Local/sms@from-pstn-00000004;1", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/sms@from-pstn-00000004;1' in macro 'hangupcall'
== Spawn extension (from-pstn, h, 1) exited non-zero on 'Local/sms@from-pstn-00000004;1'
Соответственно и в файле ничего нет...