Audio from hello world not playing?

I’m brand new to asterisk and just following the installation and hello world guides. I’m able to register my user and connect to the asterisk server. The console shows that it is connecting and playing the hello world audio file, but I don’t hear anything.

I’m connecting using Voiper (dialing 100) and on the same machine as the asterisk server (connecting via local host). I’ve used Voiper’s tools to verify that my speaker is working, but I don’t appear to receive the audio from the asterisk server, even though the console is reporting that it answered and played the file.

I do occasionally get some errors related to database permissions, but they don’t occur every time I try to call.

Using SIP RTP CoS mark 5
> 0x7faf8800b9a0 – Strict RTP learning after remote address set to: 107.2.246.165:8000
– Executing [100@from-internal:1] Answer(“SIP/6001-00000002”, “”) in new stack
> 0x7faf8800b9a0 – Strict RTP qualifying stream type: audio
> 0x7faf8800b9a0 – Strict RTP switching source address to 127.0.0.1:8000
– Executing [100@from-internal:2] Wait(“SIP/6001-00000002”, “5”) in new stack
> 0x7faf8800b9a0 – Strict RTP learning complete - Locking on source address 127.0.0.1:8000
– Executing [100@from-internal:3] Playback(“SIP/6001-00000002”, “tt-monkeys”) in new stack
– <SIP/6001-00000002> Playing ‘tt-monkeys.ulaw’ (language ‘en’)
[Aug 19 12:47:00] WARNING[14957]: db.c:304 db_execute_sql: Error executing SQL (COMMIT): database is locked
– Executing [100@from-internal:4] Hangup(“SIP/6001-00000002”, “”) in new stack
== Spawn extension (from-internal, 100, 4) exited non-zero on ‘SIP/6001-00000002’
[Aug 19 12:47:54] WARNING[14957]: db.c:304 db_execute_sql: Error executing SQL (COMMIT): database is locked

Is there something set up incorrectly with Asterisk?

Your client is placing your public IP address into the signaling. Asterisk attempts to send media to it, but it doesn’t work. You can fix this by disabling STUN most likely within the client, or enabling NAT support on the peer/friend/user in sip.conf.

2 Likes

Thanks so much! Fixed it right away.

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