[Asterisk-java-users] CDR event getDestination
Brought to you by:
srt
From: Thameem A. <tha...@ya...> - 2006-05-01 03:19:38
|
Hi Stefan The CDREvent.getDestination returns the actualy extension and not the DNID. I think asterisk itself is sending the extension and not the DNID to cdr. So, If I have a AbsoluteTimeout Extension (T) in my dialplan and if the call happen to end on that extension and hangup the cdr event actually sending the last extension (ie, 'T' as destination number). Due to this when I try to find out the destination number from cdr event its giving wrong information. I am sure most of the guys have the same problem when they write calling card app or just to display the cdr to the users....How do you guys solve this issue? I also noticed that if you have a prefix with ur number and you remove the prefix using EXTEN:1, even though you remove that prefix asterisk is always sending the EXTEN with actual number (with prefix) mentioned in the dialplan. I am running the latest version 1.2.7 of asterisk. I also tested this functionality from all 1.2.x releases and its same behaviour. Thanks in advance, Thameem --------------------------------- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. |