Well, it turns out there is more of a problem. I cannot seem to generate recent log files since I cannot get the SIP phones to register with either asterisk server; I cannot attempt a call. Here is my configuration for the SIP phone on each server:
- Code: Select all
[201]
disallow=all
allow=alaw
host=dynamic
deny=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.0.0
secret=password
type=friend
context=incoming-internal
canreinvite=no
qualify=yes
nat=no
srtpcapable=no
encryption=no
when I have the host=ip and not dynamic and the softphone is running on the same machine as the asterisk server it is connecting to, I get:
- Code: Select all
NOTICE[2011]: chan_sip.c:25821 handle_request_register: Registration from ip '<sip:201@192.168.1.180;transport=UDP>' failed for '192.168.1.180:40047' - Peer is not supposed to register
_____________________________________________________________________________
when I do host=dynamic and the softphone is running on the same machine as the asterisk server it is connecting to, I get:
- Code: Select all
NOTICE[2011]: chan_sip.c:27107 sip_poke_noanswer: Peer '201' is now UNREACHABLE! Last qualify: 1
and wireshark shows that the server is sending SIP OPTIONS requests to my routers public ip.
_____________________________________________________________________________
when I do host = dynamic or host=ip, setting up the softphone on a different machine than the asterisk server it is connecting to I get, from wireshark:
- Code: Select all
ICMP Host administratively prohibited
.
I did
- Code: Select all
sudo service iptables stop
to see if my firewall was running, but Unit iptables.service is not even loaded. In addition the servers continue to send 404 not found's back and forth.
______________________________________________________________________________
Here are the logs from the most recent attempted calls before this issue:
- Code: Select all
[Jun 14 17:53:06] NOTICE[27752] cdr.c: CDR simple logging enabled.
[Jun 14 17:53:06] NOTICE[27752] loader.c: 183 modules will be loaded.
[Jun 14 17:53:06] NOTICE[27752] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI lis$
[Jun 14 17:53:06] NOTICE[27752] chan_sip.c: The 'username' field for sip peers has been deprecated in favor of t$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from th$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! the name of that peer/user discoverable by an attacker. Replies$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! will be sent to a different port than replies for an existing p$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! use the global 'nat' setting and do not set 'nat' per peer/user.
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! (config category='asterisksrtp' global force_rport='Yes' peer/u$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from th$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! the name of that peer/user discoverable by an attacker. Replies$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! will be sent to a different port than replies for an existing p$
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! use the global 'nat' setting and do not set 'nat' per peer/user.
[Jun 14 17:53:06] WARNING[27752] chan_sip.c: !!! (config category='201' global force_rport='Yes' peer/user force$
[Jun 14 17:53:06] NOTICE[27752] chan_skinny.c: Configuring skinny from skinny.conf
[Jun 14 17:53:06] WARNING[27752] chan_skinny.c: Failed to bind to 0.0.0.0:2000: Address already in use
[Jun 14 17:53:06] NOTICE[27752] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CS$
[Jun 14 17:53:06] NOTICE[27752] pbx_ael.c: Starting AEL load process.
[Jun 14 17:53:06] NOTICE[27752] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.a$
[Jun 14 17:53:06] NOTICE[27752] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.$
[Jun 14 17:53:06] NOTICE[27752] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions$
[Jun 14 17:53:06] NOTICE[27752] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.a$
[Jun 14 17:53:06] NOTICE[27752] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions$
[Jun 14 17:53:06] ERROR[27752] pbx_dundi.c: Unable to bind to 0.0.0.0 port 4520: Address already in use
Thank you.