Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] asterisk email to fax


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
atux at null.net
Guest





PostPosted: Wed Jun 24, 2015 1:15 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

hello everyone.
i am using asterisk 11.16 in my home office and i am using fax to email with it. i am quite happy with the way it works, no problems at all. when a fax arrives in a particular DID then the system sends it with mailutils to my email address as pdf. there is not any email address setup in the system, simply mailutils.

i would like to add email to fax functionality to the system. could someone point me to the right direction to see how please?
Back to top
ecc at cmu.edu
Guest





PostPosted: Thu Jun 25, 2015 11:10 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

On Wed, Jun 24, 2015 at 08:15:06AM +0200, tux john wrote:
Quote:
i would like to add email to fax functionality to the system. could someone
point me to the right direction to see how please?

I don't have a general solution, since I haven't needed to send faxes
recently. But I did set up my dialplan so that I could test that it
works.

I used this:
----
;; For outgoing faxes
FAX_NAME = My Company Name
FAX_NUMBER = My Phone Number
FAX_FILE = /tmp/fax.tiff

[services]
...
exten => sendfax,1,Verbose(3,Sending fax)
same => n,Set(FAXOPT(headerinfo)=${FAX_NAME})
same => n,Set(FAXOPT(localstationid)=${FAX_NUMBER})
same => n,SendFax(${FAX_FILE})
same => n,Verbose(3,Pages: ${FAXOPT(pages)} Status: ${FAXOPT(status)})
same => n,System(rm ${FAX_FILE})
same => n,Hangup()
----

To "dial" the sendfax extension, I created a call file manually that
looked like this:
Channel: DAHDI/g0/1-800-123-4567
Context: services
Extension: sendfax
In an automated system, you'd probably want to use the manager API,
but you could also generated call files from scripts. Then I placed
the fax file in /tmp/fax.tiff and the call file in
/var/spool/asterisk/outgoing/ and Asterisk sent off the fax. There
are some free fax echo numbers out there that are useful when
debugging.

If I wanted to drive this automatically from email, I would probably
just use procmail and some scripts. Ghostscript produces the right
kind of image file if you use "-sDEVICE=tiffg4". You'd have to define
some syntax for specifying the outgoing number and cover page info in
the email body, and extract the MIME attachment for the document from
the email.

Hope this helps.

--
Eric Cooper e c c @ c m u . e d u

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
markus_weiler at mailw...
Guest





PostPosted: Thu Jun 25, 2015 11:23 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

Hi Eric,

This is not really easy. Especially the Mail2Tiff Conversion is tricky
(lots of different MIME/File formats).
When you have the correct tiff file the rest ist easy. Try to narrow it
down to an empty Mail Body using (one) PDF attachment.
We used a self written Java app to prepare the files.

Markus


Am 25.06.2015 um 18:09 schrieb Eric Cooper:
Quote:
On Wed, Jun 24, 2015 at 08:15:06AM +0200, tux john wrote:
Quote:
i would like to add email to fax functionality to the system. could someone
point me to the right direction to see how please?
I don't have a general solution, since I haven't needed to send faxes
recently. But I did set up my dialplan so that I could test that it
works.

I used this:
----
;; For outgoing faxes
FAX_NAME = My Company Name
FAX_NUMBER = My Phone Number
FAX_FILE = /tmp/fax.tiff

[services]
...
exten => sendfax,1,Verbose(3,Sending fax)
same => n,Set(FAXOPT(headerinfo)=${FAX_NAME})
same => n,Set(FAXOPT(localstationid)=${FAX_NUMBER})
same => n,SendFax(${FAX_FILE})
same => n,Verbose(3,Pages: ${FAXOPT(pages)} Status: ${FAXOPT(status)})
same => n,System(rm ${FAX_FILE})
same => n,Hangup()
----

To "dial" the sendfax extension, I created a call file manually that
looked like this:
Channel: DAHDI/g0/1-800-123-4567
Context: services
Extension: sendfax
In an automated system, you'd probably want to use the manager API,
but you could also generated call files from scripts. Then I placed
the fax file in /tmp/fax.tiff and the call file in
/var/spool/asterisk/outgoing/ and Asterisk sent off the fax. There
are some free fax echo numbers out there that are useful when
debugging.

If I wanted to drive this automatically from email, I would probably
just use procmail and some scripts. Ghostscript produces the right
kind of image file if you use "-sDEVICE=tiffg4". You'd have to define
some syntax for specifying the outgoing number and cover page info in
the email body, and extract the MIME attachment for the document from
the email.

Hope this helps.

--
Eric Cooper e c c @ c m u . e d u



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk_list at earth...
Guest





PostPosted: Thu Jun 25, 2015 12:30 pm    Post subject: [asterisk-users] asterisk email to fax Reply with quote

On Wednesday 24 Jun 2015, tux john wrote:
Quote:
hello everyone.
i am using asterisk 11.16 in my home office and i am using fax to email
with it. i am quite happy with the way it works, no problems at all. when
a fax arrives in a particular DID then the system sends it with mailutils
to my email address as pdf. there is not any email address setup in the
system, simply mailutils.

