Re: [asterisk-users] send fax by Iaxmodem ?

2006-12-14 Thread Marco Mouta

Hi all,

First let me say thank you for Lee Howard, you definitely  found my problem
on sending faxes!

I'm using hy-email2fax to send faxes, and i notice that is there the problem
is starting, as the subject of my .eml file contains only the phone number
but then some how hy-email2fax is not detecting the ^M at the end of
subject.

I'm not an used with sed so it will take me some time to understand how it
works and correct this.

By the way i notice a small isse bug on hy-email2fax available for
download on
http://wpkg.org/email2fax/files/hy-email2fax

--

#
# Make a temporary file out of an email #
#

cat |  sed 's/
$//'$EMAILFILE

--

I only got Hy-email2fax working fine after changing this to:

cat |  sed 's/$//'$EMAILFILE


Any ways this is working fine only for tests, because as i mentioned above
I'm in troubles with a carriage return on email subject, to test
Sucessfully this hy-email2fax i hardcoded the variable NEWNUMBER= to
my dialed number.

After this Hands on I can sucessfully send faxes with Hy-email2fax --
Hylafax---asterisk Sucessfully.

But as i mentioned before i need to get ride of ^M on the subject line.

Any one can help me on this?

Best regards,
Marco Mouta


On 12/13/06, Lee Howard [EMAIL PROTECTED] wrote:


Marco Mouta wrote:

 Dec 13 11:28:07.51: [ 9242]: DIAL 2079^M
 Dec 13 11:28:07.51: [ 9242]: -- [9:ATDT2079\r]
 Dec 13 11:28:16.70: [ 9242]: -- [4:BUSY]
 Dec 13 11:28:46.70: [ 9242]: MODEM TIMEOUT: reading line from modem
 Dec 13 11:28:46.71: [ 9242]: MODEM Timeout
 Dec 13 11:28:46.71: [ 9242]: SEND FAILED: JOB 1 DEST 2079^M ERR
 Unknown problem


In your case BUSY means exactly that, and you should take a look at the
Asterisk CLI to get more information as to what busy really means.

However, your dialstring terminated by a carriage return (CR or ^M) is
problematic, too, because it essentially instructs HylaFAX to ignore all
responses after ATDT2079 except for OK and then proceed from there.
Basically you just need to get rid of that terminating carriage return.

Lee.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] send fax by Iaxmodem ?

2006-12-13 Thread Noc Phibee

Hi

i use now iaxmodem for receive fax and that's work very good with 
Hylafax ;=)


Do you know if we can sent fax using iaxmodem and Hylafax ?

when i test:

déc 13 13:47:21.12: [13725]: SESSION BEGIN 00014 330426690268
déc 13 13:47:21.12: [13725]: HylaFAX (tm) Version 4.3.0
déc 13 13:47:21.12: [13725]: SEND FAX: JOB 2 DEST 0426690268 COMMID 00014 
DEVICE '/dev/iaxmodem1' FROM 'localtest' USER test
déc 13 13:47:21.12: [13725]: STATE CHANGE: RUNNING - SENDING
déc 13 13:47:21.12: [13725]: -- [12:AT+FCLASS=r]
déc 13 13:47:21.12: [13725]: -- [2:OK]
déc 13 13:47:21.12: [13725]: MODEM set XON/XOFF/FLUSH: input ignored, output 
disabled
déc 13 13:47:21.12: [13725]: DIAL 0426690268
déc 13 13:47:21.12: [13725]: -- [15:ATDT0426690268\r]
déc 13 13:47:21.12: [13725]: -- [11:NO DIALTONE]
déc 13 13:47:21.12: [13725]: SEND FAILED: JOB 2 DEST 0426690268 ERR No local 
dialtone
déc 13 13:47:21.12: [13725]: -- [5:ATH0\r]
déc 13 13:47:21.12: [13725]: -- [2:OK]
déc 13 13:47:21.12: [13725]: MODEM set DTR OFF
déc 13 13:47:21.12: [13725]: MODEM set baud rate: 0 baud (flow control 
unchanged)
déc 13 13:47:21.12: [13725]: STATE CHANGE: SENDING - MODEMWAIT (timeout 5)
déc 13 13:47:21.12: [13725]: SESSION END


Thanks bye



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] send fax by Iaxmodem ?

2006-12-13 Thread Marco Mouta

Hi Guys,

I'm using Asterisk with Hylafax to send and receive faxes, currently only
receinving with success.

When sending i get this:

