![]() |
Mark Ratering wrote:Well, i did all of that and tested it and i'm not seeing anything in the log about DTMF. I have the log level up to 0xFFF
Lee Howard wrote:
In Asterisk's dialplan (extensions.conf) you do this:
exten => fax,1,dial(SIP/fax,,D(w1234))
Of course, you'll need to modify that to suit your needs.
Lee.
Still testing to see if i have it working. Just curious though. What does the 'w' do? Assuming this works, how do i have asterisk relay the (possibly 10 digit) number that the customer's fax machine called to hylafax?
From the Asterisk CLI run 'show application dial', and you'll do well.
The "w" tells Asterisk to wait 500 ms (half a second) after the line goes off-hook before sending the DTMF.
The DID in my example is "1234". So you'll probabably refer to ${EXTEN} in your usage... or some other variable. If you're using fax detection then you'll need to set a variable to ${EXTEN} before the call gets forwarded to "fax". Personally I'd recommend against using fax detection, and that way you'd have something like this:
exten => 5551212,1,dial(SIP/fax,,D(w5551212))
Lee.
-- Starting simple switch on 'Zap/22-1' -- Executing Macro("Zap/22-1", "faxexten|Zap/23|723|") in new stack -- Executing Answer("Zap/22-1", "") in new stack -- Executing NoOp("Zap/22-1", "") in new stack -- Executing Dial("Zap/22-1", "Zap/23||D(w1234567)") in new stack -- Called 23 -- Zap/23-1 is ringing -- Zap/23-1 is ringing -- Zap/23-1 is ringing -- Zap/23-1 is ringing -- Zap/23-1 answered Zap/22-1 -- Sending DTMF 'w1234567' to the called party. -- Attempting native bridge of Zap/22-1 and Zap/23-1 -- Hungup 'Zap/23-1'
ModemResetCmds: AT+VCID=1 CallIDPattern: "NMBR=" CallIDPattern: "NAME=" CallIDPattern: SHIELDED_DTMF CallIDAnswerLength: 7
____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*