Summary: | ASTERISK-15599: Originating a call from within the dialplan using Originate() does not result in a CDR | ||
Reporter: | Matthew Edmondson (varnishedotter) | Labels: | |
Date Opened: | 2010-02-10 00:57:03.000-0600 | Date Closed: | 2010-12-20 09:15:37.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) sipdebuglog.txt | |
Description: | Originating a call from within the dialplan using Originate() does not result in a CDR. Here is the line I am using: exten => _61XXXXXXXXX,53,Originate(SIP/${TRUNK}/${PREFIX}${PHONE},exten,${DESTCONTEXT},${PHONE},1); The call goes out fine, but the CDR's dont get inserted into the DB. I have tried this with 1.6.2.1, 1.6.2.2 and 1.6.2.3-rc2 from the SVN with the same results. | ||
Comments: | By: Leif Madsen (lmadsen) 2010-02-10 15:11:43.000-0600 Could you also provide a SIP trace, along with console output with debugging enabled, and SIP history (enabled via sip.conf)? That should help a developer narrow this down and reproduce this correctly. Thanks! By: Leif Madsen (lmadsen) 2010-02-11 11:21:30.000-0600 This is likely the same core code as ASTERISK-15118 so I'm linking it. By: Matthew Edmondson (varnishedotter) 2010-02-11 22:22:22.000-0600 SIP Debug and console output added By: Matthew Nicholson (mnicholson) 2010-04-22 15:23:21 It looks like CDR records are produced if unanswered=yes is in cdr.conf. There are other issues with the cdr records related to originated calls though. I am working on those. By: Digium Subversion (svnbot) 2010-04-22 16:49:08 Repository: asterisk Revision: 258670 U branches/1.4/main/cdr.c U branches/1.4/main/channel.c U branches/1.4/res/res_features.c ------------------------------------------------------------------------ r258670 | mnicholson | 2010-04-22 16:49:07 -0500 (Thu, 22 Apr 2010) | 11 lines Fix broken CDR behavior. This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER. Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call(). To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call(). (closes issue ASTERISK-15599) Reported by: VarnishedOtter Tested by: mnicholson ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=258670 By: Digium Subversion (svnbot) 2010-04-22 16:58:03 Repository: asterisk Revision: 258671 _U trunk/ U trunk/main/cdr.c U trunk/main/channel.c U trunk/main/features.c ------------------------------------------------------------------------ r258671 | mnicholson | 2010-04-22 16:57:59 -0500 (Thu, 22 Apr 2010) | 32 lines Merged revisions 193391,258670 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r193391 | mnicholson | 2009-05-08 16:01:25 -0500 (Fri, 08 May 2009) | 8 lines Set the proper disposition on originated calls. (closes issue ASTERISK-13296) Reported by: jpt Patches: call-file-missing-cdr2.diff uploaded by mnicholson (license 96) Tested by: dlotina, rmartinez, mnicholson ........ r258670 | mnicholson | 2010-04-22 16:49:07 -0500 (Thu, 22 Apr 2010) | 11 lines Fix broken CDR behavior. This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER. Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call(). To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call(). (closes issue ASTERISK-15599) Reported by: VarnishedOtter Tested by: mnicholson ........ (closes issue ASTERISK-15118) Reported by: telles Tested by: mnicholson ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=258671 By: Digium Subversion (svnbot) 2010-04-22 17:15:59 Repository: asterisk Revision: 258676 _U branches/1.6.2/ U branches/1.6.2/main/cdr.c U branches/1.6.2/main/channel.c U branches/1.6.2/main/features.c ------------------------------------------------------------------------ r258676 | mnicholson | 2010-04-22 17:15:56 -0500 (Thu, 22 Apr 2010) | 42 lines Merged revisions 258671,258675 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r258671 | mnicholson | 2010-04-22 16:57:59 -0500 (Thu, 22 Apr 2010) | 32 lines Merged revisions 193391,258670 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r193391 | mnicholson | 2009-05-08 16:01:25 -0500 (Fri, 08 May 2009) | 8 lines Set the proper disposition on originated calls. (closes issue ASTERISK-13296) Reported by: jpt Patches: call-file-missing-cdr2.diff uploaded by mnicholson (license 96) Tested by: dlotina, rmartinez, mnicholson ........ r258670 | mnicholson | 2010-04-22 16:49:07 -0500 (Thu, 22 Apr 2010) | 11 lines Fix broken CDR behavior. This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER. Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call(). To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call(). (closes issue ASTERISK-15599) Reported by: VarnishedOtter Tested by: mnicholson ........ (closes issue ASTERISK-15118) Reported by: telles Tested by: mnicholson ................ r258675 | mnicholson | 2010-04-22 17:11:23 -0500 (Thu, 22 Apr 2010) | 2 lines Fix previous commit. ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=258676 By: Digium Subversion (svnbot) 2010-04-22 17:24:14 Repository: asterisk Revision: 258705 _U branches/1.6.1/ U branches/1.6.1/main/cdr.c U branches/1.6.1/main/channel.c U branches/1.6.1/main/features.c ------------------------------------------------------------------------ r258705 | mnicholson | 2010-04-22 17:24:10 -0500 (Thu, 22 Apr 2010) | 42 lines Merged revisions 258671,258675 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r258671 | mnicholson | 2010-04-22 16:57:59 -0500 (Thu, 22 Apr 2010) | 32 lines Merged revisions 193391,258670 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r193391 | mnicholson | 2009-05-08 16:01:25 -0500 (Fri, 08 May 2009) | 8 lines Set the proper disposition on originated calls. (closes issue ASTERISK-13296) Reported by: jpt Patches: call-file-missing-cdr2.diff uploaded by mnicholson (license 96) Tested by: dlotina, rmartinez, mnicholson ........ r258670 | mnicholson | 2010-04-22 16:49:07 -0500 (Thu, 22 Apr 2010) | 11 lines Fix broken CDR behavior. This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER. Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call(). To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call(). (closes issue ASTERISK-15599) Reported by: VarnishedOtter Tested by: mnicholson ........ (closes issue ASTERISK-15118) Reported by: telles Tested by: mnicholson ................ r258675 | mnicholson | 2010-04-22 17:11:23 -0500 (Thu, 22 Apr 2010) | 2 lines Fix previous commit. ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=258705 By: Digium Subversion (svnbot) 2010-04-23 14:46:19 Repository: asterisk Revision: 258711 _U branches/1.6.0/ U branches/1.6.0/main/cdr.c U branches/1.6.0/main/channel.c U branches/1.6.0/main/features.c ------------------------------------------------------------------------ r258711 | mnicholson | 2010-04-23 14:46:15 -0500 (Fri, 23 Apr 2010) | 42 lines Merged revisions 258671,258675 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r258671 | mnicholson | 2010-04-22 16:57:59 -0500 (Thu, 22 Apr 2010) | 32 lines Merged revisions 193391,258670 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r193391 | mnicholson | 2009-05-08 16:01:25 -0500 (Fri, 08 May 2009) | 8 lines Set the proper disposition on originated calls. (closes issue ASTERISK-13296) Reported by: jpt Patches: call-file-missing-cdr2.diff uploaded by mnicholson (license 96) Tested by: dlotina, rmartinez, mnicholson ........ r258670 | mnicholson | 2010-04-22 16:49:07 -0500 (Thu, 22 Apr 2010) | 11 lines Fix broken CDR behavior. This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER. Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call(). To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call(). (closes issue ASTERISK-15599) Reported by: VarnishedOtter Tested by: mnicholson ........ (closes issue ASTERISK-15118) Reported by: telles Tested by: mnicholson ................ r258675 | mnicholson | 2010-04-22 17:11:23 -0500 (Thu, 22 Apr 2010) | 2 lines Fix previous commit. ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=258711 |