Registartion error 500 : server internal error

Hi guys -

I installed Asterisk on a public server.
this server has Cent-OS.5

while installing I have no issues and no errors also I can enter the CLI and reload everything.

I registered some SIP users in the sip.conf file
and I made a simple dial plan.

all of this works fine while I’m working on a vmware BUT

when I’m doing the same on a public server I got this error when trying to register the users :

Registartion error 500 : server internal error

I don’t know why this happened.

any info my help

Regards,
Daigoor Asmar

EDITED —

The problem solved.

the error was setting SElinux variable to disable then you need to REBOOT the OSin order to let things gets the effect.

[code]# cd etc

cd selinux/

ls

config restorecond.conf semanage.conf targeted

nano config[/code]

it should looks like :

[quote] GNU nano 1.3.12 File: config

SELINUX=disabled[/quote]

what do the logfiles say?

in the console do:
core set debug 9
sip set debug on

and what does show up then in the console when one tries to register

regards,
Tom

ok I was trying to trace such things,

I start Asterisk with :

asterisk -rvvvvv

this works on my local VM ! and I can see some logs that this user registered , etc.

but on the public server it gives me nothing at all !

on the other hand I try what you said and also I got nothing.

is there a file on the filling system where I can get errors “asetrisk_logs.txt” maybe !?

Regards,

/var/log/asterisk is the standard place. You may want to tweak /etc/asterisk/logger.conf.

MESSAGES :

NOTICE[6865] chan_skinny.c: Configuring skinny from skinny.conf
NOTICE[6865] pbx_ael.c: Starting AEL load process.
WARNING[22960] chan_unistim.c: Failed to bind to 0.0.0.0:5000: Address already in use
NOTICE[6865] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[6865] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[6865] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[6865] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[6865] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
NOTICE[6865] app_queue.c: queuerules.conf has not changed since it was last loaded. Not taking any action.

event_log : empty

cat queue_log

1327227369|NONE|NONE|NONE|QUEUESTART|
1327227379|NONE|NONE|NONE|CONFIGRELOAD|

other folders : cdr-csv cdr-custom cel-custom
are empty too !

for more information this is sip.conf file looks liek :


[general]
port=5060
bindaddr=0.0.0.0

[1000]
type=friend
host=dynamic
secret=1000
context=sip
callerid=nana1
nat=yes
qualify=yes

[2000]
type=friend
host=dynamic
secret=2000
context=sip
callerid=nana2
nat=yes
qualify=yes

extention.conf looks like :

[default]

[sip]

exten => 1000,1,Dial(SIP/1000,30)
exten => 1000,n,Answer()

exten => 2000,1,Dial(SIP/2000)
exten => 2000,n,Answer()

Regards,

Are you sure that on the production server SELinux is disabled?

centos.org/docs/5/html/5.2/D … sable.html

Yes I’m sure about that :

this is the console result :

you will get this out put :

I don’t know but I have another thing that may help, this server is not under any NAT and its not connected to any local network. its just connected to the internet directly.

so if I type

the output looks like :

[quote]eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.255
inet6 addr: XXXXXXXXXXXXXXXXXXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18362653 errors:0 dropped:0 overruns:0 frame:0
TX packets:8267875 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3571595063 (3.3 GiB) TX bytes:2843084794 (2.6 GiB)
Interrupt:225 Base address:0x2000

eth0:1 Link encap:Ethernet HWaddr XX:XX:XX:XX
inet addr:XX.XX.XX.XX Bcast:XX.XX.XX.XX Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:225 Base address:0x2000[/quote]

There are no failed registrations in that log extract.

Answer() after Dial is a fairly strange thing to do. It will basically mean people get charged for failed calls, but Answer before Dial would do the same thing.

I don’t think that the dial plan related to the error I got ! I was just testing it.

now I’m sure also that I don’t have any kind of firewalls on the server !! its clean !

The problem solved.

the error was setting SElinux variable to disable then you need to REBOOT the OSin order to let things gets the effect.

[code]# cd etc

cd selinux/

ls

config restorecond.conf semanage.conf targeted

nano config[/code]

it should looks like :

[quote] GNU nano 1.3.12 File: config

SELINUX=disabled[/quote]

thank to tomdemoor.

Regards,

Try tail -f /var/log/asterisk/full | grep -i "registered"
If you don’t get any output, it means the phone isn’t even getting to the asterisk server.
That means something is blocking it before or not pointing to correct place.

Rudi