LES.NET Asterisk Patches


The following patch was developed by LES.NET (1996) INC.
Use it at your own risk.
+1.204.944.0009 - voip@les.net
Copyright (C) 2007 - LES.NET (1996) INC. - All Rights Reserved.

Version 1.00 for Asterisk 1.2.14

Support for this patch:

Support for implementing this patch is available on a paid basis.
If you are unsure of how to apply a patch, please ask a friend for help.
Use at your own risk.. if you break your source code, that's your problem! Not Mine!

Feedback:

I would enjoy hearing comments about this patch. Contact info is at the top of this page.
If you find a flaw, bug, let me know...

Post Dial Delay - PDD

PDD is the time between the DIAL and the first sign of progress.

For this patch, progress is:

  • AST_CONTROL_RINGING
  • AST_CONTROL_PROGRESS
  • AST_CONTROL_PROCEEDING

    This patch modifies:

  • cdr.h
  • cdr.c
  • app_dial.c
  • cdr_custom.conf

    Console output example:

        -- Executing Dial("SIP/5060-092101a8", "SIP/2049440009@myproxy|99") in new stack
        -- Called 2049440009@myproxy
        -- SIP/myproxy-09231e60 is making progress passing it to SIP/5060-092101a8
        -- SIP/myproxy-09231e60 PDD is 2
        -- SIP/myproxy-09231e60 answered SIP/5060-092101a8
        -- Attempting native bridge of SIP/5060-092101a8 and SIP/myproxy-09231e60
    
    NOTE:
    SIP/myproxy-09231e60 PDD is 2
    "2" is the number of seconds it took for asterisk progress.

    CDR output example:

    ""LES.NET" <2125551212>","2125551212","2049440009","default","SIP/5060-092101a8","SIP/myproxy-09231e60","Dial","SIP/2049440009@myproxy|99","2007-01-27 17:20:07","2007-01-27 17:20:09","2007-01-27 17:20:09","2007-01-27 17:20:18","2","11","9","ANSWERED","DOCUMENTATION","10010","1169918407.186",""
    
    NOTE:
    "2007-01-27 17:20:07" is the time the call started (dialed)
    "2007-01-27 17:20:09" is the time we saw progress
    "2" is the PDD in seconds between Dial and PDD

    cdr_custom.conf Changes:

    [mappings]
    Master.csv => "${CDR(clid)}","${CDR(src)}","${CDR(dst)}","${CDR(dcontext)}","${CDR(channel)}","${CDR(dstchannel)}","${CDR(lastapp)}","${CDR(lastdata)}","${CDR(start)}","${CDR(pdd)}","${CDR(answer)}","${CDR(end)}","${CDR(pddsec)}","${CDR(duration)}","${CDR(billsec)}","${CDR(disposition)}","${CDR(amaflags)}","${CDR(accountcode)}","${CDR(uniqueid)}","${CDR(userfield)}"
    
    NOTE:
    ${CDR(pdd)} is the PDD timestamp.
    ${CDR(pddsec)} is the PDD time in seconds.


    Copyright (C) 2007 - LES.NET (1996) INC. - All Rights Reserved.