I’ve been trying on and off an no luck so far.
So, it looks like Asterisk is running and should be responding on port 5060.
I run from bash and it seems like it connects properly to my VM
nc -uv 192.168.31.128 5060
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif (null)
src 192.168.31.1 port 52043
dst 192.168.31.128 port 5060
rank info not available
[b]Connection to 192.168.31.128 port 5060 [udp/sip] succeeded![/b]
When I try the same from Zoiper it just times out 
Just for kicks I installed FreePBX distro in another VM. And yes, I can connect to it after adding extension 6001 via admin interface. When I run same netstat command in addition to 2 UDP ports it’s listening to couple of TCP ports, but it’s not needed for SIP to work, I assume those for UI, etc.
So, what might be wrong? Currently I have all modules running from what I can tell and here is configs for files I have in /etc/asterisk: (only 4 files)
asterisk.conf
[code]directories
astetcdir => /etc/asterisk
astmoddir => /usr/lib64/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
astsbindir => /usr/sbin
[options]
runuser = asteriskpbx ; The user to run as.
rungroup = asteriskpbx ; The group to run as.[/code]
extensions.conf
[from-internal]
exten = 100,1,Answer()
same = n,Wait(1)
same = n,Playback(hello-world)
same = n.Hangup()
modules.conf
[quote][modules]
autoload=yes[/quote]
pjsip.conf
[code][transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[6001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001
[6001]
type=auth
auth_type=userpass
password=123456AB
username=6001
[6001]
type=aor
max_contacts=1[/code]
As you see - it’s all very basic stuff, I’m learning from ground up and just stumbled why it is not connecting. I’m developer(also on PC), I understand basics and from my point of view if config was bad - phone would give me 403, 401, etc. But not timing out? I can ping this VM machine and check port as you see above…
I also enabled verbose logging to see if anything there. Tried to connect - nothing in a log. Restarted asterisk service - this is all I see:
Mar 25 20:06:55] VERBOSE[12289] asterisk.c: Asterisk cleanly ending (0).
[Mar 25 20:06:55] VERBOSE[12289] asterisk.c: Executing last minute cleanups
[Mar 25 20:06:59] Asterisk 13.1-cert1 built by root @ localhost.localdomain on a x86_64 running Linux on 2015-03-25 01:49:46 UTC
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'features.conf'
[Mar 25 20:07:00] NOTICE[12771] features_config.c: Could not load features config; using defaults
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'acl.conf'
[Mar 25 20:07:00] WARNING[12771] indications.c: Can't find indications config file indications.conf.
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'cdr.conf'
[Mar 25 20:07:00] NOTICE[12771] cdr.c: Failed to process CDR configuration; using defaults
[Mar 25 20:07:00] NOTICE[12771] cdr.c: CDR simple logging enabled.
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'udptl.conf'
[Mar 25 20:07:00] NOTICE[12771] udptl.c: Could not load udptl config; using defaults
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'cel.conf'
[Mar 25 20:07:00] NOTICE[12771] cel.c: Failed to process CEL configuration; using defaults
[Mar 25 20:07:00] NOTICE[12771] manager.c: Unable to open AMI configuration manager.conf, or configuration is invalid.
[Mar 25 20:07:00] WARNING[12771] ccss.c: Could not find valid ccss.conf file. Using cc_max_requests default
[Mar 25 20:07:00] WARNING[12771] ccss.c: Could not find valid ccss.conf file. Using cc_[state]_devstate defaults
[Mar 25 20:07:00] NOTICE[12771] loader.c: 230 modules will be loaded.
[Mar 25 20:07:00] WARNING[12771] res_stun_monitor.c: Unable to load config res_stun_monitor.conf
[Mar 25 20:07:00] NOTICE[12771] res_smdi.c: Unable to load config smdi.conf: SMDI disabled
[Mar 25 20:07:00] NOTICE[12771] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'ari.conf'
[Mar 25 20:07:00] NOTICE[12771] res_fax.c: Configuration file 'res_fax.conf' not found, using default options.
[Mar 25 20:07:00] ERROR[12771] res_calendar.c: Unable to load config calendar.conf
[Mar 25 20:07:00] WARNING[12771] loader.c: Error loading module 'res_ari_mailboxes.so': /usr/lib64/asterisk/modules/res_ari_mailboxes.so: undefined symbol: stasis_app_mailbox_to_json
[Mar 25 20:07:00] WARNING[12771] loader.c: Module 'res_ari_mailboxes.so' could not be loaded.
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'res_parking.conf'
[Mar 25 20:07:00] ERROR[12771] res_config_sqlite3.c: Missing config file 'res_config_sqlite3.conf'
[Mar 25 20:07:00] WARNING[12771] res_musiconhold.c: No music on hold classes configured, disabling music on hold.
[Mar 25 20:07:00] ERROR[12771] chan_dahdi.c: Unable to load config chan_dahdi.conf
[Mar 25 20:07:00] ERROR[12771] chan_iax2.c: Unable to load config iax.conf
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'pjsip_notify.conf'
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'confbridge.conf'
[Mar 25 20:07:00] ERROR[12771] app_confbridge.c: Unable to load config. Not loading module.
[Mar 25 20:07:00] ERROR[12771] config_options.c: Unable to load config file 'agents.conf'
[Mar 25 20:07:00] ERROR[12771] app_agent_pool.c: Unable to load config. Not loading module.
[Mar 25 20:07:00] WARNING[12771] cdr_manager.c: Failed to load configuration file. Module not activated.
[Mar 25 20:07:00] ERROR[12771] cdr_syslog.c: Unable to load cdr_syslog.conf. Not logging custom CSV CDRs to syslog.
[Mar 25 20:07:00] ERROR[12771] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[Mar 25 20:07:00] WARNING[12771] cel_manager.c: Failed to load configuration file. CEL manager Module not activated.
[Mar 25 20:07:00] ERROR[12771] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[Mar 25 20:07:01] WARNING[12771] pbx_config.c: Invalid priority/label 'n.Hangup' at line 5 of extensions.conf
[Mar 25 20:07:01] WARNING[12771] app_followme.c: No follow me config file (followme.conf), so no follow me
[Mar 25 20:07:01] WARNING[12771] app_voicemail.c: Failed to load configuration file.
[Mar 25 20:07:01] ERROR[12771] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[Mar 25 20:07:01] NOTICE[12771] app_queue.c: No queuerules.conf file found, queues will not follow penalty rules
[Mar 25 20:07:01] NOTICE[12771] app_queue.c: No call queueing config file (queues.conf), so no call queues
[Mar 25 20:07:01] VERBOSE[12771] asterisk.c: Asterisk Ready.