Quote:
i would like to add email to fax functionality to the system. could someone
point me to the right direction to see how please?

Beware! This is an exercise fraught with pitfalls for the unwary. Your users
will expect to be able to e-mail any proprietary format and have it appear on
the remote fax machine exactly as though it would on their own printer; and
will blame you when it doesn't work because nothing else can read the files
produced by an ancient piece of closed-source software that worked only with
one particular obsolete version of Windows.

The correct procedure if some pointy-haired type asks you to do this, is to
run away as fast as possible.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
ecc at cmu.edu
Guest





PostPosted: Thu Jun 25, 2015 12:57 pm    Post subject: [asterisk-users] asterisk email to fax Reply with quote

On Thu, Jun 25, 2015 at 06:29:50PM +0100, A J Stiles wrote:
Quote:
On Wednesday 24 Jun 2015, tux john wrote:
Quote:
i am using asterisk 11.16 in my home office and i am using fax to email
with it.
[...]
Beware! This is an exercise fraught with pitfalls for the unwary. Your users
will expect to be able to e-mail any proprietary format and have it appear on
the remote fax machine exactly as though it would on their own printer; and
will blame you when it doesn't work because nothing else can read the files
produced by an ancient piece of closed-source software that worked only with
one particular obsolete version of Windows.

Since the O.P. said he's using it for his home office, I think he'll
be able to control user expectations Smile

--
Eric Cooper e c c @ c m u . e d u

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Thu Jun 25, 2015 1:50 pm    Post subject: [asterisk-users] asterisk email to fax Reply with quote

Quote:
Since the O.P. said he's using it for his home office, I think he'll
be able to control user expectations Smile


I provide tech support to my parents on all their computers. The amount of annoyance I have dealt with in the last few months over the fact that a recipe program and various card making programs designed for Windows 3.1/95 won't run on my mom's Windows 7 64 bit computer tells me you are not as right as you think you are.
Back to top
RyanT at OscarWinski.com
Guest





PostPosted: Thu Jun 25, 2015 1:52 pm    Post subject: [asterisk-users] asterisk email to fax Reply with quote

I hope his mother in law doesn’t live with him. That’s a support issue for sure.


From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Kevin Larsen
Sent: Thursday, June 25, 2015 2:50 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] asterisk email to fax


Quote:
Since the O.P. said he's using it for his home office, I think he'll
be able to control user expectations Smile


I provide tech support to my parents on all their computers. The amount of annoyance I have dealt with in the last few months over the fact that a recipe program and various card making programs designed for Windows 3.1/95 won't run on my mom's Windows 7 64 bit computer tells me you are not as right as you think you are.
Back to top
tiago.geada at gmail.com
Guest





PostPosted: Fri Jun 26, 2015 11:28 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

we use a PHP web page, that takes a few formats, PDF being the most common, anc convert it to TIFF.


If conversion succeeds we allow to download the TIFF file as a preview. Then the user confirms and the PHP places a .call file in asterisk spool


On 25 June 2015 at 19:51, Ryan, Travis <RyanT@oscarwinski.com (RyanT@oscarwinski.com)> wrote:
Quote:

I hope his mother in law doesn’t live with him. That’s a support issue for sure.
 
 
From: asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com) [mailto:asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com)] On Behalf Of Kevin Larsen
Sent: Thursday, June 25, 2015 2:50 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] asterisk email to fax

 
Quote:
Since the O.P. said he's using it for his home office, I think he'll
be able to control user expectations Smile


I provide tech support to my parents on all their computers. The amount of annoyance I have dealt with in the last few months over the fact that a recipe program and various card making programs designed for Windows 3.1/95 won't run on my mom's Windows 7 64 bit computer tells me you are not as right as you think you are.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
atux at null.net
Guest





PostPosted: Thu Jul 02, 2015 6:46 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

being honest with i have been lost on what to do.
all i want is sent from my email a pdf file and then the server will sent it as fax.
what settings do i have to do regarding emailing to the server? what other settings do i have to do?
is there a guide on that?
Sent: Friday, June 26, 2015 at 7:28 PM From: "Tiago Geada" <tiago.geada@gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Subject: Re: [asterisk-users] asterisk email to fax
we use a PHP web page, that takes a few formats, PDF being the most common, anc convert it to TIFF.

If conversion succeeds we allow to download the TIFF file as a preview. Then the user confirms and the PHP places a .call file in asterisk spool

On 25 June 2015 at 19:51, Ryan, Travis <[url=RyanT@oscarwinski.com]RyanT@oscarwinski.com[/url]> wrote:
Quote:

I hope his mother in law doesn&rsquo;t live with him. That&rsquo;s a support issue for sure.


From: [url=asterisk-users-bounces@lists.digium.com]asterisk-users-bounces@lists.digium.com[/url] [mailto:[url=asterisk-users-bounces@lists.digium.com]asterisk-users-bounces@lists.digium.com[/url]] On Behalf Of Kevin Larsen Sent: Thursday, June 25, 2015 2:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] asterisk email to fax


