<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>Hello All,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I am looking for more thorough debug than
the one provided by the command "iax2 debug". Could anybody point me a good
documentation about this?</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>I have a issue with IAX connection.
Sometimes it stucked. If so, I have to restart my asterisk through CLI
command "restart now".</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Comparing the debug messages of working and
non working sequences, I have noticed that when it does not work, the following
debug messages are missing:</FONT></DIV><FONT face="Courier New" size=2>
<DIV><BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: CONTROL Subclass:
(14?)<BR> Timestamp: 01581ms SCall: 00052 DCall: 16385
[213.61.187.157:4569]<BR>Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 003 Type:
IAX Subclass: ACK<BR> Timestamp:
01581ms SCall: 16385 DCall: 00052
[213.61.187.157:4569]<BR> -- IAX2/sipdiscount_outbound-16385
is making progress passing it to Zap/1-1<BR>Dec 30 17:12:31 DEBUG[12600]:
chan_zap.c:4791 zt_indicate: Requested indication 14 on channel Zap/1-1<BR>Dec
30 17:12:31 DEBUG[12600]: chan_zap.c:4857 zt_indicate: Received
AST_CONTROL_PROGRESS on Zap/1-1<BR>Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno:
003 Type: VOICE Subclass: 4<BR> Timestamp: 01732ms
SCall: 00052 DCall: 16385 [213.61.187.157:4569]<BR>Dec 30 17:12:31
DEBUG[12569]: chan_iax2.c:6653 socket_read: Ooh, voice format changed to
4<BR>Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 004 Type:
IAX Subclass: ACK<BR> Timestamp:
01732ms SCall: 16385 DCall: 00052 [213.61.187.157:4569]<BR></DIV>
<DIV>I have a few questions, especially about the following message:</DIV>
<DIV>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type: CONTROL Subclass:
(14?)<BR></DIV>
<DIV>1. Is the number 14 in (14?), in decimal or hexadecimal?</DIV>
<DIV>2. If that is in decimal, why is it not translated into its
descriptions, i.e. Call Progress, according to the IAX2 protocol document I have
(Internet-Draft, Expires: July 5, 2005).</DIV>
<DIV>3. Why is that number question marked? Is it because asterisk was
not sure?</DIV>
<DIV>4. If asterisk was not sure, so sometimes it decodes the message sometimes
it could not, is there any debug to confirm this?</DIV>
<DIV> </DIV>
<DIV>Or, am I looking at the wrong place? Which maybe the problem is so obvious
and I missed that?</DIV>
<DIV> </DIV>
<DIV>I am running asterisk on IBM xSeries 330 with the following detail:</DIV>
<DIV>CLI> show version<BR>Asterisk 1.2.1 built by root @ atvie-asterisk on a
i686 running Linux on 2005-12-28 07:52:36 UTC<BR># uname -a<BR>Linux
atvie-asterisk 2.6.14-1.1653_FC4smp #1 SMP Tue Dec 13 21:46:01 EST 2005 i686
i686 i386 GNU/Linux<BR></DIV>
<DIV>Please find also below the detail of IAX debug messages.</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV> </DIV>
<DIV>Anto</DIV>
<DIV>----</DIV>
<DIV> </DIV></FONT>
<DIV><FONT face="Courier New"
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2>MESSAGES WHEN IAX DOES NOT
WORK</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2> -- Call accepted by
213.61.187.147 (format ulaw)<BR> -- Format for call is
ulaw<BR>Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type:
IAX Subclass: ACK<BR> Timestamp:
00057ms SCall: 16384 DCall: 00070 [213.61.187.147:4569]<BR>Tx-Frame
Retry[000] -- OSeqno: 002 ISeqno: 002 Type: VOICE Subclass:
4<BR> Timestamp: 00080ms SCall: 16384 DCall: 00070
[213.61.187.147:4569]<BR>Dec 30 17:04:25 DEBUG[12488]: chan_iax2.c:3699
find_tpeer: Created trunk peer for '213.61.187.147:4569'<BR>Dec 30 17:04:25
DEBUG[12488]: chan_iax2.c:3725 iax2_trunk_queue: Expanded trunk
'213.61.187.147:4569' to 6400 bytes<BR>Rx-Frame Retry[ No] -- OSeqno: 002
ISeqno: 003 Type: IAX Subclass: ACK<BR>
Timestamp: 00080ms SCall: 00070 DCall: 16384
[213.61.187.147:4569]</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>
<------- Some messages are missing here<BR>Tx-Frame Retry[000] -- OSeqno: 003
ISeqno: 002 Type: IAX Subclass: LAGRQ<BR>
Timestamp: 10008ms SCall: 16384 DCall: 00070
[213.61.187.147:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type:
IAX Subclass: LAGRQ<BR> Timestamp:
10016ms SCall: 00070 DCall: 16384 [213.61.187.147:4569]<BR>Tx-Frame
Retry[000] -- OSeqno: 004 ISeqno: 003 Type: IAX
Subclass: LAGRP<BR> Timestamp: 10016ms SCall: 16384
DCall: 00070 [213.61.187.147:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno:
004 Type: IAX Subclass: LAGRP<BR> Timestamp:
10008ms SCall: 00070 DCall: 16384 [213.61.187.147:4569]<BR>Tx-Frame
Retry[-01] -- OSeqno: 004 ISeqno: 004 Type: IAX
Subclass: ACK<BR> Timestamp: 10008ms SCall: 16384 DCall:
00070 [213.61.187.147:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 005
Type: IAX Subclass: ACK<BR> Timestamp:
10016ms SCall: 00070 DCall: 16384 [213.61.187.147:4569]<BR>Rx-Frame
Retry[ No] -- OSeqno: 004 ISeqno: 005 Type: IAX
Subclass: HANGUP<BR> Timestamp: 10262ms SCall: 00070
DCall: 16384 [213.61.187.147:4569]<BR> CAUSE
CODE :
0<BR>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>
<DIV><FONT face="Courier New"
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2>MESSAGES AFTER ISSUING "CLI> restart
now" command</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV></FONT></DIV>
<DIV><FONT face="Courier New" size=2> -- Call accepted by
213.61.187.157 (format ulaw)<BR> -- Format for call is
ulaw<BR>Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type:
IAX Subclass: ACK<BR> Timestamp:
00040ms SCall: 16385 DCall: 00052 [213.61.187.157:4569]<BR>Tx-Frame
Retry[000] -- OSeqno: 002 ISeqno: 002 Type: VOICE Subclass:
4<BR> Timestamp: 00100ms SCall: 16385 DCall: 00052
[213.61.187.157:4569]<BR>Dec 30 17:12:30 DEBUG[12600]: chan_iax2.c:3699
find_tpeer: Created trunk peer for '213.61.187.157:4569'<BR>Dec 30 17:12:30
DEBUG[12600]: chan_iax2.c:3725 iax2_trunk_queue: Expanded trunk
'213.61.187.157:4569' to 6400 bytes<BR>Rx-Frame Retry[ No] -- OSeqno: 002
ISeqno: 003 Type: IAX Subclass: ACK<BR>
Timestamp: 00100ms SCall: 00052 DCall: 16385
[213.61.187.157:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 003 Type:
CONTROL Subclass: (14?)<BR> Timestamp: 01581ms SCall:
00052 DCall: 16385 [213.61.187.157:4569]<BR>Tx-Frame Retry[-01] -- OSeqno:
003 ISeqno: 003 Type: IAX Subclass: ACK<BR>
Timestamp: 01581ms SCall: 16385 DCall: 00052
[213.61.187.157:4569]<BR> -- IAX2/sipdiscount_outbound-16385
is making progress passing it to Zap/1-1<BR>Dec 30 17:12:31 DEBUG[12600]:
chan_zap.c:4791 zt_indicate: Requested indication 14 on channel Zap/1-1<BR>Dec
30 17:12:31 DEBUG[12600]: chan_zap.c:4857 zt_indicate: Received
AST_CONTROL_PROGRESS on Zap/1-1<BR>Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno:
003 Type: VOICE Subclass: 4<BR> Timestamp: 01732ms
SCall: 00052 DCall: 16385 [213.61.187.157:4569]<BR>Dec 30 17:12:31
DEBUG[12569]: chan_iax2.c:6653 socket_read: Ooh, voice format changed to
4<BR>Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 004 Type:
IAX Subclass: ACK<BR> Timestamp:
01732ms SCall: 16385 DCall: 00052 [213.61.187.157:4569]<BR>Tx-Frame
Retry[000] -- OSeqno: 003 ISeqno: 004 Type: IAX
Subclass: LAGRQ<BR> Timestamp: 10029ms SCall: 16385
DCall: 00052 [213.61.187.157:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno:
003 Type: IAX Subclass: LAGRQ<BR> Timestamp:
10007ms SCall: 00052 DCall: 16385 [213.61.187.157:4569]<BR>Tx-Frame
Retry[000] -- OSeqno: 004 ISeqno: 005 Type: IAX
Subclass: LAGRP<BR> Timestamp: 10007ms SCall: 16385
DCall: 00052 [213.61.187.157:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno:
004 Type: IAX Subclass: LAGRP<BR> Timestamp:
10029ms SCall: 00052 DCall: 16385 [213.61.187.157:4569]<BR>Tx-Frame
Retry[-01] -- OSeqno: 004 ISeqno: 006 Type: IAX
Subclass: ACK<BR> Timestamp: 10029ms SCall: 16385 DCall:
00052 [213.61.187.157:4569]<BR>Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 005
Type: IAX Subclass: ACK<BR> Timestamp:
10007ms SCall: 00052 DCall: 16385 [213.61.187.157:4569]<BR>Tx-Frame
Retry[000] -- OSeqno: 005 ISeqno: 006 Type: IAX
Subclass: PING<BR> Timestamp: 20032ms SCall: 16385
DCall: 00052 [213.61.187.157:4569]<BR>Tx-Frame Retry[000] -- OSeqno: 006 ISeqno:
006 Type: IAX Subclass: LAGRQ<BR> Timestamp:
20035ms SCall: 16385 DCall: 00052 [213.61.187.157:4569]<BR>Rx-Frame
Retry[ No] -- OSeqno: 006 ISeqno: 005 Type: IAX
Subclass: PING<BR> Timestamp: 20042ms SCall: 00052
DCall: 16385 [213.61.187.157:4569]<BR>Tx-Frame Retry[000] -- OSeqno: 007 ISeqno:
007 Type: IAX Subclass: PONG<BR> Timestamp:
20042ms SCall: 16385 DCall: 00052
[213.61.187.157:4569]<BR>
RR_JITTER : 0<BR>
RR_LOSS : 0<BR>
RR_PKTS : 1<BR>
RR_DELAY : 40<BR>
RR_DROPPED : 0<BR>
RR_OUTOFORDER : 0</FONT></DIV>
<DIV><FONT face="Courier New"
size=2>------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV></BODY></HTML>