I have installed Asterisk 20.5.2 and not configured anything but only pjsip.conf file i made some changes as per below and not created any extensions or anything but getting error which mentioned below.
[Jan 19 20:23:46] ERROR[12363]: res_pjsip/config_transport.c:917 transport_apply: Transport 'transport-udp-nat' could not be started: Address already in use
[Jan 19 20:23:46] ERROR[12363]: res_sorcery_config.c:422 sorcery_config_internal_load: Could not create an object of type 'transport' with id 'transport-udp-nat' from configuration file 'pjsip.conf'
[Jan 19 20:23:46] NOTICE[12363]: sorcery.c:1348 sorcery_object_load: Type 'system' is not reloadable, maintaining previous values
Can anyone guide whats wrong and I have not touch sip.conf file also.
You can have a single transport, configured with local_net, external_media_address, and external_signaling_address for use on LAN and outside the network. Many many many people do that. Having multiple transports is not necessary for it.
Configuration for what? The given transport “transport-udp-nat” is fine generally. It’s up to you to populate the local_net and external options with the correct values.
You haven’t stated what exactly happens. Does the traffic appear at Asterisk? (Does it show up in pjsip set logger on)? If not, then the traffic is not getting to Asterisk.
In asterisk console Im not getting any activity when I’m trying to register from my outside network. Nothing is happening. In zoiper I’m giving these details
Still I’m not able to dial from outside network. In Asterisk Console not showing any activities. All my ports in router forwarded as UDP port.
One more question do I need to do anything in sip.conf file ? As I have seen so many documents are available where some configuration is done in sip.conf file to access from outside network. Kindly guide
Yes logs are coming from local network but from outside nothing showing.
19:01:07.073798 enp1s0 In IP 192.168.0.101.33678 > 192.168.0.230.5060: SIP
19:01:22.728825 enp1s0 In IP 192.168.0.101.33678 > 192.168.0.230.5060: SIP: REGISTER sip:192.168.0.230:5060;transport=UDP SIP/2.0
19:01:22.729624 enp1s0 Out IP 192.168.0.230.5060 > 192.168.0.101.33678: SIP: SIP/2.0 401 Unauthorized
19:01:22.830907 enp1s0 In IP 192.168.0.101.33678 > 192.168.0.230.5060: SIP: REGISTER sip:192.168.0.230:5060;transport=UDP SIP/2.0
19:01:22.832408 enp1s0 Out IP 192.168.0.230.5060 > 192.168.0.101.33678: SIP: SIP/2.0 200 OK
19:01:37.068177 enp1s0 In IP 192.168.0.101.33678 > 192.168.0.230.5060: SIP