No SIP Help
If you have a new install and SIP doesn't work and "help sip" at the Asterisk CLI shows no SIP help commands then it may be that your network card is not working (not recognized by CentOS) or assigned to another ethernet port other than eth0. At the Asterisk CLI, you should see the following SIP commands available:
If you do not see any SIP help commands, check to see if your network card is set as eth0. When you first log on to PiaF as the root user, you should see the following message on the screen with an IP address:
For access to the PBX web GUI use this URL:
http://10.162.110.153 <= should be your IP address
If you do not see an IP address, at the Linux prompt type: "ifconfig", you should see:
eth0 Link encap:Ethernet HWaddr 00:08:02:5a:e5:06
inet addr:192.168.19.57 Bcast:192.168.19.255 Mask:255.255.255.0
inet6 addr: fe80::208:2ff:fe5a:e506/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16660 errors:0 dropped:0 overruns:0 frame:0
TX packets:16805 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17838768 (17.8 MB) TX bytes:2714028 (2.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)
For PiaF to work properly, your network card must be device eth0. Asterisk expects that the network card
will be device eth0, if it shows up as eth1 or another ethernet device, you will need to change the configuration to eth0 in order to continue.
/etc/sysconfig/network-scripts contains the interface configurations for the ethernet network cards. They are labeled as ifcfg-ethx where x is the device number. We expect that the ethernet card should be ifcfg-eth0. If it shows up as a different device, we can modify the script (simple text file) so that it becomes eth0. At the linux prompt:
root@pbx:~ $ cd /etc/sysconfig/network-scripts
root@pbx/etc/sysconfig/network-scripts $ mv ifcfg-eth1 ifcfg-eth0 <= if it shows up as eth1
root@pbx/etc/sysconfig/network-scripts $ nano ifcfg-eth0
Change DEVICE=eth1 to DEVICE=eth0 and exit, you will be prompted to save it. Reboot the the server using the
following command:
root@pbx:~ $ pbx-reboot
After rebooting and logging on, you should see an IP address as indicated above. Verify that eth0 is up and has the correct IP
address.
No Ethernet Configuration
If you do not have any ethernet configurations showing up in /etc/sysconfig/network-scripts then CentOS is not recognizing your ethernet card. Most likely your installation of PiaF did not make it this far as a working network is required to complete the installation. The other option is if you moved your hard-drive to a new computer with a different network card or swapped out your network card. You may be missing the drivers for your network card. You will have to search for drivers to install. Unfortunately, there are too many different drivers and variables for me to provide help instructions at this time. Good luck!
|