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. Peder
On 11/8/07, Peder @ NetworkOblivion <peder at networkoblivion.com> 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're sending them into VoiceMail() from your dialplan - just stick the dialed number in a channel var before calling VoiceMail(), then refer to it in your 'a' extension. -- j. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071108/c0174974/attachment-0001.htm
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/
I think you can save/get the number in variable and then assign it to callerid. I am doing similar and working for me. Thanks, Viv On 11/8/07, Peder @ NetworkOblivion <peder at networkoblivion.com> 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. > > Peder > > > _______________________________________________ > --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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071108/308799ed/attachment.htm