[asterisk-bugs] [Asterisk 0013799]: stdexten no longer logs incoming dialled digits in CDR

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 29 12:47:49 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13799 
====================================================================== 
Reported By:                davidw
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   13799
Category:                   Applications/app_stack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-29 10:56 CDT
Last Modified:              2008-10-29 12:47 CDT
====================================================================== 
Summary:                    stdexten no longer logs incoming dialled digits in
CDR
Description: 
This is really about the deprecation of Macro(), but stdexten provides a
good example of the failure that results from trying to replicate Macro
with Gosub.

Just adding:

exten => _X.,1,Gosub(stdexten,s,1(${EXTEN},SIP/${EXTEN})

to the sample extensions.conf and dialling 6106 produced the following
CDR:

"","6906","s","stdexten","""XXXXXXXXXXXX 6906""
<6906>","SIP/192.168.10.10-0939dec8","SIP/6106-093925e8","Dial","SIP/6106,20","2008-10-29
14:54:52","2008-10-29 14:54:54","2008-10-29
14:54:55",3,1,"ANSWERED","DOCUMENTATION","1225292092.19","
"

Historically, "s" would have been "6106" and "stdexten" would have been
"default", which I believe are much more useful.
====================================================================== 

---------------------------------------------------------------------- 
 (0094365) davidw (reporter) - 2008-10-29 12:47
 http://bugs.digium.com/view.php?id=13799#c94365 
---------------------------------------------------------------------- 
I did think about that, but the two problems I had were:

1) you still don't get the original context logged;
2) you limit the character set for extensions and, with 
   that pattern, require at least two digit numbers.  The
   use of _. is discouraged; we did try, elsewhere, and were
   caught out.

Both are surmountable, but there is a strong temptation to roll back to
the 1.4 version of the dialplan.

For (1) you can have a separate Gosub context for each significant 
context (e.g. tenant in a multi-tenanted system).  For (2) there 
will almost certainly be a pattern that will match everything that
will be thrown at it on a particualar site. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-29 12:47 davidw         Note Added: 0094365                          
======================================================================




More information about the asterisk-bugs mailing list