Cannot record voice messages

I have just completed installation of Asterisk@Home on a hand-me-down Dell laptop. My primary interest in asterisk is inbound calls answered by the autoattendant. I have tried to use the Record application to allow inbound callers to record a message, but it seems to be skipped right over - my call is given the “congestion” message. Here is what is in extensions.conf…


[from-sip-external]

;answer and be all friendly and nice like
exten => _.,1,Wait(2)
exten => _.,2,Playback(there-is-no-customer-support)
exten => _.,3,Record(testmsg.WAV|0|0)
exten => _.,4,Wait(5)
exten => _.,5,Hangup

… and here is what happens on the console. The customer support message is played twice, just as indicated, and the record command seems to be ignored entirely.


-- Executing Wait("SIP/147.135.4.129-096c5690", "2") in new stack
-- Executing Playback("SIP/147.135.4.129-096c5690", "there-is-no-customer-support") in new stack
-- Playing 'there-is-no-customer-support' (language 'en')
-- Executing Record("SIP/147.135.4.129-096c5690", "testmsg.WAV|0|0") in new stack

== Spawn extension (from-sip-external, s, 3) exited non-zero on ‘SIP/147.135.4.129-096c5690’
– Executing Wait(“SIP/147.135.4.129-096c5690”, “2”) in new stack
– Executing Playback(“SIP/147.135.4.129-096c5690”, “there-is-no-customer-support”) in new stack
– Playing ‘there-is-no-customer-support’ (language ‘en’)
– Executing Record(“SIP/147.135.4.129-096c5690”, “testmsg.WAV|0|0”) in new stack
== Spawn extension (from-sip-external, h, 3) exited non-zero on 'SIP/147.135.4.129-096c5690’
asterisk1*CLI>

Many thanks for any help. I’m new to Asterisk and VoIP in general!

Why not use voicemail

exten => _.,1,Wait(2)
exten => _.,2,Playback(there-is-no-customer-support)
exten => _.,3,VoiceMail(100)
exten => _.,5,Hangup

Rusty, thanks for your suggestion, not only did it work as a temporary solution, it helped me find the problem in my script. The line below…

exten => _.,3,Record(testmsg.WAV|0|0)

should read:

exten => _.,3,Record(testmsg:wav)

Apparently Asterisk ignores commands with incorrect syntax? I’m just guessing as I’m quite new to it. Thanks again for pointing me in the right direction!

(Still gotta figure out why the extension script is running twice…)