Hi!
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!