I really need help

whbh

Joined
Jun 1, 2009
Messages
23
Likes
0
Points
0
#1
I created a Trunk in Elastix for my FXO port
my FXO port equipment located at IP address : 192.168.0.252
I use ID=pstnline password=pstnline external number=100002



My elastix : 192.168.0.240

Here are the details

Trunk name WIINTELECOM
Outbound caller id = 100002

PEER Details
disallow=all
username=pstnline
secret=pstnline
type=friend
qualify=yes
port=5061
nat=no
insecure=very
host=192.168.0.252
dtmfmode=rfc2833
context=from-pstn
canreinvite=no
allow=alaw


and my FXO equipment is still registering for 3 days
 

whbh

Joined
Jun 1, 2009
Messages
23
Likes
0
Points
0
#2
Danarf are you here ?
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#3
My guesses,

Add a registration string

Try nat=yes in your config or turn the nat features off in the ATA

cat /var/log/asterisk/full* | grep 192.168.0.252

and

cat /var/log/asterisk/full* | grep WIINTELECOM

for clues
 

whbh

Joined
Jun 1, 2009
Messages
23
Likes
0
Points
0
#4
First, many thank to Dicko

I am not expert on Linux
how can i do with
at /var/log/asterisk/full* | grep 192.168.0.252
and
cat /var/log/asterisk/full* | grep WIINTELECOM
for clues

Where to add the registration string ?


Pls explain step by step
I am a novice of elastix and linux
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#5
I will assume you have read "Elastix Without Tears", and that you are comfortable with the linux bash shell and the asterisk CLI.

cat is a program that will dump a file to the terminal

asterisk appends everything it shows from the asterisk CLI to a file called /var/log/asterisk/full, pre-pending it with a time stamp.

Each day this log file is "rotated" to ../full.1. so cat /var/log/asterisk/full* will dump all the output of asterisk for the last few days (you said 3?) (at the existing verbosity and debug level) to the screen.

This is too much for the human mind to comprehend so we "pipe" ( | ) the output through another program called grep which only outputs lines that mach the "regular expression" that is it's called argument.

So the first line will list all the times that asterisk received or sent something to 192.168.0.252, similarly the second does the same for WIINTELECOM, errors and complaints are thus much easier to identify.

From the output you can isolate a suspicious event and it's time stamp and search in the file events around that time for more information.

If that sounds a little daunting, well maybe so but "man grep" will display the manual page for grep.
a couple of other hints, "less" is a program you can pipe the previous lines through for if there is a lot of output.

cat /var/log/asterisk/full* | grep 192.168.0.252 | less

welcome and enjoy!
 

whbh

Joined
Jun 1, 2009
Messages
23
Likes
0
Points
0
#6
Thank ypu Dicko

so I type these 2 command lines at server side right ?

at /var/log/asterisk/full* | grep 192.168.0.252
and
cat /var/log/asterisk/full* | grep WIINTELECOM

then I sent to you

Thanks again for your help I will let you informed
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top