Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] DID reporting



Lee Howard wrote:

Mark Ratering wrote:

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.

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

Jul 11 13:21:39 mail FaxGetty[4800]: STATE CHANGE: RECEIVING -> RUNNING (timeout 30)
Jul 11 13:21:39 mail FaxGetty[4800]: MODEM input buffering disabled
Jul 11 13:27:38 mail FaxGetty[4800]: STATE CHANGE: RUNNING -> LISTENING
Jul 11 13:27:38 mail FaxGetty[4800]: --> [4:RING]
Jul 11 13:27:38 mail FaxGetty[4800]: --> [9:DATE=0711]
Jul 11 13:27:38 mail FaxGetty[4800]: --> [9:TIME=1623]
Jul 11 13:27:38 mail FaxGetty[4800]: --> [6:NMBR=O]
Jul 11 13:27:38 mail FaxGetty[4800]: --> [13:NAME=Hard Fax]
Jul 11 13:27:44 mail FaxGetty[4800]: --> [4:RING]
Jul 11 13:27:44 mail FaxGetty[4800]: ANSWER: Call ID 1 "O"
Jul 11 13:27:44 mail FaxGetty[4800]: ANSWER: Call ID 2 "Hard Fax"
Jul 11 13:27:44 mail FaxGetty[4800]: ANSWER: Call ID 3 ""
Jul 11 13:27:50 mail FaxGetty[4800]: --> [4:RING]
Jul 11 13:27:50 mail FaxGetty[4800]: STATE CHANGE: LISTENING -> ANSWERING
Jul 11 13:28:04 mail FaxGetty[4800]: ANSWER: FAX CONNECTION DEVICE '/dev/ttyS3'



Asterisk says it is sending:


   -- 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'

I believe that my modem config is correct:

ModemResetCmds:         AT+VCID=1
CallIDPattern:          "NMBR="
CallIDPattern:          "NAME="
CallIDPattern: SHIELDED_DTMF
CallIDAnswerLength: 7


Any ideas?


____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services