Asterisk problem in starting

Hi I am new to asterisk
i made following changes in the sip.conf and extention.conf
In sip.conf
[500]
context=fromsip
type=friend
username=500
secret=shanee
callerid=“shanee” <500>
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=ulaw
dtmfmode=info
callgroup=3
pickupgroup=3
qualify=1000

[501]
context=fromsip
type=friend
username=501
secret=shanee
callerid=“shanee” <501>
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=ulaw
dtmfmode=info
callgroup=3
pickupgroup=3
qualify=1000

In externsion.conf
[fromsip]
exten => s,1,Answer( )
exten => _5XX,1,Dial(SIP/${EXTEN},100,tr)
exten => h,1,Hangup
exten => t,1,Hangup
exten => i,1,Hangup

Then What i did is
[root@test asterisk]# asterisk -rvvv
Unable to connect to remote asterisk
[root@test asterisk]# asterisk -c
Asterisk 1.0.9, Copyright © 1999-2004 Digium.
Written by Mark Spencer markster@digium.com

[ Booting…Dec 10 07:09:47 WARNING[865]: chan_oss.c:257 sound_thread: Read error on sound device: Resource temporarily unavailable
…Dec 10 07:09:47 WARNING[865]: chan_mgcp.c:4050 reload_config: Unable to get our IP address, MGCP disabled
…Dec 10 07:09:47 WARNING[865]: chan_skinny.c:2587 reload_config: Unable to get our IP address, Skinny disabled
…Illegal instruction

Can some body tell me why is this happening,and how to fix that

REGARD
Talat

Try asterisk -vvvvvvc then you will get a better idea.

but it looks like a module problem

Ian

Hmm welll it give huge list
But to same warnings

== Parsing ‘/etc/asterisk/mgcp.conf’: Found
Dec 10 07:33:01 WARNING[1278]: chan_mgcp.c:4050 reload_config: Unable to get our IP address, MGCP disabled
== Registered channel type ‘MGCP’ (Media Gateway Control Protocol (MGCP))

== Parsing ‘/etc/asterisk/skinny.conf’: Found
Dec 10 07:33:01 WARNING[1278]: chan_skinny.c:2587 reload_config: Unable to get our IP address, Skinny disabled
== Registered channel type ‘Skinny’ (Skinny Client Control Protocol (Skinny))
[app_userevent.so] => (Custom User Event Application)

Do you need the entire result

Regard
Talat

first, do you use mgcp or skinny? if not, in modules.conf noload them.

Also, its possible that asterisk is having trouble figuring out the IP of your machine. Try setting bindaddr= wherever you find it (sip.conf, iax.conf, etc)

Hi

According to the last reply

i unload three modules in the /etc/modules.conf like this
noload => chan_mgcp.so
noload => chan_skinny.so
noload => chan_oss.so

Then I run

[root@test asterisk]# asterisk -c
Asterisk 1.0.9, Copyright © 1999-2004 Digium.
Written by Mark Spencer markster@digium.com

[ Booting…Illegal instruction
[root@test asterisk]#

Then i try to start it
[root@test asterisk]# asterisk -rvvvv
Unable to connect to remote asterisk
[root@test asterisk]#

Can you plz tell me what to do and can you tell me the deail of the modules i cloased.

Currently all what i want is to create to extension e.g 500 and 501 and dial them .Thats it,Plz i need guidance

Regard
Talat