[asterisk-users] using SIP to connect remote other VoIP
server(Attn:Elpidio)
Elpidio Ramos
elpidio at ramosoft.com
Thu Sep 7 12:14:00 MST 2006
I just went thru the same problem days ago and it all ended being problems with the firewall.
Even if the application is listening in a given port, that doesn't mean the port is open in the firewall.
try thise to see if the firewall is letting the traffic thru an specific port:
iptables -L
You should see something like:
ACCEPT udp -- anywhere anywhere state NEW udp dpt:sip
or
ACCEPT udp -- anywhere anywhere state NEW udp dpt:5060
The same applies to the iax2 port or the rtp port.
You can use the iptables to open new ports or use the graphical tool in the gnome graphical environment to configure the firewall.
Make sure you reboot the machine after your changes are made. It is the best way to ensure the new configuration takes place.
/etc/init.d/iptables stop
/etc/init.d/iptables start
those commans help you stop or start the firewall.
Elpidio
Rich Adamson <radamson at routers.com> wrote:
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 192.168.91.22--->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 0.0.0.0:5060 0.0.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.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Elpidio Ramos
President
RM International Services SA CV
Web: http://www.ramosoft.com
Mex: +52 (55) 5116-9804 Office
+52 (55) 5116-9805 Fax
+52 (55) 1755-6601 Cell
USA: +1 (801) 494-1415 Office
+1 (240) 250-8264 Fax
+1 (801) 938-4740 Direct
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060907/7bf425d5/attachment.htm
More information about the asterisk-users
mailing list