[asterisk-users] 'a' extension

BJ Weschke bweschke at gmail.com
Thu Nov 8 10:31:49 CST 2007


Peder @ NetworkOblivion wrote:
> Is there any way to see the called number when a call gets redirected to 
> the 'a' extension from voicemail?  Say x123 calls x456 and it rolls to 
> voicemail.  x123 hits * and gets dumped into the 'a' extension in the 
> original context.  I need some logic in 'a' to do a database lookup 
> based on the original called number (x456).  Any ideas?  When I do a 
> test, it appears that the called number is 'a' and the calling number is 
> 123.  I need to be able to tell that it was a call to x456.  Thanks.
>
>   

 You could set a CDR variable called origdst when the call starts up and 
then use the customer CDR format to kick origdst back out into the 
custom CDR format when the record gets written. This is what we do for this.

-- 
--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/




More information about the asterisk-users mailing list