[Asterisk-Dev] Extracting specific call from 'iax debug' on a busy server?

Kris Boutilier Kris.Boutilier at scrd.bc.ca
Fri Sep 10 11:29:52 MST 2004


I've got full debug including a suspect IAX call - I am running with
'notrunking=yes'. I was expecting each IAX call to have a seperate pid in
the logs but apparently not. Given the start data:

Sep 10 11:11:06 VERBOSE[131081]: Rx-Frame Retry[No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subclass: NEW
Sep 10 11:11:06 VERBOSE[131081]:    Timestamp: 00003ms  SCall: 00002  DCall:
00000 [10.0.40.140:4569]
Sep 10 11:11:06 VERBOSE[131081]:    VERSION         : 2
Sep 10 11:11:06 VERBOSE[131081]:    CALLED NUMBER   : 6405
Sep 10 11:11:06 VERBOSE[131081]:    LANGUAGE        : en
Sep 10 11:11:06 VERBOSE[131081]:    CALLED CONTEXT  : macro-out-t1nstar
Sep 10 11:11:06 VERBOSE[131081]:    FORMAT          : 2
Sep 10 11:11:06 VERBOSE[131081]:    CAPABILITY      : 258
Sep 10 11:11:06 VERBOSE[131081]:    ADSICPE         : 2
Sep 10 11:11:06 VERBOSE[131081]:    DATE TIME       : 153770362

How the heck can I extract the debug information for just that particular
call? I was anticipating just grepping out the relevant lines using some
sort of key. The data I'm getting is along the lines of:

...
Sep 10 11:11:06 VERBOSE[131081]: Rx-Frame Retry[No] -- OSeqno: 002 ISeqno:
003 Type: VOICE   Subclass: 2
Sep 10 11:11:06 VERBOSE[131081]:    Timestamp: 00095ms  SCall: 00002  DCall:
00004 [10.0.40.140:4569]
Sep 10 11:11:06 VERBOSE[131081]: Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno:
003 Type: IAX     Subclass: ACK
Sep 10 11:11:06 VERBOSE[131081]:    Timestamp: 00095ms  SCall: 00004  DCall:
00002 [10.0.40.140:4569]
Sep 10 11:11:07 VERBOSE[131081]: Tx-Frame Retry[000] -- OSeqno: 003 ISeqno:
003 Type: VOICE   Subclass: 2
Sep 10 11:11:07 VERBOSE[131081]:    Timestamp: 01339ms  SCall: 00003  DCall:
00002 [10.0.40.248:4569]
Sep 10 11:11:07 VERBOSE[131081]: Rx-Frame Retry[No] -- OSeqno: 003 ISeqno:
004 Type: IAX     Subclass: ACK
Sep 10 11:11:07 VERBOSE[131081]:    Timestamp: 01339ms  SCall: 00002  DCall:
00003 [10.0.40.248:4569]
Sep 10 11:11:07 VERBOSE[131081]: Tx-Frame Retry[000] -- OSeqno: 003 ISeqno:
003 Type: VOICE   Subclass: 2
Sep 10 11:11:07 VERBOSE[131081]:    Timestamp: 01303ms  SCall: 00004  DCall:
00002 [10.0.40.140:4569]
Sep 10 11:11:07 VERBOSE[131081]: Rx-Frame Retry[No] -- OSeqno: 003 ISeqno:
004 Type: IAX     Subclass: ACK
Sep 10 11:11:07 VERBOSE[131081]:    Timestamp: 01303ms  SCall: 00002  DCall:
00004 [10.0.40.140:4569]
Sep 10 11:11:13 VERBOSE[131081]: Rx-Frame Retry[No] -- OSeqno: 009 ISeqno:
010 Type: IAX     Subclass: LAGRQ
Sep 10 11:11:13 VERBOSE[131081]:    Timestamp: 30005ms  SCall: 00001  DCall:
00002 [10.0.40.140:4569]
Sep 10 11:11:13 VERBOSE[131081]: Tx-Frame Retry[000] -- OSeqno: 010 ISeqno:
010 Type: IAX     Subclass: LAGRP
....

On a related note, can anyone point to an idiots guide to the IAX protocol?

Kris Boutilier
Information Systems Coordinator
Sunshine Coast Regional District




More information about the asterisk-dev mailing list