Quote:
Since the O.P. said he's using it for his home office, I think he'll > be able to control user expectations Smile I provide tech support to my parents on all their computers. The amount of annoyance I have dealt with in the last few months over the fact that a recipe program and various card making programs designed for Windows 3.1/95 won't run on my mom's Windows 7 64 bit computer tells me you are not as right as you think you are.

-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users


-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
webaccounts173 at jgoe...
Guest





PostPosted: Thu Jul 02, 2015 7:03 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

Quote:
being honest with i have been lost on what to do.
all i want is sent from my email a pdf file and then the server will sent it as fax.
what settings do i have to do regarding emailing to the server? what other settings do i have to do?
is there a guide on that?
  Sent: Friday, June 26, 2015 at 7:28 PM
From: "Tiago Geada" <tiago.geada@gmail.com> (tiago.geada@gmail.com)
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> (asterisk-users@lists.digium.com)
Subject: Re: [asterisk-users] asterisk email to fax
we use a PHP web page, that takes a few formats, PDF being the most common, anc convert it to TIFF.
 
If conversion succeeds we allow to download the TIFF file as a preview. Then the user confirms and the PHP places a .call file in asterisk spool

  On 25 June 2015 at 19:51, Ryan, Travis <[url=RyanT@oscarwinski.com]RyanT@oscarwinski.com[/url]> wrote:
Quote:

I hope his mother in law doesn’t live with him. That’s a support issue for sure.
 
 
From: [url=asterisk-users-bounces@lists.digium.com]asterisk-users-bounces@lists.digium.com[/url] [mailto:[url=asterisk-users-bounces@lists.digium.com]asterisk-users-bounces@lists.digium.com[/url]] On Behalf Of Kevin Larsen
Sent: Thursday, June 25, 2015 2:50 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] asterisk email to fax

 
Quote:
Since the O.P. said he's using it for his home office, I think he'll
be able to control user expectations Smile


I provide tech support to my parents on all their computers. The amount of annoyance I have dealt with in the last few months over the fact that a recipe program and various card making programs designed for Windows 3.1/95 won't run on my mom's Windows 7 64 bit computer tells me you are not as right as you think you are.









This is not a question of settings. You must decide yourself what to do and there are various options. Asterisk is only responsible for the transport.

You need to look at the following tasks:
- get the file or files into the asterisk box
- convert to a faxable tiff format
- generate a call file and put the tiff file where it belongs (but there are other methods)
- get fax report

Of course, at first you must configure Asterisk to accept facsimiles, which depends on which technologies you need. But everything is nicely documented.

jg
Back to top
atux at null.net
Guest





PostPosted: Thu Jul 02, 2015 7:51 am    Post subject: [asterisk-users] asterisk email to fax Reply with quote

At the moment it receives fax and sends it as pdf to my email.
i have followed this tutorial http://the-asterisk-book.com/1.6/faxserver-mit-iaxmodem-und-hylafax.html
i have setup postfix to send using my gmail account.
how do i do the reverse to send from my email?
Sent: Thursday, July 02, 2015 at 3:02 PM From: jg <webaccounts173@jgoettgens.de> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Subject: Re: [asterisk-users] asterisk email to fax

Quote:
being honest with i have been lost on what to do.
all i want is sent from my email a pdf file and then the server will sent it as fax.
what settings do i have to do regarding emailing to the server? what other settings do i have to do?
is there a guide on that?
Sent: Friday, June 26, 2015 at 7:28 PM From: "Tiago Geada" [url=tiago.geada@gmail.com]<tiago.geada@gmail.com>[/url] To: "Asterisk Users Mailing List - Non-Commercial Discussion" [url=asterisk-users@lists.digium.com]<asterisk-users@lists.digium.com>[/url] Subject: Re: [asterisk-users] asterisk email to fax
we use a PHP web page, that takes a few formats, PDF being the most common, anc convert it to TIFF.

If conversion succeeds we allow to download the TIFF file as a preview. Then the user confirms and the PHP places a .call file in asterisk spool

On 25 June 2015 at 19:51, Ryan, Travis <RyanT@oscarwinski.com> wrote:
Quote:

I hope his mother in law doesn&rsquo;t live with him. That&rsquo;s a support issue for sure.


From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Kevin Larsen Sent: Thursday, June 25, 2015 2:50 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] asterisk email to fax


Quote:
Since the O.P. said he's using it for his home office, I think he'll > be able to control user expectations Smile I provide tech support to my parents on all their computers. The amount of annoyance I have dealt with in the last few months over the fact that a recipe program and various card making programs designed for Windows 3.1/95 won't run on my mom's Windows 7 64 bit computer tells me you are not as right as you think you are.








This is not a question of settings. You must decide yourself what to do and there are various options. Asterisk is only responsible for the transport. You need to look at the following tasks: - get the file or files into the asterisk box - convert to a faxable tiff format - generate a call file and put the tiff file where it belongs (but there are other methods) - get fax report Of course, at first you must configure Asterisk to accept facsimiles, which depends on which technologies you need. But everything is nicely documented. jg -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services