[asterisk-users] Why CDR is recording dst value = h?

David Backeberg dbackeberg at gmail.com
Wed Jul 15 11:42:51 CDT 2009


On Mon, Jul 13, 2009 at 8:10 PM, Zeeshan Zakaria<zishanov at gmail.com> wrote:
> Any idea why is this happening and how can I have correct 'dst' value if the
> caller hangs up first.
>
> [dialout]
>         exten => _NXXNXXXXXX,s,1,Dial(SIP/XXXXXX/${EXTEN},30)

What happens when you put a
exten => _NXXNXXXXXX,s,2,NoOp(${CDR(dst))
in there?


>         exten => h,1,Macro(hangupcall,${EXTEN},${CDR(accountcode)})
>
> [macro-hangupcall]
>         NoOp(${CDR(dst)})
>         Set(dialout_num=${ARG1})
>         Set(user_id=${ARG2})
>         ResetCDR(vw);
>         NoCDR();
>         Hangup();
>
>
> --
> Zeeshan A Zakaria
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list