[asterisk-users] using SIP to connect remote other VoIP server(Attn:Elpidio)

Rich Adamson radamson at routers.com
Thu Sep 7 11:39:35 MST 2006

Crazy Boy wrote:
> Hi Elpidio,
> I am Chandra from India. I have a doubt. I am trying to solve my problem 
> from many days. But, I couldn't able to solve this problem. I am using 
> Asterisk with Redhat Enterprise Linux 4.2. The problem is 5060 port is 
> blocked. After stop my firewall (service iptables stop) also, 5060 port 
> is not opening. I checked with the below command:
> # nmap -p5060>This is my IP address
> and it is showing that port 5060 is closed. How can I enable and open 
> this 5060 port? Really, I am breaking my head with this problem. SIP is 
> not working because of this problem. Please tell me a solution. Looking 
> forward to your reply. Thank you.

The quickest way to determine whether an application is listening on a 
port is to simply do a 'netstat -an' from the linux command line. You 
should see something like this:
  udp        0      0      *

If you don't see that, then asterisk is not opening the port.

 From an asterisk command line, do 'show modules like sip' and you 
should see something like this:
  Module                         Description 
   Use Count
  chan_sip.so                    Session Initiation Protocol (SIP)        0

If you don't see that, then asterisk is not loading the chan_sip.so 
module for some reason.

Look in /etc/asterisk/modules.conf and make sure there is NOT an entry 
in that file that looks something like this:
  noload => chan_sip.so

If that entry is not there, then you either have a problem with the 
configuration of the file /etc/asterisk/sip.conf, or, some other problem 
that is causing asterisk to not load chan_sip.so.

If you are sure the sip.conf is absolutely correct and error free, then 
stop asterisk, and start it from the linux command line with 'asterisk 
-c'. There should be some indication why chan_sip.so is not be loaded, etc.

More information about the asterisk-users mailing list