Problem with PERIODIC_HOOK and chanspy

Hi,
I am new to the forum asterisk, sorry if this is not the channel to answer questions.
I have installed asterisk 13 certified and I want to use the PERIODIC_HOOK for insert a periodic beep in the conference but an error appears.
[Jun 9 12:01:00] WARNING[4728][C-0000000f]: channel.c:5707 set_format: Unable to find a codec translation path: (slin) -> (slin)
[Jun 9 12:01:00] ERROR[4728][C-0000000f]: app_chanspy.c:1275 chanspy_exec: Could Not Set Write Format.
I think that I am missing something to configure because is not necessary codec translation (is the same).
Any help would be appreciated.

Best regards

   > 0x7f66680126e0 -- Strict RTP learning after remote address set to: 192.168.1.1:40018
-- Executing [55555@from-TRUNK_1:1] Verbose("SIP/TRUNK_SOFTPHONE-00000002", "2, COMSEC TRUNK_SOFTPHONE entra en SALA 55555") in new stack

== COMSEC TRUNK_SOFTPHONE entra en SALA 55555
– Executing [55555@from-TRUNK_1:2] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “CALLERID(name)=TRUNK_SOFTPHONE”) in new stack
– Executing [55555@from-TRUNK_1:3] Macro(“SIP/TRUNK_SOFTPHONE-00000002”, “adhoc3”) in new stack
– Executing [s@macro-adhoc3:1] Verbose(“SIP/TRUNK_SOFTPHONE-00000002”, “2, Inside adhoc3”) in new stack
== Inside adhoc3
– Executing [s@macro-adhoc3:2] MacroExit(“SIP/TRUNK_SOFTPHONE-00000002”, “”) in new stack
– Executing [55555@from-TRUNK_1:4] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “CHANNEL(language)=es”) in new stack
– Executing [55555@from-TRUNK_1:5] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “CDR(tipo)=SALA”) in new stack
– Executing [55555@from-TRUNK_1:6] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “CDR(destino)=55555”) in new stack
– Executing [55555@from-TRUNK_1:7] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “CDR(origen)=TRUNK_SOFTPHONE”) in new stack
– Executing [55555@from-TRUNK_1:8] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “CDR(estado)=ANSWERED”) in new stack
– Executing [55555@from-TRUNK_1:9] Macro(“SIP/TRUNK_SOFTPHONE-00000002”, “adhoc4”) in new stack
– Executing [s@macro-adhoc4:1] Verbose(“SIP/TRUNK_SOFTPHONE-00000002”, “2, Inside adhoc4”) in new stack
== Inside adhoc4
– Executing [s@macro-adhoc4:2] Answer(“SIP/TRUNK_SOFTPHONE-00000002”, “”) in new stack
> 0x7f66680126e0 – Strict RTP switching to RTP target address 192.168.1.1:40018 as source
– Executing [s@macro-adhoc4:3] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “LIMIT_WARNING_FILE=beep”) in new stack
– Executing [s@macro-adhoc4:4] Set(“SIP/TRUNK_SOFTPHONE-00000002”, “BEEP_ID=2”) in new stack
– Executing [s@macro-adhoc4:5] Wait(“SIP/TRUNK_SOFTPHONE-00000002”, “30”) in new stack
– Called hook@func_periodic_hook_context
– Executing [hook@func_periodic_hook_context:1] Set(“Local/hook@func_periodic_hook_context-0000000c;2”, “EncodedChannel=SIP/TRUNK_SOFTPHONE-00000002”) in new stack
– Executing [hook@func_periodic_hook_context:2] Set(“Local/hook@func_periodic_hook_context-0000000c;2”, “GROUP_NAME=SIP/TRUNK_SOFTPHONE-000000022”) in new stack
– Executing [hook@func_periodic_hook_context:3] Set(“Local/hook@func_periodic_hook_context-0000000c;2”, “GROUP(periodic-hook)=SIP/TRUNK_SOFTPHONE-000000022”) in new stack
– Executing [hook@func_periodic_hook_context:4] ExecIf(“Local/hook@func_periodic_hook_context-0000000c;2”, “0?Hangup()”) in new stack
– Executing [hook@func_periodic_hook_context:5] Set(“Local/hook@func_periodic_hook_context-0000000c;2”, “ChannelToSpy=SIP/TRUNK_SOFTPHONE-00000002”) in new stack
– Executing [hook@func_periodic_hook_context:6] ChanSpy(“Local/hook@func_periodic_hook_context-0000000c;2”, “SIP/TRUNK_SOFTPHONE-00000002,qEB”) in new stack
[Jun 9 12:01:00] WARNING[4728][C-0000000f]: channel.c:5707 set_format: Unable to find a codec translation path: (slin) -> (slin)
[Jun 9 12:01:00] ERROR[4728][C-0000000f]: app_chanspy.c:1275 chanspy_exec: Could Not Set Write Format.

Hi,
To solve the problem, load codec_resample.so

Regards

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.