ded писал(а):Просите его передавать вам в rfc2833, вместо INFO.
ded писал(а):Просите его передавать вам в rfc2833, вместо INFO.
Код: Выделить всё
-- <SIP/3511901-000013c8> Playing 'custom/Buh_speech.slin' (language 'ru')
[Nov 20 18:43:36] DTMF[576]: channel.c:4145 __ast_read: DTMF begin '1' received on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4155 __ast_read: DTMF begin passthrough '1' on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4060 __ast_read: DTMF end '1' received on SIP/35___04-000013c6, duration 63 ms
[Nov 20 18:43:36] DTMF[576]: channel.c:4100 __ast_read: DTMF end accepted with begin '1' on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4115 __ast_read: DTMF end '1' detected to have actual duration 79 on the wire, emulation will be triggered on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4122 __ast_read: DTMF end '1' has duration 79 but want minimum 80, emulating on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4222 __ast_read: DTMF end emulation of '1' queued on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4145 __ast_read: DTMF begin '1' received on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4155 __ast_read: DTMF begin passthrough '1' on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4060 __ast_read: DTMF end '1' received on SIP/35___04-000013c6, duration 25 ms
[Nov 20 18:43:36] DTMF[576]: channel.c:4100 __ast_read: DTMF end accepted with begin '1' on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4115 __ast_read: DTMF end '1' detected to have actual duration 40 on the wire, emulation will be triggered on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4122 __ast_read: DTMF end '1' has duration 40 but want minimum 80, emulating on SIP/35___04-000013c6
[Nov 20 18:43:36] DTMF[576]: channel.c:4222 __ast_read: DTMF end emulation of '1' queued on SIP/35___04-000013c6
[Nov 20 18:43:39] DTMF[576]: channel.c:4145 __ast_read: DTMF begin '*' received on SIP/35___04-000013c6
[Nov 20 18:43:39] DTMF[576]: channel.c:4155 __ast_read: DTMF begin passthrough '*' on SIP/35___04-000013c6
[Nov 20 18:43:39] DTMF[576]: channel.c:4060 __ast_read: DTMF end '*' received on SIP/35___04-000013c6, duration 25 ms
[Nov 20 18:43:39] DTMF[576]: channel.c:4100 __ast_read: DTMF end accepted with begin '*' on SIP/35___04-000013c6
[Nov 20 18:43:39] DTMF[576]: channel.c:4115 __ast_read: DTMF end '*' detected to have actual duration 40 on the wire, emulation will be triggered on SIP/35___04-000013c6
[Nov 20 18:43:39] DTMF[576]: channel.c:4122 __ast_read: DTMF end '*' has duration 40 but want minimum 80, emulating on SIP/35___04-000013c6
[Nov 20 18:43:39] DTMF[576]: channel.c:4222 __ast_read: DTMF end emulation of '*' queued on SIP/35___04-000013c6
[Nov 20 18:43:40] DTMF[576]: channel.c:4145 __ast_read: DTMF begin '2' received on SIP/35___04-000013c6
[Nov 20 18:43:40] DTMF[576]: channel.c:4155 __ast_read: DTMF begin passthrough '2' on SIP/35___04-000013c6
[Nov 20 18:43:40] DTMF[576]: channel.c:4060 __ast_read: DTMF end '2' received on SIP/35___04-000013c6, duration 89 ms
[Nov 20 18:43:40] DTMF[576]: channel.c:4100 __ast_read: DTMF end accepted with begin '2' on SIP/35___04-000013c6
[Nov 20 18:43:40] DTMF[576]: channel.c:4129 __ast_read: DTMF end passthrough '2' on SIP/35___04-000013c6
Код: Выделить всё
[Nov 20 18:51:15] DTMF[576]: channel.c:4145 __ast_read: DTMF begin '*' received on SIP/3511904-000013c6
[Nov 20 18:51:15] DTMF[576]: channel.c:4155 __ast_read: DTMF begin passthrough '*' on SIP/3511904-000013c6
[Nov 20 18:51:15] DTMF[576]: channel.c:4060 __ast_read: DTMF end '*' received on SIP/3511904-000013c6, duration 89 ms
[Nov 20 18:51:15] DTMF[576]: channel.c:4100 __ast_read: DTMF end accepted with begin '*' on SIP/3511904-000013c6
[Nov 20 18:51:15] DTMF[576]: channel.c:4129 __ast_read: DTMF end passthrough '*' on SIP/3511904-000013c6
Код: Выделить всё
[service_dtmf_test]
exten => s,1,Set(numTries=0)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(welcome)
exten => s,n(goon),Read(DIGIT,,1,,,5)
exten => s,n,SayDigits(${DIGIT})
exten => s,n,NoOp(status: ${READSTATUS})
exten => s,n,GoToIf($[${READSTATUS} = OK]?pressnext,1)
exten => s,n,Set(numTries=$[${numTries} + 1])
exten => s,n,GotoIf($["${numTries}" < "3"]?s,goon)
exten => s,n,Playback(bye)
exten => s,n,Hangup()
exten => pressnext,1,Set(numTries=0)
exten => pressnext,n,Goto(s,goon)
exten => h,1,Hangup()