Zeeshan Zakaria
2009-Jan-19 13:45 UTC
[asterisk-users] How to overwrite CDR(dst) value in h priority?
Hi everyone, In one of my contexts I run h priority in which I need to change the CDR(dst) value. But it doesn't work and in the CDR dst field is recorded as h. Context abc { 111 => { ... ... ... }; h => { Set(CDR(dst)='111'); NoOp(${CDR(dst)}); Hangup(); }; }; Can anybody give me an idea how to accomplish this task? In my CDR I need to see 111 in the dst field and not h. Thanks -- Zeeshan A Zakaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090119/a169d685/attachment.htm
Steve Murphy
2009-Jan-19 15:16 UTC
[asterisk-users] How to overwrite CDR(dst) value in h priority?
On Mon, 2009-01-19 at 08:45 -0500, Zeeshan Zakaria wrote:> Hi everyone, > > In one of my contexts I run h priority in which I need to change the > CDR(dst) value. But it doesn't work and in the CDR dst field is > recorded as h. > > Context abc { > > 111 => { > ... > ... > ... > }; > > h => { > Set(CDR(dst)='111'); > NoOp(${CDR(dst)}); > Hangup(); > }; > > }; > > Can anybody give me an idea how to accomplish this task? In my CDR I > need to see 111 in the dst field and not h.CDR is specifically written to only allow certain fields to be modified. dst wasn't one of them. If you get rid of the h extension entirely, it won't cause an update of the CDR. If I had to keep to the h exten (because it did other things than just try to reset a value which was set by running the h-exten), then I'd get rid of the Hangup() call, because it's useless. (The h-exten is being run because of a hangup situation in the first place.) murf -- Steve Murphy <murf at digium.com> Digium -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3227 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090119/d9fd38b5/attachment.bin
Possibly Parallel Threads
- Why CDR is recording dst value = h?
- Need help registering Cisco 7960 Phones on Asterisk
- Why Aastra uses 48V whereas other IP Phones use much less, i.e. 5-12V
- ResetCDR after GotoIf doesn't set dst correctly, Is this a bug?
- How to Change size of CDR(accountcode) variable?