Dec 13 11:28:07.51: [ 9242]: SESSION BEGIN 00157 03510212079
Dec 13 11:28:07.51: [ 9242]: HylaFAX (tm) Version 4.3.1
Dec 13 11:28:07.51: [ 9242]: SEND FAX: JOB 1 DEST 2079^M COMMID 00157
DEVICE '/dev/ttyIAX' FROM 'Marco Mouta [EMAIL PROTECTED]' USER root
Dec 13 11:28:07.51: [ 9242]: STATE CHANGE: RUNNING - SENDING
Dec 13 11:28:07.51: [ 9242]: -- [12:AT+FCLASS=1\r]
Dec 13 11:28:07.51: [ 9242]: -- [2:OK]
Dec 13 11:28:07.51: [ 9242]: MODEM set XON/XOFF/FLUSH: input ignored, output
disabled
Dec 13 11:28:07.51: [ 9242]: DIAL 2079^M
Dec 13 11:28:07.51: [ 9242]: -- [9:ATDT2079\r]
Dec 13 11:28:16.70: [ 9242]: -- [4:BUSY]
Dec 13 11:28:46.70: [ 9242]: MODEM TIMEOUT: reading line from modem
Dec 13 11:28:46.71: [ 9242]: MODEM Timeout
Dec 13 11:28:46.71: [ 9242]: SEND FAILED: JOB 1 DEST 2079^M ERR Unknown
problem
Dec 13 11:28:46.71: [ 9242]: -- [5:ATH0\r]
Dec 13 11:28:46.71: [ 9242]: -- [2:OK]
Dec 13 11:28:46.71: [ 9242]: MODEM set DTR OFF
Dec 13 11:28:46.71: [ 9242]: MODEM set baud rate: 0 baud (flow control
unchanged)
Dec 13 11:28:46.71: [ 9242]: STATE CHANGE: SENDING - MODEMWAIT (timeout 5)
Dec 13 11:28:46.71: [ 9242]: SESSION END

I Must say on the reception side is a normal fax connected to pstn line, and
to send fax via Asterisk+Hylafax i've tested TE110P and X100P board.

I got few sucess with x100p and couldn't send even one with TE110p

Any tips?


On 12/13/06, Noc Phibee [EMAIL PROTECTED] wrote:


Hi

i use now iaxmodem for receive fax and that's work very good with
Hylafax ;=)

Do you know if we can sent fax using iaxmodem and Hylafax ?

when i test:

déc 13 13:47:21.12: [13725]: SESSION BEGIN 00014 330426690268
déc 13 13:47:21.12: [13725]: HylaFAX (tm) Version 4.3.0
déc 13 13:47:21.12: [13725]: SEND FAX: JOB 2 DEST 0426690268 COMMID
00014 DEVICE '/dev/iaxmodem1' FROM 'localtest' USER test
déc 13 13:47:21.12: [13725]: STATE CHANGE: RUNNING - SENDING
déc 13 13:47:21.12: [13725]: -- [12:AT+FCLASS=r]
déc 13 13:47:21.12: [13725]: -- [2:OK]
déc 13 13:47:21.12: [13725]: MODEM set XON/XOFF/FLUSH: input ignored,
output disabled
déc 13 13:47:21.12: [13725]: DIAL 0426690268
déc 13 13:47:21.12: [13725]: -- [15:ATDT0426690268\r]
déc 13 13:47:21.12: [13725]: -- [11:NO DIALTONE]
déc 13 13:47:21.12: [13725]: SEND FAILED: JOB 2 DEST 0426690268 ERR No
local dialtone
déc 13 13:47:21.12: [13725]: -- [5:ATH0\r]
déc 13 13:47:21.12: [13725]: -- [2:OK]
déc 13 13:47:21.12: [13725]: MODEM set DTR OFF
déc 13 13:47:21.12: [13725]: MODEM set baud rate: 0 baud (flow control
unchanged)
déc 13 13:47:21.12: [13725]: STATE CHANGE: SENDING - MODEMWAIT (timeout
5)
déc 13 13:47:21.12: [13725]: SESSION END


Thanks bye



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] send fax by Iaxmodem ?

2006-12-13 Thread Lee Howard

Noc Phibee wrote:


déc 13 13:47:21.12: [13725]: -- [15:ATDT0426690268\r]
déc 13 13:47:21.12: [13725]: -- [11:NO DIALTONE] 



Getting NO DIALTONE from iaxmodem means that the call was rejected.

Double-check your setup.  Make sure that iaxmodem can register.  Then 
make sure that the context that you're calling into (per the iax.conf 
iaxmodem settings) supports extens for the numbers you're dialing.  
Watch the Asterisk CLI.


Lee.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] send fax by Iaxmodem ?

2006-12-13 Thread Lee Howard

Marco Mouta wrote:


Dec 13 11:28:07.51: [ 9242]: DIAL 2079^M
Dec 13 11:28:07.51: [ 9242]: -- [9:ATDT2079\r]
Dec 13 11:28:16.70: [ 9242]: -- [4:BUSY]
Dec 13 11:28:46.70: [ 9242]: MODEM TIMEOUT: reading line from modem
Dec 13 11:28:46.71: [ 9242]: MODEM Timeout
Dec 13 11:28:46.71: [ 9242]: SEND FAILED: JOB 1 DEST 2079^M ERR 
Unknown problem



In your case BUSY means exactly that, and you should take a look at the 
Asterisk CLI to get more information as to what busy really means.


However, your dialstring terminated by a carriage return (CR or ^M) is 
problematic, too, because it essentially instructs HylaFAX to ignore all 
responses after ATDT2079 except for OK and then proceed from there.  
Basically you just need to get rid of that terminating carriage return.


Lee.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users