[asterisk-users] keep dst cdr record if context change
Warren Selby
wcselby at selbytech.com
Fri Mar 30 15:00:38 CDT 2012
On Fri, Mar 30, 2012 at 2:21 PM, Danny Nicholas <danny at debsinc.com> wrote:
> So you have a situation like so:
> [default]
> Exten => _X.,1,Answer
> Exten => _X.,n,Goto(foo,s,1)
> [foo[
> Exten => s,1,playback(vm-goodbye)
> Exten => s,n,hangup()
>
> And you get two CDR records, 1 with default and 1 with foo?
>
No, he should be getting 1 record with "s" in the dst field.
To the OP: have you tried setting a channel variable to "${EXTEN} before
your Goto() command, and then in the "h" exten write it back into the cdr?
Something like:
[incoming]
exten => _X.,1,Verbose(New call coming in - verify routing)
exten => _X.,n,Set(finaldst=${EXTEN})
exten => _X.,n,Goto(mainmenu,s,1)
exten => h,1,Verbose(Hanging up)
exten => h,n,Set(CDR(dst)=${finaldst})
--
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com <http://www.selbytech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120330/21028e49/attachment.htm>
More information about the asterisk-users
mailing list