NVBackgroundDetect while Voicemail2?


I want to set up a voicemail which switches to fax in case of CNG-Tones.

where can I find the Voicemail2-macro to replace the “Playback()” or “Background()” with “NVBackgroundDetect()”?

Thanx for any hint


; Answer and do some detection work
exten => s,1,Answer
exten => s,2,NVBackgroundDetect(welcome)
exten => s,3,Hangup

; If user presses “1”, dial main line
exten => 1,1,Dial(SIP/5500)
exten => 1,2,Hangup

; If this is a fax, dial fax line
exten => fax,1,Dial(SIP/5501)
exten => fax,2,Hangup

; If user is talking, send him to Debra
exten => talk,1,Dial(SIP/5502)
exten => talk,2,Hangup

Taken from:

I’ve already read voip-info.org/wiki/view/NVBackgroundDetect.

But I do not need to play some message, but run NVBackgroundDetect WHILE announcement of Voicemail2 is played.

So I asked where I can find the Voicemail2-macro to edit it.


Then reread the article i posted.
It is EXACTLY doing this and its exactly the WAY to do it.

If you need backgrounddetection, you dont use standard VM but NV…
And then you do the ongoing scripting depending on what the user is doing.

THere is no “native” function doing this, im sorry.

Dont shoot the messenger man…