[asterisk-users] Generate cdr on Hangup

Deepesh D deep.d2010 at gmail.com
Tue Jun 22 01:11:59 CDT 2010


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 


More information about the asterisk-users mailing list