CDR Not getting updated for CUSTOM-Call Out thru IVR

Hello,

Hi,

My incoming DID points to an IVR, some of the IVR options point to “custom-applications” which dial out to specific phone numbers, and a DISA as well which allows me to dial out anynumber I want. There is no PSTN line involved, both the legs are VoIP. The custom snippet is:

[custom-Office]
exten => s,1,Background(pls-wait-connect-call)
exten => s,2,Dial(SIP/01622446688@DirectCentrex,60,r)
exten => s,3,VoiceMail(b111)

Everything works fine, I can call my VoIP did, after so many rings, the IVR kicks in, I choose the option pointing to custom-office,s,1 , the call is initiated, I have conversation… but… the second leg of the call never appears in the CDR… If I use the DISa to make a call, then the call log is fine. The CDR Shows:

  1. 2007-06-14 07:59:36 SIP/811123… 02170123456 02170123456 0044300123456 NO ANSWER 00:00
  2. 2007-06-14 07:59:17 SIP/811123… 01224202210 “My Office” <01224123456> s ANSWERED 00:19
  3. 2007-06-14 07:56:41 SIP/811123… 01224123456 “My Office” <01224123456> s ANSWERED 01:20

Call 16 shows a duration of 1:20, but not the actual destination that custon-office would’ve dialled, whereas 15 and 14 do show the CDR getting updated properly.

I posted this query at the Trixbox forum before, but maybe its more relevant here?

Thanks.