I have just upgraded to FreePBX/Asterisk 13 from a very stable and reliable Asterisk 1.8
Sometime you wonder why you bother…
This is NOT the ‘distro’ but self installed from RPMs and devices and users manually transferred over.
The main issue is that prompt sounds seem to have disappeared.
Echo test to *43 from any extension can hear the prompt and you can talk back.
However, if you dial a non existent number you get a ringing tone but no other sound seems to work.
I did originally get errors like this:
-- <SIP/8100-000000a9> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
[2018-02-16 14:13:41] WARNING[22825][C-0000005e]: app_playback.c:493 playback_exec: Playback failed on SIP/8100-000000a9 for silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer
[2018-02-16 14:13:41] WARNING[22825][C-0000005e]: file.c:905 ast_readaudio_callback: Failed to write frame
– <SIP/8100-000000a9> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)
[2018-02-16 14:13:41] WARNING[22825][C-0000005e]: app_playback.c:493 playback_exec: Playback failed on SIP/8100-000000a9 for silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer
I fixed that by installing the asterisk-resample package.
After installing it and restarting I lose the errors but still get no prompts - just this sort of thing in the logs when I dial a bad number eg 988755446#
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [988755446#@from-internal:1] ResetCDR(“SIP/8202-00000000”, “”) in new stack
– Executing [988755446#@from-internal:2] NoCDR(“SIP/8202-00000000”, “”) in new stack
– Executing [988755446#@from-internal:3] Progress(“SIP/8202-00000000”, “”) in new stack
– Executing [988755446#@from-internal:4] Wait(“SIP/8202-00000000”, “1”) in new stack
– Executing [988755446#@from-internal:5] Playback(“SIP/8202-00000000”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
– <SIP/8202-00000000> Playing ‘silence/1.ulaw’ (language ‘en’)
– <SIP/8202-00000000> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘en’)
– <SIP/8202-00000000> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)
– Executing [988755446#@from-internal:6] Wait(“SIP/8202-00000000”, “1”) in new stack
– Executing [988755446#@from-internal:7] Congestion(“SIP/8202-00000000”, “20”) in new stack
== Spawn extension (from-internal, 988755446#, 7) exited non-zero on ‘SIP/8202-00000000’
– Executing [h@from-internal:1] Macro(“SIP/8202-00000000”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/8202-00000000”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/8202-00000000”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/8202-00000000”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/8202-00000000’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/8202-00000000’
Any ideas why ?
A few oddities. The system is in devices and users mode. I had codec settings in general SIP set to:
disallow all
all ulaw
Nothing set in any of the devices.
When I checked sip show channels I noticed that Format showed (nothing). I expected devices to default to the General SIP setting ?
I then set the same settings per device and then get this which seems to be OK:
asterisk*CLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry Peer
192.168.10.138 8003 ebb90000-23f3e5 (ulaw) No Rx: ACK 8003
192.168.10.98 8202 1a1d94372a6025e (ulaw) No Tx: ACK 8202
(I also think that the User/ANR was not showing before)
I thought the General SIP settings should take precedence if there is nothing in devices ?
Still no sound prompts for anything. I am not sure how I can test further?
I also note that I have the following error in the Dashboard but not sure if that affects my issue.
The file format sln48 is not supported by Asterisk when it should be. Audio conversion quality will be limited to 16k instead of 48k. This is probably the result of the missing Asterisk resample package
As below, I have the resample package installed and loaded.
However, FreePBX still thinks that the package is missing
Any help or advice appreciated.
B. Rgds
John
asterisk*CLI> module show like format_sl
Module Description Use Count Status Support Level
format_sln.so Raw Signed Linear Audio support (SLN) 8k 0 Running core
asterisk*CLI> file convert /var/spool/asterisk/tmp/macroform-cold_day.wav /var/spool/asterisk/tmp/macroform-cold_day.sln48
Converted /var/spool/asterisk/tmp/macroform-cold_day.wav to /var/spool/asterisk/tmp/macroform-cold_day.sln48 in 1114ms
asterisk*CLI> core show file formats
Format Name Extensions
slin48 sln48 sln48
asterisk*CLI> core show translation paths slin 48000
— Translation paths SRC Codec “slin” sample rate 48000 —
Blahhhhh…
asterisk*CLI> module load codec_resample.so
Loaded codec_resample.so
== Registered translator ‘slin 8000khz → 12000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 16000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 24000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 32000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 44100khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 48000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 8000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 12000khz → 16000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 24000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 32000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 44100khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 48000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 12000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 16000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 16000khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 16000khz → 24000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 16000khz → 32000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 16000khz → 44100khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 16000khz → 48000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 16000khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 16000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 24000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 24000khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 24000khz → 16000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 24000khz → 32000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 24000khz → 44100khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 24000khz → 48000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 24000khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 24000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 32000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 32000khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 32000khz → 16000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 32000khz → 24000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 32000khz → 44100khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 32000khz → 48000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 32000khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 32000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 44100khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 44100khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 44100khz → 16000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 44100khz → 24000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 44100khz → 32000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 44100khz → 48000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 44100khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 44100khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 48000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 48000khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 48000khz → 16000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 48000khz → 24000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 48000khz → 32000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 48000khz → 44100khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 48000khz → 96000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 48000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 96000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 16000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 24000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 32000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 44100khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 48000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 96000khz → 192000khz’ from codec slin to slin, table cost, 800000, computational cost 999999
== Registered translator ‘slin 192000khz → 8000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 12000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 16000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 24000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 32000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 44100khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 48000khz’ from codec slin to slin, table cost, 850000, computational cost 999999
== Registered translator ‘slin 192000khz → 96000khz’ from codec slin to slin, table cost, 850000, computational cost 999999