Dialing in background


Is there a way to Dial() in background the same way as “Background()” does?

Background: With chan_capi-cm I want to use fax and voice on the same MSN. Using chan_capi-cm, it should be possible to detect a fax tone this way:

exten => s,1,Answer()
exten => s,2,Background(soundfile)
exten => s,3,capicommand(receivefax|/tmp/${UNIQUEID})
exten => s,4,Hangup()
exten => h,1,deadagi,fax.php

Now I want to forward the call to internal SIP phones, but if a Dialtone is detected, it should be handled by receivefax.

So I’m searching for something like

; answer in voice mode
exten => s,1,Answer()
; Call SIP phones in background in order to
; resume with the dialplan for detecting fax tone
exten => s,2,CallBackground(SIP/phone1&SIP/phone2)
exten => s,3,capicommand(receivefax|/tmp/${UNIQUEID})

Thank you a lot!

perhaps the add on application nvrecievefax would be what youw ant? it listens for fax tones on any type of channel… search the wiki for it.

I can’t find anything with “nvrecievefax”. Maybe you mean

The problem is that I don’t have a ZAP channel but a CAPI channel!
I use chan_capi-cm :-/


is where you’ll find links to their various Asterisk apps

Thank you very much!

It seems to work great!