Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414585 - net-misc/asterisk - updated find_call_*.sh support scripts
Summary: net-misc/asterisk - updated find_call_*.sh support scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 11:29 UTC by Jaco Kroon
Modified: 2012-06-06 10:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
find_call_ids.sh (find_call_ids.sh,1.05 KB, text/plain)
2012-05-04 11:32 UTC, Jaco Kroon
Details
find_call_sip_trace.sh (find_call_sip_trace.sh,1.09 KB, text/plain)
2012-05-04 11:34 UTC, Jaco Kroon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2012-05-04 11:29:03 UTC
The previous scripts relied on behaviour from grep that seemingly changed, and there were one or two known cases where they didn't manage to track all possible SIP packets.  These versions are rewritten in pure awk (which was being used anyway), significantly more comprehensive and should cover all strange corner cases too.

Reproducible: Always
Comment 1 Jaco Kroon 2012-05-04 11:32:48 UTC
Created attachment 310775 [details]
find_call_ids.sh

Script that locates and dump out call time, a and b numbers, as well as Call-ID values (which can be passed to find_call_sip_trace.sh).

This relies on sip debugging being enabled, and logging to a log file from where the script picks it up.  Very useful to find problematic calls (ie, client complains call just dropped), now we can find the call id, and from there get a SIP trace and see from which side it got cancelled.

This does not yet help with determining bad rtp paths.
Comment 2 Jaco Kroon 2012-05-04 11:34:21 UTC
Created attachment 310777 [details]
find_call_sip_trace.sh

Extracts SIP packets for one or more Call-ID values from a SIP debug log.  Can be passed multiple IDs, and will output in chronological order.  Multiple IDs is useful for cases where for example you need to see the exact ordering (and compare) between two call legs (both on SIP).
Comment 3 Jaco Kroon 2012-05-04 11:35:13 UTC
Thanks Tony,

For the next bump, to replace the existing scripts.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2012-06-06 10:07:25 UTC
+*asterisk-10.5.0 (06 Jun 2012)
+*asterisk-1.8.13.0 (06 Jun 2012)
+
+  06 Jun 2012; Tony Vroon <chainsaw@gentoo.org> +files/1.8.0/find_call_ids.sh,
+  +files/1.8.0/find_call_sip_trace.sh, +asterisk-1.8.13.0.ebuild,
+  +asterisk-10.5.0.ebuild:
+  Bugfix releases on both the 1.8 & 10 branches, squelches a warning with bind
+  address set to "any", prevents an overflow on 32-bit systems for
+  ast_tvdiff_ms calculation and various rerouting/transfer fixes. Updated
+  helper scripts by Jaco Kroon, closes bug #414585.