Hello, I have the following dialplan exten => _X.,1,Set(CDR(userfield)=test) exten => _X.,n,Do some checks and hangup if checks fail exten => _X.,n,Dial(SIP/${EXTEN}) exten => _X.,n,Hangup 1. If the Dial fails with a busy, noanswer or congestion then a cdr is generated. 2. If the call fails before Dial (if the checks fail) then no cdr is generated. I would like to generate a cdr in the second case also. Is there a way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100622/aa407532/attachment.htm
2010/6/22 Deepesh D <deep.d2010 at gmail.com>> Hello, > > I have the following dialplan > > exten => _X.,1,Set(CDR(userfield)=test) > exten => _X.,n,Do some checks and hangup if checks fail > exten => _X.,n,Dial(SIP/${EXTEN}) > exten => _X.,n,Hangup > > 1. If the Dial fails with a busy, noanswer or congestion then a cdr is > generated. > 2. If the call fails before Dial (if the checks fail) then no cdr is > generated. > > I would like to generate a cdr in the second case also. Is there a way to > do this? > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >Have you tried with an h priority ? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100622/400019d4/attachment.htm
Yes, generate CDR in h extension, i.e. add the following to your context: exten => h,1,ResetCDR(vw) Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-06-22 2:25 AM, "Olivier" <oza_4h07 at yahoo.fr> wrote: 2010/6/22 Deepesh D <deep.d2010 at gmail.com>> > > > Hello, > > > > I have the following dialplan > > > > exten => _X.,1,Set(CDR(userfield)=test) > > exten => ... > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >Have you tried with an h priority ? -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100622/81dc430a/attachment.htm