Elastix verbose logging

Sadie

Joined
Mar 16, 2010
Messages
24
Likes
0
Points
0
#1
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
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#2
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
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#3
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
 

Sadie

Joined
Mar 16, 2010
Messages
24
Likes
0
Points
0
#4
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
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#5
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
 

Sadie

Joined
Mar 16, 2010
Messages
24
Likes
0
Points
0
#6
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
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#7
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.
 

Sadie

Joined
Mar 16, 2010
Messages
24
Likes
0
Points
0
#8
Hello Dicko,

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

Sadie :)
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,913
Messages
130,917
Members
17,589
Latest member
cristian.saiz
Top