I just started with Linux and Asterisk so I don’t have much knowledge here
I’m doing finial exam on my university, have to make script for Asterisk … but it’s not going well, i need a lot of help, please
I’m working in Windows, so I installed VMware virtual server and CentOS 5 Linux in it. Installed Asterisk and registered 2 SIP users in sip.conf and running normally.
I windows i have 3CX Phone which register normally and get answer.
Problem is that 3CX phone from laptop can’t register
Asterisk is on my desktop comp and both desk and laptop are connected to same ADSL modem.
I’m guessing the problem can be Asterisk server IP address. I typed ifconfig in linux console and got this:
[i]eth0 Link encap:Ethernet HWaddr 00:0C:29:B3:14:74
inet addr:192.168.253.128 Bcast:192.168.253.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb3:1474/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10825 errors:0 dropped:0 overruns:0 frame:0
TX packets:6817 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:3537072 (3.3 MiB) TX bytes:817874 (798.7 KiB)
Interrupt:177 Base address:0x1400
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:2360 errors:0 dropped:0 overruns:0 frame:0
TX packets:2360 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:4644584 (4.4 MiB) TX bytes:4644584 (4.4 MiB)[/i]
Soft Phone from Desktop Windows is working on both ( inet addr:192.168.253.128 Bcast:192.168.253.255 ) addresses but Laptop doesn’t work on either
Please help, I want to finish my Universite and get a degree )
PS. Does anyone have a good idea for a IVR system i could use. like IVR system for a bank: answering, giving basic informations, log in with pin to account to see amount of money, and paying bills over phone. - with MySql base.
I need something similar , any idea would be apriciated , thanks
What is the ip address of your laptop?
IP address of laptop (local) is 192.168.1.3 and from Desktop is 192.168.1.2
I entered external IP(from linux) on soft phone on laptop and it’s says it’s connected, but Asterisk is not finding it :
Name/username Host Dyn Nat ACL Port Status
101/101 192.168.253.1 D 1579 OK (283 ms)
102/102 (Unspecified) D 5060 UNKNOWN
2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline]
-----------and my sip.conf is :
and my extension.conf :
exten => 1,1,Dial(SIP/101)
exten => 2,1,Dial(SIP/102)
exten => 100,1,Answer
exten => 100,2,Playback(welcome)
exten => 100,3,Wait(2)
exten => 100,4,Playback(beep)
Do i need something more to add on 102 SIP user
I believe your network is your problem…
Your linux under vmware is 192.168.253.128. That is a different network than your desktop and laptop, they are in the 192.168.1.x.
Notice your sip phone on your windows machine connected from 192.168.253.1? not the 192.168.1.2.
I’m not familar with Vmware, I use Virtualbox. But it apears that it has setup a virtual network card on your desktop which has its own IP number of 192.168.253.1 which of course is able to talk to the virtual machines.
Look into your network settings of VMware and see if you can change it from something like natted to bridged. Which then would just bridge the traffic over and through your windows network card. If that is working then you should be able to get or set the ip number to a 192.168.1.x number.
Thanks, i’ll try to do that
Yes you were right, VMware has virtual ethernet card and it was NAT configured so i switched it to Bridged…now i only need to try out
Yes after reboot…everything is working perfectly …Thanks a LOT ) finally