Thank you for your reply Sir i tried inserting ResetCDR(w) almost everywhere but i still end up with this on the cdr:
From To: 500 100-CHANUNAVAIL This is my current setting hat produces that CDR: exten => 100,1,Macro(dial-ext-cf|SIP/${EXTEN}|vm-100|moh-100) exten => 100,2,Goto(100-${DIALSTATUS}|1) exten => 100-BUSY,1,Macro(dialout-local-mobile|91234567) exten => 100-BUSY,2,Voicemail([EMAIL PROTECTED]|u) exten => 100-CONGESTION,1,Macro(dialout-local-mobile|91234567) exten => 100-CONGESTION,2,Voicemail([EMAIL PROTECTED]|u) exten => 100-NOANSWER,1,Macro(dialout-local-mobile|91234567) exten => 100-NOANSWER,2,Voicemail([EMAIL PROTECTED]|u) [macro-dialout-local-mobile] exten => s,1,Wait(1) exten => s,n,ResetCDR(w) exten => s,n,Dial(IAX2/trunk-100-1000/91234567|30|t) [macro-dial-ext-cf] exten => s,1,SetMusicOnHold(${ARG3}) exten => s,2,ResetCDR(w) exten => s,3,Dial(SIP/100|30|t|M(setmusiconhold,100)) where do you think should i put the ResetCDR(w)? thanks again. regards, nhadie Rizwan Hisham wrote: > You can use the ResetCDR() application with the w flag in it after you > get the unavailable, busy or etc message from the callee. It will store > the cdr of that call and after forwarding to mobile, that cdr will be > dumped again. > > On Wed, Sep 24, 2008 at 8:26 AM, Nhadie <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > hi, > > i'm using this macro to dial an extension and forward to a mobile if > unavailable,busy or noanswer > > exten => 100,1,Macro(dial-ext|SIP/${EXTEN}|vm-100|moh-100) > exten => 100,2,Goto(100-${DIALSTATUS}|1) > exten => 100-BUSY,1,Macro(dialout-local-mobile|91234567) > exten => 100-BUSY,2,Voicemail([EMAIL PROTECTED]|u) > exten => 100-CONGESTION,1,Macro(dialout-local-mobile|91234567) > exten => 100-CONGESTION,2,Voicemail([EMAIL PROTECTED]|u) > exten => 100-NOANSWER,1,Macro(dialout-local-mobile|91234567) > exten => 100-NOANSWER,2,Voicemail([EMAIL PROTECTED]|u) > > my prob is on the CDR, from extension 500 i called 100, 100 is not > online so it should forward it to my mobile > > but on the cdr it shows like this: > > From To > 500 100-CHANUNAVAIL > > should it be like > > From To > 500 91234567 > > or > > From To > 100 91234567 > > any idea how to fix those? > > regards, > nhadie > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > -- > Best Regards > Rizwan Hisham > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users