[asterisk-users] 'a' extension

James FitzGibbon james.fitzgibbon at gmail.com
Thu Nov 8 10:29:51 CST 2007


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 


More information about the asterisk-users mailing list