Elastix verbose logging

Discussion in 'General' started by Sadie, Mar 16, 2010.

  1. Sadie

    Joined:
    Mar 16, 2010
    Messages:
    24
    Likes Received:
    0
    Hello Guys,

    I am quite new to Elastix. I just want to ask how to enable the verbose logging of elastix such that I can see the complete Sip call flow logging thus showing the messages such as INVITE, RINGING, ACK, OPTIONS, BYE etc. Currently, the the directory /var/log/asterisk, I can only see full and cdr-csv which only show the summary of logs. I am asking this since I want to check what causes my elastix to drop calls.

    I look forward to your reply.

    Thanks,

    Sadie
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Asterisk has "tab completion" on it's CLI

    i,e,


    rasterisk

    then


    help <tab>

    help core <tab>

    help sip <tab>

    etc.

    and choose the level of debug you need

    you need
     
  3. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Asterisk has "tab completion" on it's CLI

    i,e,


    rasterisk

    then


    help <tab>

    help core <tab>

    help sip <tab>

    etc.

    and choose the level of debug you need

    e.g.


    sip set debug ip <ip address>

    all output by default is also available in

    /var/log/asterisk/full
     
  4. Sadie

    Joined:
    Mar 16, 2010
    Messages:
    24
    Likes Received:
    0
    hello,

    I see when I followed your command i see a running verbose log, my question is how to exit from that rasterisk and disable the set sip debug? I am afraid it might eat up memory.

    Thanks,
    Sadie
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    You will notice that one of the arguments to sip set debug is "off", the command to exit the asterisk cli is conveniently "exit"

    And BTW, welcome to Elastix

    dicko
     
  6. Sadie

    Joined:
    Mar 16, 2010
    Messages:
    24
    Likes Received:
    0
    Thanks for the informations Dicko,

    My other question is although i already set sip debug my elastix when I try to grep items in full I only got:

    INVITE sip:12128012504@myprovider:5080 SIP/2.0
    To: <sip:12128012504@myprovider:5080>
    [Mar 16 20:33:03] VERBOSE[31974] logger.c: -- Called provider/12128012504
    t: <sip:12128012504@myprovider:5080>
    ACK sip:12128012504@myprovider:5080 SIP/2.0
    To: <sip:12128012504@myprovider:5080>
    INVITE sip:12128012504@myprovider:5080 SIP/2.0
    To: <sip:12128012504@myprovider:5080>
    t: <sip:12128012504@myprovider:5080>
    t: <sip:12128012504@myprovider:5080>
    t: <sip:12128012504@myprovider:5080>;tag=3477756919-251529
    To: <sip:12128012504@mydomain>;tag=as2e6624a7
    Contact: <sip:12128012504@1.1.1.1>
    CANCEL sip:12128012504@mydomain SIP/2.0
    To: <sip:12128012504@mydomain>
    Proxy-Authorization: Digest username="8206", realm="asterisk", nonce="1bf67202", uri="sip:12128012504@mydomain", response="fc34df0ac16836a70738fc7f05ff4915", algorithm=MD5
    To: <sip:12128012504@mydomain>;tag=as2e6624a7
    To: <sip:12128012504@mydomain>;tag=as2e6624a7
    CANCEL sip:12128012504@myprovider:5080 SIP/2.0
    To: <sip:12128012504@myprovider:5080>
    [Mar 16 20:33:06] VERBOSE[31974] logger.c: == Spawn extension (from-internal, 12128012504, 4) exited non-zero on 'SIP/8206-1faa79b0'
    t: <sip:12128012504@myprovider:5080>
    t: <sip:12128012504@myprovider:5080>;tag=3477756919-251529
    ACK sip:12128012504@myprovider:5080 SIP/2.0
    To: <sip:12128012504@myprovider:5080>;tag=3477756919-251529
    ACK sip:12128012504@mydomain SIP/2.0
    To: <sip:12128012504@mydomain>;tag=as2e6624a7


    What I wanted is the whole sip call flow messages with the description as I see it in the running debug log in rasterisk.. where do the debug files being saved? so whenever I wanted to grep a call-id i can get the whole sip logs...

    Thanks for your help.

    Sadie
     
  7. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Because that's how grep works "gnu regular expression parser" it will return the matched lines not the matched "sessions" but it will get you close and the timestamps should get you closer.
     
  8. Sadie

    Joined:
    Mar 16, 2010
    Messages:
    24
    Likes Received:
    0
    Hello Dicko,

    Thanks for the informations. I already got what I wanted.. Thanks thanks...

    Sadie :)
     

Share This Page