<div>I just went thru the same problem days ago and it all ended being problems with the firewall.</div> <div> </div> <div>Even if the application is listening in a given port, that doesn't mean the port is open in the firewall.</div> <div> </div> <div>try thise to see if the firewall is letting the traffic thru an specific port:</div> <div> </div> <div>iptables -L</div> <div> </div> <div>You should see something like:</div> <div><BR>ACCEPT udp -- anywhere anywhere state NEW udp dpt:sip </div> <div> </div> <div>or</div> <div> </div> <div>ACCEPT udp -- anywhere anywhere state NEW udp
dpt:5060</div> <div> </div> <div>The same applies to the iax2 port or the rtp port.</div> <div>You can use the iptables to open new ports or use the graphical tool in the gnome graphical environment to configure the firewall.</div> <div> </div> <div>Make sure you reboot the machine after your changes are made. It is the best way to ensure the new configuration takes place.</div> <div> </div> <div>/etc/init.d/iptables stop</div> <div>/etc/init.d/iptables start </div> <div> </div> <div>those commans help you stop or start the firewall.</div> <div> </div> <div>Elpidio<BR><B><I>Rich Adamson <radamson@routers.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Crazy Boy wrote:<BR>> Hi Elpidio,<BR>> <BR>> I am Chandra from India. I have a doubt. I am trying to solve my problem <BR>> from many days. But, I couldn't able to solve this problem. I am
using <BR>> Asterisk with Redhat Enterprise Linux 4.2. The problem is 5060 port is <BR>> blocked. After stop my firewall (service iptables stop) also, 5060 port <BR>> is not opening. I checked with the below command:<BR>> # nmap -p5060 192.168.91.22--->This is my IP address<BR>> and it is showing that port 5060 is closed. How can I enable and open <BR>> this 5060 port? Really, I am breaking my head with this problem. SIP is <BR>> not working because of this problem. Please tell me a solution. Looking <BR>> forward to your reply. Thank you.<BR><BR>The quickest way to determine whether an application is listening on a <BR>port is to simply do a 'netstat -an' from the linux command line. You <BR>should see something like this:<BR>udp 0 0 0.0.0.0:5060 0.0.0.0:*<BR><BR>If you don't see that, then asterisk is not opening the port.<BR><BR>From an asterisk command line, do 'show modules like sip' and you <BR>should see something like this:<BR>Module
Description <BR>Use Count<BR>chan_sip.so Session Initiation Protocol (SIP) 0<BR><BR>If you don't see that, then asterisk is not loading the chan_sip.so <BR>module for some reason.<BR><BR>Look in /etc/asterisk/modules.conf and make sure there is NOT an entry <BR>in that file that looks something like this:<BR>noload => chan_sip.so<BR><BR>If that entry is not there, then you either have a problem with the <BR>configuration of the file /etc/asterisk/sip.conf, or, some other problem <BR>that is causing asterisk to not load chan_sip.so.<BR><BR>If you are sure the sip.conf is absolutely correct and error free, then <BR>stop asterisk, and start it from the linux command line with 'asterisk <BR>-c'. There should be some indication why chan_sip.so is not be loaded, etc.<BR><BR>_______________________________________________<BR>--Bandwidth and Colocation provided by Easynews.com --<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE><BR><BR><BR><DIV id=RTEContent> <DIV id=RTEContent> <DIV id=RTEContent> <DIV> <DIV> <DIV> <DIV> <DIV> <DIV> <DIV><STRONG><FONT size=3>Elpidio Ramos</FONT></STRONG> <BR>President <BR>RM International Services SA CV <BR>Web: http://www.ramosoft.com <BR>Mex: +52 (55) 5116-9804 Office<BR> +52 (55) 5116-9805 Fax </DIV> <DIV> +52 (55) 1755-6601 Cell<BR>USA: +1 (801) 494-1415 Office</DIV> <DIV> +1 (240) 250-8264 Fax</DIV> <DIV> +1 (801) 938-4740 Direct</DIV> <DIV> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>