# Need help with Asterisk - begginer

**URL:** <https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738>\
**Category:** Asterisk Support\
**Created:** [June 24, 2010, 3:38pm UTC](https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738 "2010-06-24T15:38:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirela666](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mirela666](https://community.asterisk.org/u/mirela666)\
**Post date:** [June 24, 2010, 3:38pm UTC](https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738/1 "2010-06-24T15:38:28Z")

</div>

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  
collisions:0 txqueuelen:1000  
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  
collisions:0 txqueuelen: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 😄

---

<div class="post-metadata">

**Author:** ![mazzic](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mazzic/32/448_2.png) [@mazzic](https://community.asterisk.org/u/mazzic)\
**Post date:** [June 24, 2010, 7:33pm UTC](https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738/2 "2010-06-24T19:33:35Z")

</div>

What is the ip address of your laptop?

---

<div class="post-metadata">

**Author:** ![mirela666](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mirela666](https://community.asterisk.org/u/mirela666)\
**Post date:** [June 24, 2010, 8:40pm UTC](https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738/3 "2010-06-24T20:40:08Z")

</div>

IP address of laptop (local) is 192.168.1.3 and from Desktop is 192.168.1.2

EDIT:  
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 :

general]  
context=default  
srvlookup=yes  
videosupport=yes

disallow=all  
allow=ulaw  
allow=alaw  
allow=ilbc  
allow=gsm  
allow=h261

[101]  
type=friend  
username=101  
secret=101  
qualify=yes  
host=dynamic  
allow=all  
context=pocetak

[102]  
type=friend  
username=102  
secret=102  
qualify=yes  
host=dynamic  
allow=all  
context=pocetak

and my extension.conf :

[pocetak]  
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

---

<div class="post-metadata">

**Author:** ![mazzic](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mazzic/32/448_2.png) [@mazzic](https://community.asterisk.org/u/mazzic)\
**Post date:** [June 24, 2010, 10:03pm UTC](https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738/4 "2010-06-24T22:03:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mirela666](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@mirela666](https://community.asterisk.org/u/mirela666)\
**Post date:** [June 25, 2010, 9:31am UTC](https://community.asterisk.org/t/need-help-with-asterisk-begginer/31738/5 "2010-06-25T09:31:00Z")

</div>

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 😄
