I’m using asteriks 11 at my openWRT router and android phone as a client with csipsimple as softphone. When I see asterisk’s log at /var/log/asterisk/messages I found this :
[Oct 1 12:56:08] WARNING[1360] loader.c: Error loading module ‘res_musiconhold.so’: File not found
[Oct 1 12:56:08] WARNING[1360] loader.c: Module ‘res_musiconhold.so’ could not be loaded.
[Oct 1 12:56:08] NOTICE[1360] chan_sip.c: The ‘username’ field for sip peers has been deprecated in favor of the term ‘defaultuser’
[Oct 1 12:56:08] WARNING[1360] chan_sip.c: ‘tls’ is not a valid transport type when tlsenable=no. If no other is specified, the defaults from general will be used.
[Oct 1 12:56:08] WARNING[1360] chan_sip.c: !!! PLEASE NOTE: Setting ‘nat’ for a peer/user that differs from the global setting can make
[Oct 1 12:56:08] WARNING[1360] chan_sip.c: !!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users
[Oct 1 12:56:08] WARNING[1360] chan_sip.c: !!! will be sent to a different port than replies for an existing peer/user. If at all possible,
[Oct 1 12:56:08] WARNING[1360] chan_sip.c: !!! use the global ‘nat’ setting and do not set ‘nat’ per peer/user.
[Oct 1 12:56:08] WARNING[1360] chan_sip.c: !!! (config category=‘504’ global force_rport=‘No’ peer/user force_rport=‘Yes’)
[Oct 1 12:56:17] WARNING[1360] pbx.c: Context ‘outbound-srtp’ tries to include nonexistent context ‘seven-digit’
I would have expected a diagnostic if the TLS support hadn’t loaded so I’m at a loss to think of why tlsenable is set to false with that configuration.
Unfortunately I have my own TLS problems as the latest Iceweasel (Firefox) thinks the login page for this site has inadequate encryption and refuses to talk to it, so I can’t respond from home, where I have time to think a bit more about this.
I’m using openWRT router as asterisk server. is there module or packet that I didn’t installed on my router and it makes my asterisk didn’t run properly ?
Common problems with TLS are not having the openssl files (in the right places)at run or build time, or not selecting them with menuselect, However, I would have thought you would have had more specific errors reported.
Hai david, seems like I have make progress on my problems. I hope you see this post
OpenWrt*CLI> sip show tcp
Address Transport Type
192.168.1.115:42201 TCP Server
TLC using TCP right ?
Default Settings:
Allowed transports: TLS
Outbound transport: TLS
Context: public
Record on feature: automon
Record off feature: automon
Force rport: Auto (No)
DTMF: rfc2833
Qualify: 0
Keepalive: 0
Use ClientCode: No
Progress inband: Never
Language:
Tone zone:
MOH Interpret: default
MOH Suggest:
Voice Mail Extension: asterisk
Global Settings:
UDP Bindaddress: 0.0.0.0:5060
TCP SIP Bindaddress: 192.168.1.1:5061
TLS SIP Bindaddress: 192.168.1.1:5061
Videosupport: No
Textsupport: No
Ignore SDP sess. ver.: No
AutoCreate Peer: Off
Match Auth Username: No
Allow unknown access: Yes
Allow subscriptions: Yes
Allow overlap dialing: No
Allow promisc. redir: No
Enable call counters: No
SIP domain support: No
Realm. auth: No
Our auth realm asterisk
this is my asterisk log
root@OpenWrt:/etc/asterisk# tail -f /var/log/asterisk/messages
[Oct 2 13:55:48] WARNING[1210] loader.c: Error loading module ‘res_musiconhold.so’: File not found
[Oct 2 13:55:48] WARNING[1210] loader.c: Module ‘res_musiconhold.so’ could not be loaded.
[Oct 2 13:55:48] NOTICE[1210] chan_sip.c: The ‘username’ field for sip peers has been deprecated in favor of the term ‘defaultuser’
[Oct 2 14:07:12] Asterisk 11.12.0 built by bb @ Debian-75-wheezy-64-minimal on a x86_64 running Linux on 2014-09-23 07:08:05 UTC
[Oct 2 14:07:13] WARNING[1447] cel.c: Could not load cel.conf
[Oct 2 14:07:13] NOTICE[1447] loader.c: 34 modules will be loaded.
[Oct 2 14:07:13] WARNING[1447] loader.c: Error loading module ‘res_musiconhold.so’: File not found
[Oct 2 14:07:13] WARNING[1447] loader.c: Error loading module ‘res_musiconhold.so’: File not found
[Oct 2 14:07:13] WARNING[1447] loader.c: Module ‘res_musiconhold.so’ could not be loaded.
[Oct 2 14:07:13] NOTICE[1447] chan_sip.c: The ‘username’ field for sip peers has been deprecated in favor of the term ‘defaultuser’
Oh, I have a question. is outboud proxy required for using TLS ?
Oh, I think we should open a same port at TCP. I’m sorry, I’ll fixed it…
But except one problem above about same port at TCP, is my configuration right ? or there is some mistake ? I’m really happy if you can guide me. I’m new for using asterisk