I really need help

Discussion in 'General' started by whbh, Jun 13, 2009.

  1. whbh

    Joined:
    Jun 1, 2009
    Messages:
    23
    Likes Received:
    0
    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
     
  2. whbh

    Joined:
    Jun 1, 2009
    Messages:
    23
    Likes Received:
    0
    Danarf are you here ?
     
  3. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    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
     
  4. whbh

    Joined:
    Jun 1, 2009
    Messages:
    23
    Likes Received:
    0
    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
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    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!
     
  6. whbh

    Joined:
    Jun 1, 2009
    Messages:
    23
    Likes Received:
    0
    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
     

Share This Page