Re: [asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes wedged for hylafax

2013-07-09 Thread Lee Howard

On 07/04/2013 08:49 AM, Gianni Fioretta wrote:

Hi, we have a faxserver with Asterisk, IAXModem and Hylafax.
Faxes come from a SIP trunk to Asterisk, then are forwarded throught 5 
IAXModems managed with Hylafax.
Hylafax users can also send faxes to these modems and Asterisk send them 
throught the SIP trunk.
We also have a dedicated modem used only for sending faxes coming from an 
Hylafax dedicated user.

Sometimes Hylafax reports that a modem is wedged and this modem remain wedged 
until we restart IAXModem daemon. When all modems becames wedged the server 
can't send and receive any fax.


IAXmodems do wedge sometimes, and I currently advise users to develop a 
resetmodem (see 'man wedged') to automatically reset the iaxmodem.


It's not clear to me why the iaxmodems sometimes wedge.  It essentially 
means that somewhere the iaxmodem code is either stuck in an endless 
loop, blocking on a read somewhere that shouldn't block, or something of 
that nature.  If you could capture the gdb or strace of an iaxmodem as 
it gets wedged, then that would be most-helpful.


However, I can tell you that the wedging occurs more-frequently in cases 
where there are other problems such as line audio quality issues or lots 
of non-fax numbers being used accidentally.  So your use of SIP (VoIP) 
for what should be a lossless data channel is probably a factor there.


Thanks,

Lee.


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


Re: [asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes wedged for hylafax

2013-07-05 Thread Gianni Fioretta
First of all, thanks for the response :)
Noticed are ok, I've added maxregexpire=300 in iax.conf, as shown below...

We use ubuntu 12.04, asterisk was installed from its repository:
srv-faxserver*CLI core show version
Asterisk 1.8.10.1~dfsg-1ubuntu1 built by buildd @ yellow on a x86_64 running 
Linux on 2012-04-24 12:47:04 UTC


Here configuration files:

 :: iax.conf ::

[general]
disallow=all
allow=alaw
bindport=4569 
bindaddr=127.0.0.1
language=it 
srvlookup=yes
maxregexpire=300
[modem1] 
type=friend 
context=fax 
disallow=all 
allow=alaw 
username=modem1 
secret=
qualify=yes 
notransfer=yes 
host=dynamic 
callerid=Fax XX
requirecalltoken=no
[modem2] 
type=friend 
context=fax 
disallow=all 
allow=alaw 
username=modem2 
secret=***
qualify=yes 
notransfer=yes 
host=dynamic 
callerid=Fax XX
requirecalltoken=no
[modem3] 
type=friend 
context=fax 
disallow=all 
allow=alaw 
username=modem3 
secret=**
qualify=yes 
notransfer=yes 
host=dynamic 
callerid=Fax XX
requirecalltoken=no
[modem4] 
type=friend 
context=fax 
disallow=all 
allow=alaw 
username=modem4 
secret=***
qualify=yes 
notransfer=yes 
host=dynamic 
callerid=Fax XX
requirecalltoken=no
[modem5] 
type=friend 
context=fax 
disallow=all 
allow=alaw 
username=modem5 
secret=*
qualify=yes 
notransfer=yes 
host=dynamic 
callerid=Fax XX
requirecalltoken=no
[modem99] 
type=friend 
context=fax 
disallow=all 
allow=alaw 
username=modem99
secret=***
qualify=yes 
notransfer=yes 
host=dynamic 
callerid=Fax XX
requirecalltoken=no


 :: sip.conf ::

[centralino]
secret=*
dtmfmode=rfc2833
canreinvite=no
context=default
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
disallow=all
allow=alaw


- Messaggio originale -
 Da: James Cloos cl...@jhcloos.com
 A: Gianni Fioretta gianni.fiore...@yetopen.it
 Cc: Asterisk-users asterisk-users@lists.digium.com
 Inviato: Giovedì, 4 luglio 2013 23:16:11
 Oggetto: Re: [asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes 
 wedged for hylafax
 
  GF == Gianni Fioretta gianni.fiore...@yetopen.it writes:
 
 GF -- Executing [0224300258@fax:1] Dial(IAX2/modem2-3460,
 SIP/centralino/0224300258) in new stack
 GF   == Using SIP RTP CoS mark 5
 GF -- Called SIP/centralino/0224300258
 GF -- SIP/centralino-0284 is making progress passing it to
 IAX2/modem2-3460
 GF -- SIP/centralino-0284 is ringing
 GF -- SIP/centralino-0284 is making progress passing it to
 IAX2/modem2-3460
 GF -- SIP/centralino-0283 is making progress passing it to
 IAX2/modem4-8449
 GF -- SIP/centralino-0283 is ringing
 GF -- SIP/centralino-0283 is making progress passing it to
 IAX2/modem4-8449
 GF -- SIP/centralino-0284 answered IAX2/modem2-3460
 GF [Jul  4 16:49:55] WARNING[22988]: chan_sip.c:9123 process_sdp: Failing
 due to no acceptable offer found
 
 That last line above shows that an outgoing fax attempt failed because
 the sip end wasn't able to negotaiate a codec for that part of the call.
 
 It looks like it was modem2's call which failed; modem4's call seems not
 yet to have been answered.
 
 I don't know whether that is what triggers the wedge, but the failure to
 negotiate a codec for the sip/rtp leg probably is a configuration bug.
 
 Which version of asterisk?  Self compiled or a distribution's version?
 
 The sip.conf and iax.conf might help debug it.  (Elide passwords, of course.)
 
 If you run the conf files through something like:
 
 :; egrep -v '^[[:blank:]]*;' iax.conf|egrep -v '^$' /tmp/short-iax.conf
 
 before editing the password lines it will be easier to read them.
 
 -JimC
 --
 James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6
 

-- 
Gianni Fioretta - gianni.fiore...@yetopen.it

YetOpen S.r.l. - http://www.yetopen.it/
via Carlo Torri Tarelli 19 - 23900 Lecco - ITALY -
Tel 0341 220 205 - Fax 178 6070 222

 D.Lgs. 196/2003 

Si avverte che tutte le informazioni contenute in questo messaggio sono
riservate ed a uso esclusivo del destinatario. Nel caso in cui questo
messaggio Le fosse pervenuto per errore, La invitiamo ad eliminarlo
senza copiarlo, a non inoltrarlo a terzi e ad avvertirci non appena
possibile.
Grazie.

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

Re: [asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes wedged for hylafax

2013-07-05 Thread James Cloos
 GF == Gianni Fioretta gianni.fiore...@yetopen.it writes:

GF disallow=all
GF allow=alaw

Given that, the sip leg will only permit alaw.  The fact that the log
showed no common codec means the other side did not include alaw in
the codecs it offered.

Perhaps for some destinations it will only offer ulaw?

A sip debug or packet trace would show what it offered.

I don't see anything in the iax.conf to explain the deadlock(?).

Perhaps iax debug output, and/or a packet trace of the iax might explain it?

I do recall some posts in the past about issues with sip-iax
conversion.  I don't remember *how* far in the past, or whether
debian/ ubuntu's 1.8 might be affected.

I'd run rasterisk -n in a script session, run 'sip set debug on'
and 'iax2 set debug on' and wait for a modem to stop responding.

(It might be a good idea to run script on a larger box and ssh
into the asterisk box w/in the script session if the asterisk
box has limited storage.  The debug output could get LARGE before
a modem stops.)

The script command is in the bsdutils package (apt-get install bsdutils).

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6

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


[asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes wedged for hylafax

2013-07-04 Thread Gianni Fioretta
Hi, we have a faxserver with Asterisk, IAXModem and Hylafax.
Faxes come from a SIP trunk to Asterisk, then are forwarded throught 5 
IAXModems managed with Hylafax.
Hylafax users can also send faxes to these modems and Asterisk send them 
throught the SIP trunk.
We also have a dedicated modem used only for sending faxes coming from an 
Hylafax dedicated user.

Sometimes Hylafax reports that a modem is wedged and this modem remain wedged 
until we restart IAXModem daemon. When all modems becames wedged the server 
can't send and receive any fax.

We have enabled iax2debug, but no errors appears anyway.

Here's an example of the faxstat hylafax command, modem4 is reported as wedged:
$faxstat -as
HylaFAX scheduler on srv-faxserver.comune.local: Running
Modem ttyIAX4 (): Waiting for modem to come ready
Modem ttyIAX99 (): Running and idlem
Modem ttyIAX3 (): Running and idle0
Modem ttyIAX2 (): Running and idleS
Modem ttyIAX5 (): Running and idlem
Modem ttyIAX1 (): Running and idleS

...but Asterisk reports the modem as ready to work (I think):
srv-faxserver*CLI iax2 show peers
Name/UsernameHost Mask Port  Status
modem3/modem3127.0.0.1   (D)  255.255.255.255  4573  OK (3 ms) 
modem2/modem2127.0.0.1   (D)  255.255.255.255  4572  OK (3 ms) 
modem1/modem1127.0.0.1   (D)  255.255.255.255  4571  OK (3 ms) 
modem5/modem5127.0.0.1   (D)  255.255.255.255  4575  OK (3 ms) 
modem4/modem4127.0.0.1   (D)  255.255.255.255  4574  OK (1 ms) 
modem99/modem99  127.0.0.1   (D)  255.255.255.255  4599  OK (3 ms) 
6 iax2 peers [6 online, 0 offline, 0 unmonitored]

Last call for the modem4 in asterisk log:
[Jul  4 16:49:00] NOTICE[22999]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem1' to 60 seconds (requested 300)
[Jul  4 16:49:06] NOTICE[22991]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem2' to 60 seconds (requested 300)
[Jul  4 16:49:07] NOTICE[22995]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem99' to 60 seconds (requested 300)
[Jul  4 16:49:07] NOTICE[23000]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem3' to 60 seconds (requested 300)
[Jul  4 16:49:10] NOTICE[22995]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem5' to 60 seconds (requested 300)
-- Hungup 'IAX2/modem1-11301'
  == Spawn extension (default, 224966905, 1) exited non-zero on 
'SIP/centralino-0282'
[Jul  4 16:49:15] NOTICE[22998]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem4' to 60 seconds (requested 300)
-- Accepting AUTHENTICATED call from 127.0.0.1:
requested format = alaw,
requested prefs = (),
actual format = alaw,
host prefs = (alaw),
priority = mine
-- Executing [022483278@fax:1] Dial(IAX2/modem4-8449, 
SIP/centralino/022483278) in new stack
  == Using SIP RTP CoS mark 5
-- Called SIP/centralino/022483278
-- Accepting AUTHENTICATED call from 127.0.0.1:
requested format = alaw,
requested prefs = (),
actual format = alaw,
host prefs = (alaw),
priority = mine
-- Executing [0224300258@fax:1] Dial(IAX2/modem2-3460, 
SIP/centralino/0224300258) in new stack
  == Using SIP RTP CoS mark 5
-- Called SIP/centralino/0224300258
-- SIP/centralino-0284 is making progress passing it to IAX2/modem2-3460
-- SIP/centralino-0284 is ringing
-- SIP/centralino-0284 is making progress passing it to IAX2/modem2-3460
-- SIP/centralino-0283 is making progress passing it to IAX2/modem4-8449
-- SIP/centralino-0283 is ringing
-- SIP/centralino-0283 is making progress passing it to IAX2/modem4-8449
-- SIP/centralino-0284 answered IAX2/modem2-3460
[Jul  4 16:49:55] WARNING[22988]: chan_sip.c:9123 process_sdp: Failing due to 
no acceptable offer found
[Jul  4 16:49:55] NOTICE[22991]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem1' to 60 seconds (requested 300)
[Jul  4 16:50:01] NOTICE[22995]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem2' to 60 seconds (requested 300)
[Jul  4 16:50:02] NOTICE[23000]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem99' to 60 seconds (requested 300)
[Jul  4 16:50:02] NOTICE[22994]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem3' to 60 seconds (requested 300)
[Jul  4 16:50:05] NOTICE[22995]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem5' to 60 seconds (requested 300)
[Jul  4 16:50:10] NOTICE[23000]: chan_iax2.c:8775 update_registry: Restricting 
registration for peer 'modem4' to 60 seconds (requested 300)

I hope you can help me to understand if the problem is Asterisk or something 
else.
I'm not an Asterisk expert, so I can't read every 

Re: [asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes wedged for hylafax

2013-07-04 Thread James Cloos
 GF == Gianni Fioretta gianni.fiore...@yetopen.it writes:

GF [Jul  4 17:45:03] NOTICE[22995]: chan_iax2.c:8775 update_registry: 
Restricting registration for peer 'modem99' to 60 seconds (requested 300)

GF is that right?

When iaxmodem registers with asterisk, it defaults to asking that the
registration last 300 seconds.  Asterisk defaults to permiting only 60
seconds per registration.

You can eliminate that notice by configuring both sides with the same
duration.

In the iaxmodem config files, add a line:

refresh 60

to make iaxmodem ask for 60 seconds.

Alternatively, change the maxregexpire setting in asterisk's iax.conf
(in the [general] section) topermit values at least as large as 300 seconds.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6

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


Re: [asterisk-users] Asterisk + iaxmodem + hylafax makes sometimes wedged for hylafax

2013-07-04 Thread James Cloos
 GF == Gianni Fioretta gianni.fiore...@yetopen.it writes:

GF -- Executing [0224300258@fax:1] Dial(IAX2/modem2-3460, 
SIP/centralino/0224300258) in new stack
GF   == Using SIP RTP CoS mark 5
GF -- Called SIP/centralino/0224300258
GF -- SIP/centralino-0284 is making progress passing it to 
IAX2/modem2-3460
GF -- SIP/centralino-0284 is ringing
GF -- SIP/centralino-0284 is making progress passing it to 
IAX2/modem2-3460
GF -- SIP/centralino-0283 is making progress passing it to 
IAX2/modem4-8449
GF -- SIP/centralino-0283 is ringing
GF -- SIP/centralino-0283 is making progress passing it to 
IAX2/modem4-8449
GF -- SIP/centralino-0284 answered IAX2/modem2-3460
GF [Jul  4 16:49:55] WARNING[22988]: chan_sip.c:9123 process_sdp: Failing due 
to no acceptable offer found

That last line above shows that an outgoing fax attempt failed because
the sip end wasn't able to negotaiate a codec for that part of the call.

It looks like it was modem2's call which failed; modem4's call seems not
yet to have been answered.

I don't know whether that is what triggers the wedge, but the failure to
negotiate a codec for the sip/rtp leg probably is a configuration bug.

Which version of asterisk?  Self compiled or a distribution's version?

The sip.conf and iax.conf might help debug it.  (Elide passwords, of course.)

If you run the conf files through something like:

:; egrep -v '^[[:blank:]]*;' iax.conf|egrep -v '^$' /tmp/short-iax.conf

before editing the password lines it will be easier to read them.

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6

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


Re: [asterisk-users] Asterisk and hylafax: how to debug ...

2013-05-23 Thread Sebastian Niehaus
Am 08.05.2013 01:12, schrieb James Cloos:
 SN == Sebastian Niehaus nieh...@web.de writes:
 
 SN Running Asterisk (version: 1.8.13.1~dfsg-3) on Debian Wheezy. On the
 SN same maschine: Hylafax fax server. I want hylafax to use t38modem (a
 SN virtual T.38 modem) for sending faxes. t38modem schould connect to
 SN asterisk on the same host.
 
 SN If hylafax sends a fax it should use t38modem which ist connected to
 SN asterisk. Asterik is expected to establish an outbound connection to my
 SN SIP provider which supports T38. The asterisk box is behind nat.
 
 Silly question:  

Not so silly ...

 If you want to use T38 to the remote provider, and have
 t38modem, do you /need/ the asterisk in the middle?

The hylafax server is behind NAT and I did not succeed to get t38modem
running behind NAT. So I wanted to give asterisk a try since it has some
features to make it work behind a natted connection.


 And if you /do/ need something between the two, might a sip proxy work
 better than a pbx

I am behind a IAD which does NAT. I cannot install my own software on
the IAD. Therefore I did nit consider a SIP proxy.


Thanks!


Sebastian



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


Re: [asterisk-users] Asterisk and hylafax: how to debug ...

2013-05-09 Thread Karsten Wemheuer
Hi,

Am Dienstag, den 07.05.2013, 21:48 +0200 schrieb Sebastian Niehaus:
 Am 07.05.2013 18:23, schrieb Sebastian Niehaus:
 
  For some reason, t38modem tells hylafax the line is BUSY so there is no
  fax send.
 
 Well, I may add the log of t38modem (sorry for the ugly formatting)
 Parts I consider as most important are:
 
 
  ModemConnection::SetUpConnection dstNum=189659 srcNum=30 srcName=root
 
 ... denied (all modems busy)

[ snip ]

it seems to me, that the call is routed from the modem to the
modem (and not to asterisk). t38modem has some config options for call
routing. Something like:
route=modem:.*=sip:dn@ip:port
route=sip:.*=modem:dn

The first rule routes calls from the modem to a sip destination. I think
in Your setup it should be route=modem:.*=sip:dn@127.0.0.1:5060. (I
never used localhost in a setup like this, it should work with the IP of
Your ethernet too).

HTH,

Karsten



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


[asterisk-users] Asterisk and hylafax: how to debug ...

2013-05-07 Thread Sebastian Niehaus
Hi,

I hope you might give me some hints on how to find where my
configuration is wrong, I am new to Asterisk and do not know, how to
find the problem.


Running Asterisk (version: 1.8.13.1~dfsg-3) on Debian Wheezy. On the
same maschine: Hylafax fax server. I want hylafax to use t38modem (a
virtual T.38 modem) for sending faxes. t38modem schould connect to
asterisk on the same host.

If hylafax sends a fax it should use t38modem which ist connected to
asterisk. Asterik is expected to establish an outbound connection to my
SIP provider which supports T38. The asterisk box is behind nat.

For some reason, t38modem tells hylafax the line is BUSY so there is no
fax send.
I don't know why there is a busy signal, maybe the call forwarding
configuration is wrong, maybe the registration on my SIP provider fails,
maybe ?

I simply don't know how to debug what's going on. If Asterix trying to
establish an outgoing connection ... Maybe you can help to enlighten me :-)



-[ sip.conf ]--


[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
localnet=192.168.0.0/255.255.255.0
localnet=127.0.0.1
externhost=hostname.no-ip.org
;disallow=all
;allow=ulaw
;allow=alaw
language=de
nat=yes


; incoming
register = 495361000:passw...@sip.1und1.de/495361000






; local SIP-Account where t30modem registers
[30]
callerid=T38modem30
host=dynamic
;domain=127.0.0.1
;host=  127.0.0.1
:permit=127.0.0.1
user=30
secret=password
type=friend
;mailbox=30
nat=no
context=fax_out
;port=6060
canreinvite=no
t38pt_udptl=yes





[20]
; FritzBox
; this is an ATA, but this entry is
; probably not needed; the ATA does not register
; a SIP account on asterisk.
callerid=FritzBox20
type=friend
username=20
secret=password
host=192.168.0.222
fromuser=20
canreinvite=no
qualify=no
disallow=all
allow=alaw
allow=ulaw
;allow=ilbc
allow=g726
;allow=g729
allow=gsm
;insecure=very
nat=no
dtmfmode=info
;tos=0x18






; Outgoing calls to my SIP provider
[495361000]

type=friend
username=495361000
secret=password
host=sip.1und1.de
fromuser=495361000
canreinvite=no
qualify=no
disallow=all
allow=alaw
allow=ulaw
;allow=ilbc
allow=g726
;allow=g729
allow=gsm
;insecure=very
nat=yes
dtmfmode=info
tos=0x18


-[ end of sip.conf ]---


-[ extensions.conf ]---


[general]
static=yes
writeprotect=no




[1und1-fax-out]
exten = _0.,1,Dial,SIP/${EXTEN}@495361000|45|r


[default]
include = 1und1-fax-out

-[ end of extensions.conf ]




Any idea what might be wrong?


Thank you very much!


Sebastian


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


Re: [asterisk-users] Asterisk and hylafax: how to debug ...

2013-05-07 Thread Sebastian Niehaus
Am 07.05.2013 18:23, schrieb Sebastian Niehaus:

 For some reason, t38modem tells hylafax the line is BUSY so there is no
 fax send.

Well, I may add the log of t38modem (sorry for the ugly formatting)
Parts I consider as most important are:


 ModemConnection::SetUpConnection dstNum=189659 srcNum=30 srcName=root

... denied (all modems busy)

SIP OnSetUp failed for INVITE from sip:06814003340@127.0.0.1:6060
for Call[Cf64671db22]-EPsip
ModemConnection::OnReleased Call -EPmodem[modem:/C8670792521/0] (Call
cleared because the line is out of service)



Thanks for any suggestions 


here is all the log:
---

2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 -- AT+FCLASS=1
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 --  {
  0d 0a 4f 4b 0d 0a  ..OK.. }
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 -- ATDT0681/4003340
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700
ModemEndPoint::OnMyCallback command=dial extra=5
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 PseudoModemQ::Dequeue
ttyT38-0
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700 MyManager::OnMyCallback
SetUpCall(modem:, 06814003340@+/dev/ttyT38-0)
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700
ModemEndPoint::MakeConnection modem:
2013/05/07 21:30:03.574 ttyT38-0(e...0xb1778700
ModemConnection::SetUpConnection
Call[Cdd70c36e1]-EPmodem[modem:/Cdd70c36e1/0]
Call[Cdd70c36e1] from modem:T38modem to 06814003340@+/dev/ttyT38-0,
route to sip:06814003340@127.0.0.1:6060
2013/05/07 21:30:03.575 ttyT38-0(e...0xb1778700 Call[Cdd70c36e1] from
modem:T38modem to 06814003340@+/dev/ttyT38-0, route to
sip:06814003340@127.0.0.1:6060
2013/05/07 21:30:03.576 ttyT38-0(e...0xb1778700
ModemEndPoint::GetMediaFormats
2013/05/07 21:30:03.585 ttyT38-0(e...0xb1778700
ModemEndPoint::OnMyCallback request={
calltoken=modem:/Cdd70c36e1/0
localpartyname=
command=dial
response=confirm
number=06814003340
modemtoken=ttyT38-0
}
2013/05/07 21:30:03.588 Pool:0xb1674700
ModemEndPoint::MakeConnection modem:06814003340
Call[C8e34455a2] from sip:06814003340@127.0.0.1:6060 to
sip:06814003340@127.0.0.1:6060, route to modem:06814003340
2013/05/07 21:30:03.588 Pool:0xb1674700 Call[C8e34455a2] from
sip:06814003340@127.0.0.1:6060 to sip:06814003340@127.0.0.1:6060, route
to modem:06814003340
2013/05/07 21:30:03.588 Pool:0xb1674700
ModemEndPoint::GetMediaFormats
2013/05/07 21:30:03.593 Pool:0xb1674700
ModemConnection::SetUpConnection
Call[C8e34455a2]-EPmodem[modem:06814003340/C8e34455a2/0]
2013/05/07 21:30:03.593 Pool:0xb1674700
ModemConnection::SetUpConnection dstNum=06814003340 srcNum=30
srcName=root ...
2013/05/07 21:30:03.593 Pool:0xb1674700 ... denied (all modems busy)
2013/05/07 21:30:03.593 Pool:0xb1674700
ModemConnection::OnReleased
Call[C8e34455a2]-EPmodem[modem:06814003340/C8e34455a2/0]
2013/05/07 21:30:03.593 Pool:0xb1674700 SIP OnSetUp failed
for INVITE from sip:06814003340@127.0.0.1:6060 for
Call[C8e34455a2]-EPsip[b8e7402f-bab5-e211-972b-6c626db69c09]
2013/05/07 21:30:03.596OnRelease:0xb15b1700
ModemConnection::OnReleased Call[Cdd70c36e1]-EPmodem[modem:/Cdd70c36e1/0]
Call[Cdd70c36e1] cleared (Call cleared because the line is out of service)
2013/05/07 21:30:03.596OnRelease:0xb15b1700 Call[Cdd70c36e1] cleared
(EndedByOutOfService)
Call[C8e34455a2] cleared (Local party cleared call)
2013/05/07 21:30:03.695OnRelease:0xb15f2700 Call[C8e34455a2] cleared
(EndedByLocalUser)
2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine Attach
2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine
OnAttach Attached
2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine
OnResetModemState
2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine
ChangeModemClass to mcFax
2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700 ttyT38-0 AudioEngine
OnChangeModemClass to mcFax
2013/05/07 21:30:04.229 Opal Garbage:0xc71ba700
ModemEngineBody::_AttachEngine Attached mceAudio
2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine Detach
2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine
OnChangeModemClass to mcUndefined
2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine
OnDetach Detached
2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 ttyT38-0 AudioEngine
OnResetModemState
2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700
ModemEngineBody::_DetachEngine Detached mceAudio
2013/05/07 21:30:04.229 ttyT38-0(e...0xb1778700 --  {
  0d 0a 42 55 53 59 0d 0a..BUSY.. }


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


Re: [asterisk-users] Asterisk and hylafax: how to debug ...

2013-05-07 Thread James Cloos
 SN == Sebastian Niehaus nieh...@web.de writes:

SN Running Asterisk (version: 1.8.13.1~dfsg-3) on Debian Wheezy. On the
SN same maschine: Hylafax fax server. I want hylafax to use t38modem (a
SN virtual T.38 modem) for sending faxes. t38modem schould connect to
SN asterisk on the same host.

SN If hylafax sends a fax it should use t38modem which ist connected to
SN asterisk. Asterik is expected to establish an outbound connection to my
SN SIP provider which supports T38. The asterisk box is behind nat.

Silly question:  If you want to use T38 to the remote provider, and have
t38modem, do you /need/ the asterisk in the middle?

And if you /do/ need something between the two, might a sip proxy work
better than a pbx?

-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6

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


Re: [hylafax-users] [asterisk-users] asterisk, iaxmodem, hylafax quality problem

2006-11-09 Thread Artifex Maximus

Hello,

Sorry for returning such an old topic but it looks like I found a
solution. I am using FC5 on an IBM x206 with TDM2400P and TE405P.

Using this general guide:
http://www-128.ibm.com/developerworks/library/l-hw2.html
and this hint
http://pastebin.ca/32678

I had put pastebin.ca stuff into /etc/rc.d/rc.local and my problems
are gone. The zttest gives lower values but more stable:

Opened pseudo zap interface, measuring accuracy...
99.975586% 99.975586% 99.975586% 99.975586% 99.975586% 99.975586% 99.975586%
99.975586% 99.975586% 99.975586% 99.975586% 99.975586% 99.975586%
99.975586% 99.975586%
99.975586% 99.975586% 99.975586%
--- Results after 18 passes ---
Best: 99.975586 -- Worst: 99.975586 -- Average: 99.975586

bye,
Zsolt

On 9/24/06, Lee Howard [EMAIL PROTECTED] wrote:

Artifex Maximus wrote:

 zttest is often on 99.975586% with final result:
 --- Results after 67 passes ---
 Best: 99.987793 -- Worst: 99.951172 -- Average: 99.973764


This is unacceptable for faxing, and it is evidence of the underlying
problem also causing your faxes to come through with poor quality.

  0: 2087872259IO-APIC-edge  timer
  7:  0IO-APIC-edge  parport0
  8:  1IO-APIC-edge  rtc
  9:  1   IO-APIC-level  acpi
 14:   18440124IO-APIC-edge  ide0
 15:4456445IO-APIC-edge  libata
 169:4878102   IO-APIC-level  eth0
 177: 2086847525   IO-APIC-level  wctdm24xxp
 185: 2086810653   IO-APIC-level  wct4xxp


Notice the priorities here... and that your Zaptel cards come *last*,
after eth0, after IDE.  Each of those Zap cards are going to generate an
interrupt once every millisecond when in use.  You can hopefully imagine
how IDE or eth0 activity would interfere, since they have a higher
priority than the Zap cards.

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: [hylafax-users] [asterisk-users] asterisk, iaxmodem, hylafax quality problem

2006-09-24 Thread Artifex Maximus

Hello,

# cat /proc/interrupts
  CPU0
 0: 2087872259IO-APIC-edge  timer
 7:  0IO-APIC-edge  parport0
 8:  1IO-APIC-edge  rtc
 9:  1   IO-APIC-level  acpi
14:   18440124IO-APIC-edge  ide0
15:4456445IO-APIC-edge  libata
169:4878102   IO-APIC-level  eth0
177: 2086847525   IO-APIC-level  wctdm24xxp
185: 2086810653   IO-APIC-level  wct4xxp
NMI:  0
LOC: 2087921792
ERR:  0
MIS:  0

zttest is often on 99.975586% with final result:
--- Results after 67 passes ---
Best: 99.987793 -- Worst: 99.951172 -- Average: 99.973764

Where should I find good web pages for tuning? I had found this and using now:
setpci -v -s 04:06.0 latency_timer=ff
setpci -v -s 04:08.0 latency_timer=ff

As I remember it's give higher priority for Digium cards. The machine
is an IBM eServer x206 with P4 2.66 GHz processor.

bye,
Zsolt

On 9/23/06, Ma Zhiyong [EMAIL PROTECTED] wrote:

zttest don't disturb your other active calls. when you have 10-20
calls maybe got a better score.
also cat /proc/interrupt and 'lspci -vb' to find any IRQ interrupt on
your system.

2006/9/22, Artifex Maximus [EMAIL PROTECTED]:
 Hello,

 On 9/21/06, Lee Howard [EMAIL PROTECTED] wrote:
  Artifex Maximus wrote:
 
   Everything is fine when caller use ECM but when ECM isn't in use I
   often got unusable incoming faxes (much often that it should be). But
   when I switch back to fax machine that receive faxes perfectly (at
   least no visible error).
  The fax machine itself uses ECM, undoubtedly.
 That's unfortunately not the case. The remote doesn't asks for ECM so
 that's disabled or missing on that machine. In this situation fax
 machine is produce better output and I don't know why. Might a better
 DSP algo?

  If callers that have
  quality problems with IAXmodem+HylaFAX don't have problems with the fax
  machine, then that strongly indicates that something is wrong with your
  Asterisk setup... corrupting the audio.  Usually this is due to resource
  constriction of the Zap device, zttest scores less than 99.98% is
  indicative of that situation.
 I don't find any info that zttest is destructive or not on an active
 system. I mean that currently active calls are disturbed or not while
 zttest running. I can't stop system now. I look into zttest source and
 find that zttest is using /dev/zap/pseudo but I don't know this
 'pseudo' channel is related to any 'real' channel or not.

   Where should be the problem? Is there any solution for improving
   quality? Any tuning in Asterisk or Hylafax? As I see some people use
   slinear for iaxmodem and some user use alaw. Which is better?
  There is no functional difference between using uLaw, alaw, or
  slinear... except that using slinear reduces the need for conversion...
  and thus possibly lessens CPU usage very slightly.
 I see. I leave it on slinear.

 bye,
 Zsolt

___
--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: [hylafax-users] [asterisk-users] asterisk, iaxmodem, hylafax quality problem

2006-09-24 Thread Lee Howard

Artifex Maximus wrote:


zttest is often on 99.975586% with final result:
--- Results after 67 passes ---
Best: 99.987793 -- Worst: 99.951172 -- Average: 99.973764



This is unacceptable for faxing, and it is evidence of the underlying 
problem also causing your faxes to come through with poor quality.



 0: 2087872259IO-APIC-edge  timer
 7:  0IO-APIC-edge  parport0
 8:  1IO-APIC-edge  rtc
 9:  1   IO-APIC-level  acpi
14:   18440124IO-APIC-edge  ide0
15:4456445IO-APIC-edge  libata
169:4878102   IO-APIC-level  eth0
177: 2086847525   IO-APIC-level  wctdm24xxp
185: 2086810653   IO-APIC-level  wct4xxp 



Notice the priorities here... and that your Zaptel cards come *last*, 
after eth0, after IDE.  Each of those Zap cards are going to generate an 
interrupt once every millisecond when in use.  You can hopefully imagine 
how IDE or eth0 activity would interfere, since they have a higher 
priority than the Zap cards.


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: [hylafax-users] [asterisk-users] asterisk, iaxmodem, hylafax quality problem

2006-09-24 Thread Jay R. Ashworth
On Sun, Sep 24, 2006 at 02:01:01PM -0700, Lee Howard wrote:
 Artifex Maximus wrote:
 zttest is often on 99.975586% with final result:
 --- Results after 67 passes ---
 Best: 99.987793 -- Worst: 99.951172 -- Average: 99.973764
 
 This is unacceptable for faxing, and it is evidence of the underlying 
 problem also causing your faxes to come through with poor quality.
 
  0: 2087872259IO-APIC-edge  timer
  7:  0IO-APIC-edge  parport0
  8:  1IO-APIC-edge  rtc
  9:  1   IO-APIC-level  acpi
 14:   18440124IO-APIC-edge  ide0
 15:4456445IO-APIC-edge  libata
 169:4878102   IO-APIC-level  eth0
 177: 2086847525   IO-APIC-level  wctdm24xxp
 185: 2086810653   IO-APIC-level  wct4xxp 
 
 Notice the priorities here... and that your Zaptel cards come *last*, 
 after eth0, after IDE.  Each of those Zap cards are going to generate an 
 interrupt once every millisecond when in use.  You can hopefully imagine 
 how IDE or eth0 activity would interfere, since they have a higher 
 priority than the Zap cards.

The Digium cards interrupt *on every scheduler tick*?

Is that a latency thing?  or just sloppy design?

Cheers,
-- jra
-- 
Jay R. Ashworth[EMAIL PROTECTED]
Designer  Baylink RFC 2100
Ashworth  AssociatesThe Things I Think'87 e24
St Petersburg FL USA  http://baylink.pitas.com +1 727 647 1274

That's women for you; you divorce them, and 10 years later,
  they stop having sex with you.  -- Jennifer Crusie; _Fast_Women_
___
--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: [hylafax-users] [asterisk-users] asterisk, iaxmodem, hylafax quality problem

2006-09-22 Thread Artifex Maximus

Hello,

On 9/21/06, Lee Howard [EMAIL PROTECTED] wrote:

Artifex Maximus wrote:

 Everything is fine when caller use ECM but when ECM isn't in use I
 often got unusable incoming faxes (much often that it should be). But
 when I switch back to fax machine that receive faxes perfectly (at
 least no visible error).
The fax machine itself uses ECM, undoubtedly.

That's unfortunately not the case. The remote doesn't asks for ECM so
that's disabled or missing on that machine. In this situation fax
machine is produce better output and I don't know why. Might a better
DSP algo?


If callers that have
quality problems with IAXmodem+HylaFAX don't have problems with the fax
machine, then that strongly indicates that something is wrong with your
Asterisk setup... corrupting the audio.  Usually this is due to resource
constriction of the Zap device, zttest scores less than 99.98% is
indicative of that situation.

I don't find any info that zttest is destructive or not on an active
system. I mean that currently active calls are disturbed or not while
zttest running. I can't stop system now. I look into zttest source and
find that zttest is using /dev/zap/pseudo but I don't know this
'pseudo' channel is related to any 'real' channel or not.


 Where should be the problem? Is there any solution for improving
 quality? Any tuning in Asterisk or Hylafax? As I see some people use
 slinear for iaxmodem and some user use alaw. Which is better?
There is no functional difference between using uLaw, alaw, or
slinear... except that using slinear reduces the need for conversion...
and thus possibly lessens CPU usage very slightly.

I see. I leave it on slinear.

bye,
Zsolt
___
--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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Artifex Maximus

Hello,

My setup is PRI card, Asterisk, iaxmodem, hylafax or PRI card,
Asterisk, channel bank, fax machine. I'm using Fedora Core 4, iaxmodem
0.1.14, hylafax 4.3.0, asterisk 1.2.10.

Everything is fine when caller use ECM but when ECM isn't in use I
often got unusable incoming faxes (much often that it should be). But
when I switch back to fax machine that receive faxes perfectly (at
least no visible error).

Where should be the problem? Is there any solution for improving
quality? Any tuning in Asterisk or Hylafax? As I see some people use
slinear for iaxmodem and some user use alaw. Which is better?

What config should I post if that needed for ideas?

bye,
Zsolt
___
--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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Ma Zhiyong
Are you use digium card?
digium pri card offen cause many problems, check zttest___
--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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Doug Lytle

Artifex Maximus wrote:

Hello,

Everything is fine when caller use ECM but when ECM isn't in use I
often got unusable incoming faxes (much often that it should be). But
when I switch back to fax machine that receive faxes perfectly (at
least no visible error).

Where should be the problem? Is there any solution for improving


This belongs on the HylaFAX mailing list.

Doug

--

Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary Safety, 
deserve neither Liberty nor Safety.


___
--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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Artifex Maximus

Hello,

On 9/21/06, Doug Lytle [EMAIL PROTECTED] wrote:

Artifex Maximus wrote:
 Hello,

 Everything is fine when caller use ECM but when ECM isn't in use I
 often got unusable incoming faxes (much often that it should be). But
 when I switch back to fax machine that receive faxes perfectly (at
 least no visible error).

 Where should be the problem? Is there any solution for improving

This belongs on the HylaFAX mailing list.

OK, sorry. That's why I post there as well. I don't really know where
is the problem or where should I improve something for better result.
Might in Asterisk channel setup might in iaxmodem codec setup or might
in Hylafax setup.

bye,
Zsolt
___
--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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Artifex Maximus

Hello,

On 9/21/06, Ma Zhiyong [EMAIL PROTECTED] wrote:

Are you use digium card?
digium pri card offen cause many problems, check zttest

Yes, it's a T405P.

Is zttest disturb the current calls or might works in parallel with
calls? Because it's very busy in worktime. And what should I look for
on result?

bye,
Zsolt
___
--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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Lee Howard

Artifex Maximus wrote:


Everything is fine when caller use ECM but when ECM isn't in use I
often got unusable incoming faxes (much often that it should be). But
when I switch back to fax machine that receive faxes perfectly (at
least no visible error).



The fax machine itself uses ECM, undoubtedly.  If callers that have 
quality problems with IAXmodem+HylaFAX don't have problems with the fax 
machine, then that strongly indicates that something is wrong with your 
Asterisk setup... corrupting the audio.  Usually this is due to resource 
constriction of the Zap device, zttest scores less than 99.98% is 
indicative of that situation.



Where should be the problem? Is there any solution for improving
quality? Any tuning in Asterisk or Hylafax? As I see some people use
slinear for iaxmodem and some user use alaw. Which is better? 



There is no functional difference between using uLaw, alaw, or 
slinear... except that using slinear reduces the need for conversion... 
and thus possibly lessens CPU usage very slightly.


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] asterisk, iaxmodem, hylafax quality problem

2006-09-21 Thread Jay R. Ashworth
On Thu, Sep 21, 2006 at 09:34:32AM -0700, Lee Howard wrote:
 Artifex Maximus wrote:
 Everything is fine when caller use ECM but when ECM isn't in use I
 often got unusable incoming faxes (much often that it should be). But
 when I switch back to fax machine that receive faxes perfectly (at
 least no visible error).
 
 The fax machine itself uses ECM, undoubtedly.  If callers that have 
 quality problems with IAXmodem+HylaFAX don't have problems with the fax 
 machine, then that strongly indicates that something is wrong with your 
 Asterisk setup... corrupting the audio.  Usually this is due to resource 
 constriction of the Zap device, zttest scores less than 99.98% is 
 indicative of that situation.

Oh, of *course* you're here, too. 

:-)

Cheers,
-- jra
-- 
Jay R. Ashworth[EMAIL PROTECTED]
Designer  Baylink RFC 2100
Ashworth  AssociatesThe Things I Think'87 e24
St Petersburg FL USA  http://baylink.pitas.com +1 727 647 1274

That's women for you; you divorce them, and 10 years later,
  they stop having sex with you.  -- Jennifer Crusie; _Fast_Women_
___
--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] Asterisk IAXmodem HylaFax?

2006-08-11 Thread Damon Estep








According to the wiki page http://www.voip-info.org/wiki/view/Asterisk+IAXmodem



There are a couple of ways to integrate Asterisk and HylaFax
with IAXmodem;




 IAXmodem as HylaFax modem,
 both HylaFax and Asterisk on the same machine 
 IAXmodem in conjunction with
 termnetd+ttyd from the termpkg package (HylaFax and IAXmodem on distant
 machines) 


Does anyone have any experience
that they would be willing to share with the load and/or other performance caveats
using termnetd+ttyd to connect call origination on an Asterisk box with HylaFax
on another box?

Is it better to just get another
PRI and card and run another instance of Asterisk on the HylaFax box, or is the
combination of IAXmodem, termnetd, and ttyd lightweight enough to not have this
concern?

Thanks.








___
--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] Asterisk IAXmodem HylaFax?

2006-08-11 Thread Colin Anderson



I run 
HylaFAX on a separate box from my dual PRI Asterisk box, and Asterisk relays the 
call to HylaFAX when it detects the fax. It relays the call on a private subnet 
with a crossover Ethernet cable with the slin codec. I have over 200 IAXmodems 
running on the HylaFAX box, which is an underclocked Athlon 64 running CentOS 
with a terabyte RAID5 array. HylaFAX automatically converts the fax to PDF and 
emails it to the enduser. Mail to fax works fine as well, except my Exchange 
server mungs the mimetype so it chokes on attachment conversion from Exchange, 
still trying to figure that one out. Fax volume is 100-500 faxes a day from a 
couple thousand potential senders, with areject rate well under 1%. Load 
average on the HylaFAX box is usually like 0.01 or 2, with only 256 meg RAM 
consumed on the server for HylaFAX, sendmail, the usual suspects running. 
Overall, an outstanding solution that was done for a couple grand. Heap praises 
on Lee Howard and Steve Underwood for IAXModem and the SpanDSP libraries which 
made this possible. (I know they read these lists so I don't mind buttering 
their bread) 

One 
unusual thing I had to do was to get my reject rate below 1% I had to alter the 
Ethernet txqueuelen parameter to 2000 from the stock 1000. Otherwise, works like 
a champ and it's a set-it and forget-it solution. It's been up for 6 months now 
without a reboot or any maintenance at all (you can afford to be lazy about log 
rotation and such when you have a terabyte to play with). Contrast this with our 
Windows Zetafax server that requires a weekly reboot plus hand-wringing over 
whether to install weekly patches (and we paid $10K, just for the 
software). The only thing that keeps me from ditching Zetafax is it has a slick 
client that people like to use, unlike the barebones / kooky / 
barely-workingassortment of clients available for Hylafax (Yes, I looked 
at Cypheus. It's crap. Yes I looked at WinHFC. It's good, but 
bare-freakin-bones. Yes, I looked at HylaFSP, slick but the wizards would drive 
my users insane. They just want to send the fax, dammit, not go through 4 or 5 
pages of wizards.)

You 
also said:

"(HylaFax 
and IAXmodem on distant machines)"

If by "distant" 
you mean on a seperate subnet or across the Internet or WAN connection, that 
probably won't work well enough for production use. 


  -Original Message-From: Damon Estep 
  [mailto:[EMAIL PROTECTED]Sent: Friday, August 11, 2006 
  6:42 AMTo: Asterisk Users Mailing List - Non-Commercial 
  DiscussionSubject: [asterisk-users] Asterisk IAXmodem 
  HylaFax?
  
  According to the wiki page http://www.voip-info.org/wiki/view/Asterisk+IAXmodem
  
  There are a couple of ways to 
  integrate Asterisk and HylaFax with IAXmodem;
  
  
IAXmodem as 
HylaFax modem, both HylaFax and Asterisk on the same machine 
IAXmodem in 
conjunction with termnetd+ttyd from the termpkg package (HylaFax and 
IAXmodem on distant machines) 
  Does anyone have any experience 
  that they would be willing to share with the load and/or other performance 
  caveats using termnetd+ttyd to connect call origination on an Asterisk box 
  with HylaFax on another box?
  Is it better to just get another 
  PRI and card and run another instance of Asterisk on the HylaFax box, or is 
  the combination of IAXmodem, termnetd, and ttyd lightweight enough to not have 
  this concern?
  Thanks.
  
___
--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] Asterisk IAXmodem HylaFax?

2006-08-11 Thread Lee Howard

Colin Anderson wrote:

The only thing that keeps me from ditching Zetafax is it has a slick 
client that people like to use, unlike the barebones / kooky / 
barely-working assortment of clients available for Hylafax (Yes, I 
looked at Cypheus. It's crap. Yes I looked at WinHFC. It's good, but 
bare-freakin-bones. Yes, I looked at HylaFSP, slick but the wizards 
would drive my users insane. They just want to send the fax, dammit, 
not go through 4 or 5 pages of wizards.)



I agree with you that all public HylaFAX clients are not good.

My guess is that you could probably do some work to get that slick 
Zetafax client to work with HylaFAX instead of the Zetafax server.  
Years ago I did similar work to get the RelayFax client to work with 
HylaFAX.


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] Asterisk IAXmodem HylaFax?

2006-08-11 Thread Lee Howard

Damon Estep wrote:

According to the wiki page 
http://www.voip-info.org/wiki/view/Asterisk+IAXmodem


 

There are a couple of ways to integrate Asterisk and HylaFax with 
IAXmodem;


 


* IAXmodem as HylaFax modem, both HylaFax and Asterisk on the same
  machine



In my opinion this is the ideal way to run Asterisk+IAXmodem+HylaFAX.  
If your situation does not permit this, then yes, there are alternatives.



* IAXmodem in conjunction with termnetd+ttyd from the termpkg
  package (HylaFax and IAXmodem on distant machines)

Does anyone have any experience that they would be willing to share 
with the load and/or other performance caveats using termnetd+ttyd to 
connect call origination on an Asterisk box with HylaFax on another box?


Is it better to just get another PRI and card and run another instance 
of Asterisk on the HylaFax box, or is the combination of IAXmodem, 
termnetd, and ttyd lightweight enough to not have this concern?




In my experience getting the termnetd/ttyd connection to be resiliant 
(i.e. what does it do if the connectivity drops and then comes back up 
later) is not a trivial matter.


The other alternative, if you have a typical LAN connection between the 
HylaFAX box and the Asterisk box, is to run IAXmodem connections over 
the LAN - so your iaxmodem instances are on the HylaFAX box 
communicating over the LAN with the Asterisk box.  In my experience you 
really shouldn't experience any jitter on a LAN, and if you do then you 
probably have network problems.  I find this to be a better option than 
the termnetd/ttyd option in cases where it can be used (i.e. LANs).


IAXmodem and HylaFAX proper should not cause much load or performance 
degredation at all... so little that you can probably neglect it.  
However, the parts where you do need to worry about load/performance is 
to do with image conversion... what you do with the received TIFF image 
*after* it's received... what kinds of incoming documents are handled 
and how, etc.


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] Asterisk IAXmodem HylaFax?

2006-08-11 Thread Colin Anderson
Actually lately I have been poking around my Visual Studio .NET IDE and
ruminating about writing a client since the FTP protocol HylaFAX uses is
quite well documented; the other advantage with using VS instead of Python
or gtk or whatever is you can leverage the excellent Microsoft ODBC/DAO
plumbing for address books, logging and the like (and a consistient Windows
GUI, which Cypheus for example has in spades, it's just too bad it's so
flaky)

The Zetafax client essentially uses port 139 and submits the .tif to a
Windows share so I don;t think it would be really possible to modify it,
interesting idea though. 

-Original Message-
From: Lee Howard [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 11:36 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk IAXmodem HylaFax?


Colin Anderson wrote:

 The only thing that keeps me from ditching Zetafax is it has a slick 
 client that people like to use, unlike the barebones / kooky / 
 barely-working assortment of clients available for Hylafax (Yes, I 
 looked at Cypheus. It's crap. Yes I looked at WinHFC. It's good, but 
 bare-freakin-bones. Yes, I looked at HylaFSP, slick but the wizards 
 would drive my users insane. They just want to send the fax, dammit, 
 not go through 4 or 5 pages of wizards.)


I agree with you that all public HylaFAX clients are not good.

My guess is that you could probably do some work to get that slick 
Zetafax client to work with HylaFAX instead of the Zetafax server.  
Years ago I did similar work to get the RelayFax client to work with 
HylaFAX.

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


Re: [asterisk-users] Asterisk IAXmodem HylaFax?

2006-08-11 Thread Lee Howard

Colin Anderson wrote:


The Zetafax client essentially uses port 139 and submits the .tif to a
Windows share so I don;t think it would be really possible to modify it,
interesting idea though.



I wasn't talking about modifying the client, but rather working *with* 
the client.


So if the Zetafax client drops files to fax with some information into a 
Samba share, that's great.  Then you write a little utility to take it 
from there and pass it off to HylaFAX.


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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Michiel van Baak
On 08:54, Fri 31 Mar 06, Olivier Krief wrote:
 Why don't everybody use chan-capi ?

All our E1 interface use the zaptel driver, so impossible to
use chan_capi for them.
We use Sangoma cards, and the wanpipe driver for those cards
is a zaptel interface for asterisk, not a capi one.
There is your why?.

-- 
Michiel van Baak
http://michiel.vanbaak.info
[EMAIL PROTECTED]
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7E0B9A2D

Why is it drug addicts and computer afficionados are both called 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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Armin Schindler
On Fri, 31 Mar 2006, Olivier Krief wrote:
 2006/3/31, Armin Schindler [EMAIL PROTECTED]:
 
  Yes, this is possible of course with the Eicon Diva Server PRI (T1) card.
  This card provides a CAPI interface where you can connect Asterisk(with
  chan-capi) and any other CAPI based application like Hylafax.
 
  You can e.g. configure chan-capi to use 20 channels and the remaining
  channels configured in Hylafax.
  When you use a Eicon Diva Server with DSPs on board, you don't need to
  worry
  about CPU power, because fax-receive is done on the DIVA card.
  So you don't need to 'bridge' something here, it just works.
 
  Armin
 
 
 Armin,
 
 Do you mean you could dynamically share E1/T1 channels between Asterisk and
 Hylafax applications ?

Yes, CAPI provides all available controllers (ports) and its channels to 
every application at the same time.

 For example, for each incoming call to a given fax number, Capi driver would
 trigger Hylafax software to process incoming fax and at the same time,
 Asterisk software would be smart enough to use other channels for outgoing
 calls ?

Yes, via the CAPI interface you don't reference a real b-channel, this is 
done by the driver of the ISDN card which provides the CAPI interface.

Using CAPI, the applications can (and have to) decide which calls they want 
to get signaled or which are ignored when they are meant for another 
service. E.g. the following example is not possible with CAPI:
You have one number (and the same BC) for two services assigned. If you are 
using one application, which can switch to another server by some rule, then 
it is okay. But two applications must be configured to serve the own 
numbers/services only.
Another thing is, the application does not know about busy channels. This 
means if you have a 23 channel line and 10 lines are busy with hylafax at 
the moment, then chan-capi (or another application) can use 13 channels 
only, of course. So if you have configured chan-capi with e.g. 15 channels 
to use, chan-capi will just return 'busy : no circuit/channel available'.
But this is all configuration stuff and when configured correctly, it works 
very good.

There are even more capabilities. For example Eicon is doing a lot. Their 
Diva Server cards do provide a RTP interface via CAPI (new chan-capi will 
support this). Which means coding and anti-jitterbuffer is done on the ISDN 
card, chan-capi just 'pushes' the RTP packets onto the card...

With rcapid and a patched version of the libcapi.so, you can even have the 
ISDN hardware on one server and the applications on other servers connected 
via CAPIoverTCP (bintec protocol in that case).
I use this because my faxing application (just the capifaxrecvd) runs on my 
local maschine instead of the ISDN/Asterisk/Gateway server.
 
 If this understanding is correct, what is the downside ?
 Why don't everybody use chan-capi ?

CAPI comes originally from the Windows world, but is a common ISDN API 
standard www.capi.org. So if there would be CAPI drivers for all of these 
ISDN cards, you can use CAPI (chan-capi).
So the missing part is the card-driver. Currently I know of three CAPI based 
hardware:
1) Eicon Diva Server (all cards including analog ports) with full CAPI 2.0 
   and VoIP/T.38 extensions.
2) AVM (basic CAPI 2.0)
3) mISDN driver for passive cards (hscx/hfc/...)
   and on BSD with i4b!



Armin

(www.chan-capi.org ;-)
___
--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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Mike
Armin,

Thanks a lot for the very detailed answer.  I'll have to take a long look at
the CAPI interfaces and see how I can pull all this off, it's all very new
to me, but at least I understand that with an Eicon card, I could share a T1
between Asterisk and Hylafax.  I'm not clear on whether I could receive fax
and voice on the same DID though (if its Fax, Hylafax takes care of it, if
its voice, Asterisk does)...

Mike

  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Armin
Schindler
Sent: March 31, 2006 7:20 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Asterisk and Hylafax, on the same box

On Fri, 31 Mar 2006, Olivier Krief wrote:
 2006/3/31, Armin Schindler [EMAIL PROTECTED]:
 
  Yes, this is possible of course with the Eicon Diva Server PRI (T1)
card.
  This card provides a CAPI interface where you can connect 
  Asterisk(with
  chan-capi) and any other CAPI based application like Hylafax.
 
  You can e.g. configure chan-capi to use 20 channels and the 
  remaining channels configured in Hylafax.
  When you use a Eicon Diva Server with DSPs on board, you don't need 
  to worry about CPU power, because fax-receive is done on the DIVA 
  card.
  So you don't need to 'bridge' something here, it just works.
 
  Armin
 
 
 Armin,
 
 Do you mean you could dynamically share E1/T1 channels between 
 Asterisk and Hylafax applications ?

Yes, CAPI provides all available controllers (ports) and its channels to
every application at the same time.

 For example, for each incoming call to a given fax number, Capi driver 
 would trigger Hylafax software to process incoming fax and at the same 
 time, Asterisk software would be smart enough to use other channels 
 for outgoing calls ?

Yes, via the CAPI interface you don't reference a real b-channel, this is
done by the driver of the ISDN card which provides the CAPI interface.

Using CAPI, the applications can (and have to) decide which calls they want
to get signaled or which are ignored when they are meant for another
service. E.g. the following example is not possible with CAPI:
You have one number (and the same BC) for two services assigned. If you are
using one application, which can switch to another server by some rule, then
it is okay. But two applications must be configured to serve the own
numbers/services only.
Another thing is, the application does not know about busy channels. This
means if you have a 23 channel line and 10 lines are busy with hylafax at
the moment, then chan-capi (or another application) can use 13 channels
only, of course. So if you have configured chan-capi with e.g. 15 channels
to use, chan-capi will just return 'busy : no circuit/channel available'.
But this is all configuration stuff and when configured correctly, it works
very good.

There are even more capabilities. For example Eicon is doing a lot. Their
Diva Server cards do provide a RTP interface via CAPI (new chan-capi will
support this). Which means coding and anti-jitterbuffer is done on the ISDN
card, chan-capi just 'pushes' the RTP packets onto the card...

With rcapid and a patched version of the libcapi.so, you can even have the
ISDN hardware on one server and the applications on other servers connected
via CAPIoverTCP (bintec protocol in that case).
I use this because my faxing application (just the capifaxrecvd) runs on my
local maschine instead of the ISDN/Asterisk/Gateway server.
 
 If this understanding is correct, what is the downside ?
 Why don't everybody use chan-capi ?

CAPI comes originally from the Windows world, but is a common ISDN API
standard www.capi.org. So if there would be CAPI drivers for all of these
ISDN cards, you can use CAPI (chan-capi).
So the missing part is the card-driver. Currently I know of three CAPI based
hardware:
1) Eicon Diva Server (all cards including analog ports) with full CAPI 2.0 
   and VoIP/T.38 extensions.
2) AVM (basic CAPI 2.0)
3) mISDN driver for passive cards (hscx/hfc/...)
   and on BSD with i4b!



Armin

(www.chan-capi.org ;-)
___
--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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Armin Schindler
On Fri, 31 Mar 2006, Mike wrote:
 Armin,
 
 Thanks a lot for the very detailed answer.  I'll have to take a long look at
 the CAPI interfaces and see how I can pull all this off, it's all very new
 to me, but at least I understand that with an Eicon card, I could share a T1
 between Asterisk and Hylafax.  I'm not clear on whether I could receive fax
 and voice on the same DID though (if its Fax, Hylafax takes care of it, if
 its voice, Asterisk does)...

Fax and voice on the same DID is not possible when using a second 
application like hylafax. Because how should the two applications decide 
which one accepts the call?

But you can receive faxes with chan-capi (when you have an Eicon can with 
DSPs which does fax-processing on board). Here you can use the dialplan to 
decide what to do with the call.
I do this in a company (OpenPBX in that case, but it's the same), I receive 
faxes via CAPI and sending is done with another application.

Armin
 
 Mike
 
   
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Armin
 Schindler
 Sent: March 31, 2006 7:20 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [Asterisk-Users] Asterisk and Hylafax, on the same box
 
 On Fri, 31 Mar 2006, Olivier Krief wrote:
  2006/3/31, Armin Schindler [EMAIL PROTECTED]:
  
   Yes, this is possible of course with the Eicon Diva Server PRI (T1)
 card.
   This card provides a CAPI interface where you can connect 
   Asterisk(with
   chan-capi) and any other CAPI based application like Hylafax.
  
   You can e.g. configure chan-capi to use 20 channels and the 
   remaining channels configured in Hylafax.
   When you use a Eicon Diva Server with DSPs on board, you don't need 
   to worry about CPU power, because fax-receive is done on the DIVA 
   card.
   So you don't need to 'bridge' something here, it just works.
  
   Armin
  
  
  Armin,
  
  Do you mean you could dynamically share E1/T1 channels between 
  Asterisk and Hylafax applications ?
 
 Yes, CAPI provides all available controllers (ports) and its channels to
 every application at the same time.
 
  For example, for each incoming call to a given fax number, Capi driver 
  would trigger Hylafax software to process incoming fax and at the same 
  time, Asterisk software would be smart enough to use other channels 
  for outgoing calls ?
 
 Yes, via the CAPI interface you don't reference a real b-channel, this is
 done by the driver of the ISDN card which provides the CAPI interface.
 
 Using CAPI, the applications can (and have to) decide which calls they want
 to get signaled or which are ignored when they are meant for another
 service. E.g. the following example is not possible with CAPI:
 You have one number (and the same BC) for two services assigned. If you are
 using one application, which can switch to another server by some rule, then
 it is okay. But two applications must be configured to serve the own
 numbers/services only.
 Another thing is, the application does not know about busy channels. This
 means if you have a 23 channel line and 10 lines are busy with hylafax at
 the moment, then chan-capi (or another application) can use 13 channels
 only, of course. So if you have configured chan-capi with e.g. 15 channels
 to use, chan-capi will just return 'busy : no circuit/channel available'.
 But this is all configuration stuff and when configured correctly, it works
 very good.
 
 There are even more capabilities. For example Eicon is doing a lot. Their
 Diva Server cards do provide a RTP interface via CAPI (new chan-capi will
 support this). Which means coding and anti-jitterbuffer is done on the ISDN
 card, chan-capi just 'pushes' the RTP packets onto the card...
 
 With rcapid and a patched version of the libcapi.so, you can even have the
 ISDN hardware on one server and the applications on other servers connected
 via CAPIoverTCP (bintec protocol in that case).
 I use this because my faxing application (just the capifaxrecvd) runs on my
 local maschine instead of the ISDN/Asterisk/Gateway server.
  
  If this understanding is correct, what is the downside ?
  Why don't everybody use chan-capi ?
 
 CAPI comes originally from the Windows world, but is a common ISDN API
 standard www.capi.org. So if there would be CAPI drivers for all of these
 ISDN cards, you can use CAPI (chan-capi).
 So the missing part is the card-driver. Currently I know of three CAPI based
 hardware:
 1) Eicon Diva Server (all cards including analog ports) with full CAPI 2.0 
and VoIP/T.38 extensions.
 2) AVM (basic CAPI 2.0)
 3) mISDN driver for passive cards (hscx/hfc/...)
and on BSD with i4b!
 
 
 
 Armin
 
 (www.chan-capi.org ;-)
 ___
 --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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Boris Bakchiev
That's not entirely correct :)

 Fax and voice on the same DID is not possible when using a second
 application like hylafax. Because how should the two applications
decide
 which one accepts the call?

With the help of iaxmodem (which works really well) its easily done!
Just detect the incoming call is fax and the route it to iaxmodem on fax
extension.

___
--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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Armin Schindler
On Fri, 31 Mar 2006, Boris Bakchiev wrote:
 That's not entirely correct :)
 
  Fax and voice on the same DID is not possible when using a second
  application like hylafax. Because how should the two applications
 decide
  which one accepts the call?
 
 With the help of iaxmodem (which works really well) its easily done!
 Just detect the incoming call is fax and the route it to iaxmodem on fax
 extension.

Yes, of course, but that wasn't the question. We are talking about two capi 
applications here, which are completely separated here.
Another capi tool could this as well, just accept the call and route it back 
via another interface to another application.
But anyway, it is not necessary at all. chan-capi is doing this with 
Asterisk/OpenPBX without further tools.

Armin

___
--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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Bob McDowell

I agree, this does work well.  My 'fax' extension is right off of the
docs:

-

[faxin]
exten = fax,1,UserEvent(Incoming Fax...)
exten = fax,n,Dial(IAX2/ttyIAX)
exten = fax,n,Dial(IAX2/ttyIAX2)
exten = fax,n,Dial(IAX2/ttyIAX3)
exten = fax,n,Dial(IAX2/ttyIAX4)
exten = fax,n,Busy
exten = fax,n,Hangup

-

Bob McDowell

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Boris
Bakchiev
Sent: Friday, March 31, 2006 7:55 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Asterisk and Hylafax, on the same box

That's not entirely correct :)

 Fax and voice on the same DID is not possible when using a second
 application like hylafax. Because how should the two applications
decide
 which one accepts the call?

With the help of iaxmodem (which works really well) its easily done!
Just detect the incoming call is fax and the route it to iaxmodem on fax
extension.

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





   *** PRIVILEGED AND CONFIDENTIAL CLIENT COMMUNICATION ***

This e-mail message and all attachments, if any, may contain confidential and 
privileged material and are intended only for the intended recipient.  Any 
unauthorized review, use, disclosure or distribution is prohibited.  If you are 
not the intended recipient, please contact the sender by reply e-mail or by 
calling  (417) 869-9192 and destroy the original and any copies of this e-mail.
 
 


___
--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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Armin Schindler
On Fri, 31 Mar 2006, Bob McDowell wrote:
 I agree, this does work well.  My 'fax' extension is right off of the
 docs:
 
 -
 
 [faxin]
 exten = fax,1,UserEvent(Incoming Fax...)
 exten = fax,n,Dial(IAX2/ttyIAX)
 exten = fax,n,Dial(IAX2/ttyIAX2)
 exten = fax,n,Dial(IAX2/ttyIAX3)
 exten = fax,n,Dial(IAX2/ttyIAX4)
 exten = fax,n,Busy
 exten = fax,n,Hangup
 
 -

Yes, that looks simple.
With CAPI and Eicon cards it would be like

[faxin]
exten = fax,1,capicommand(receivefax|filename)
exten = fax,2,System(faxreceived.sh ${FAXID} ${FAXPAGES} ${FAXRESOLUTION} 
${FAXRATE})
exten = fax,3,Hangup


Armin

 
 Bob McDowell
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Boris
 Bakchiev
 Sent: Friday, March 31, 2006 7:55 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: RE: [Asterisk-Users] Asterisk and Hylafax, on the same box
 
 That's not entirely correct :)
 
  Fax and voice on the same DID is not possible when using a second
  application like hylafax. Because how should the two applications
 decide
  which one accepts the call?
 
 With the help of iaxmodem (which works really well) its easily done!
 Just detect the incoming call is fax and the route it to iaxmodem on fax
 extension.
 
 ___
 --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
 
 
 
 
 
    *** PRIVILEGED AND CONFIDENTIAL CLIENT COMMUNICATION ***
 
 This e-mail message and all attachments, if any, may contain confidential and 
 privileged material and are intended only for the intended recipient.  Any 
 unauthorized review, use, disclosure or distribution is prohibited.  If you 
 are not the intended recipient, please contact the sender by reply e-mail or 
 by calling  (417) 869-9192 and destroy the original and any copies of this 
 e-mail.
  
  
 
 
 ___
 --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] Asterisk and Hylafax, on the same box

2006-03-31 Thread Jonathan k. Creasy
I agree we have this working also. 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:asterisk-users-
 [EMAIL PROTECTED] On Behalf Of Boris Bakchiev
 Sent: Friday, March 31, 2006 8:55 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: RE: [Asterisk-Users] Asterisk and Hylafax, on the same box
 
 That's not entirely correct :)
 
  Fax and voice on the same DID is not possible when using a second
  application like hylafax. Because how should the two applications
 decide
  which one accepts the call?
 
 With the help of iaxmodem (which works really well) its easily done!
 Just detect the incoming call is fax and the route it to iaxmodem on
fax
 extension.
 
 ___
 --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] Asterisk and Hylafax, on the same box

2006-03-30 Thread Mike



Hi,

I thought I'd check 
in with people here. Lets say I wanted to put together a Hylafax server, 
and an Asterisk server on the same box. And, for the sake of making things 
simple, I wanted to use a single T1 board for both

Is this 
possible? I see Eicon boards are supported by both software, so could I 
have Hylafax and Asterisk installed on a server with an Eicon card, with 
channels split between Hylafax and Asterisk? Or even just being bridged by 
Asterisk to Hylafax, somehow?

Could I get away 
with just one T1, or would i need 2? (one for each 
software?)

I know this question 
is somewhat open-ended, but Im very curious on how to make the most popular open 
source PBX work with what seems to be the most popular open source fax server 
(my perception: I`ve never tried anything with Hylafax)

Mike
___
--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] Asterisk and Hylafax, on the same box

2006-03-30 Thread William Boehlke



Aniffyidea if you expect any volume of calls. 
When the CPU is busy converting files to a images you may experience problems 
with call quality and MOH quality, up to and including the call dropping 
entirely. 

Servers are much cheaper than the time you may otherwise 
spend trying to debug this type of problem.





From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
MikeSent: Thursday, March 30, 2006 1:40 PMTo: 
'Asterisk Users Mailing List - Non-Commercial Discussion'Subject: 
[Asterisk-Users] Asterisk and Hylafax, on the same box

Hi,

I thought I'd check 
in with people here. Lets say I wanted to put together a Hylafax server, 
and an Asterisk server on the same box. And, for the sake of making things 
simple, I wanted to use a single T1 board for both

Is this 
possible? I see Eicon boards are supported by both software, so could I 
have Hylafax and Asterisk installed on a server with an Eicon card, with 
channels split between Hylafax and Asterisk? Or even just being bridged by 
Asterisk to Hylafax, somehow?

Could I get away 
with just one T1, or would i need 2? (one for each 
software?)

I know this question 
is somewhat open-ended, but Im very curious on how to make the most popular open 
source PBX work with what seems to be the most popular open source fax server 
(my perception: I`ve never tried anything with Hylafax)

Mike
___
--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] Asterisk and Hylafax, on the same box

2006-03-30 Thread Lee Howard

Mike wrote:

I thought I'd check in with people here.  Lets say I wanted to put 
together a Hylafax server, and an Asterisk server on the same box.  
And, for the sake of making things simple, I wanted to use a single T1 
board for both
 
Is this possible?



Yes.  I've not investigated the Eicon approach that you suggest below, 
but if you can get the audio lossless into Asterisk (Zap, ISDN, 
whatever) then you could use iaxmodem to bridge between Asterisk and 
HylaFAX.


I see Eicon boards are supported by both software, so could I have 
Hylafax and Asterisk installed on a server with an Eicon card, with 
channels split between Hylafax and Asterisk?



I don't know if this would work or not.


Or even just being bridged by Asterisk to Hylafax, somehow?



HylaFAX has to talk to a modem device, so I don't know how Asterisk 
would bridge it to HylaFAX without some intermediary device like an 
iaxmodem.


Could I get away with just one T1, or would i need 2? (one for each 
software?)



You could have as many or as few as you wanted.

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] Asterisk and Hylafax, on the same box

2006-03-30 Thread Armin Schindler
On Thu, 30 Mar 2006, Mike wrote:
 Hi,
  
 I thought I'd check in with people here.  Lets say I wanted to put together
 a Hylafax server, and an Asterisk server on the same box.  And, for the sake
 of making things simple, I wanted to use a single T1 board for both
  
 Is this possible?  I see Eicon boards are supported by both software, so
 could I have Hylafax and Asterisk installed on a server with an Eicon card,
 with channels split between Hylafax and Asterisk?  Or even just being
 bridged by Asterisk to Hylafax, somehow?
  
 Could I get away with just one T1, or would i need 2? (one for each
 software?)
  
 I know this question is somewhat open-ended, but Im very curious on how to
 make the most popular open source PBX work with what seems to be the most
 popular open source fax server (my perception: I`ve never tried anything
 with Hylafax)

Yes, this is possible of course with the Eicon Diva Server PRI (T1) card.
This card provides a CAPI interface where you can connect Asterisk(with 
chan-capi) and any other CAPI based application like Hylafax.

You can e.g. configure chan-capi to use 20 channels and the remaining 
channels configured in Hylafax.
When you use a Eicon Diva Server with DSPs on board, you don't need to worry 
about CPU power, because fax-receive is done on the DIVA card.
So you don't need to 'bridge' something here, it just works.

Armin
___
--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] Asterisk and Hylafax, on the same box

2006-03-30 Thread Olivier Krief
2006/3/31, Armin Schindler [EMAIL PROTECTED]:
Yes, this is possible of course with the Eicon Diva Server PRI (T1) card.This card provides a CAPI interface where you can connect Asterisk(withchan-capi) and any other CAPI based application like Hylafax.
You can e.g. configure chan-capi to use 20 channels and the remainingchannels configured in Hylafax.When you use a Eicon Diva Server with DSPs on board, you don't need to worryabout CPU power, because fax-receive is done on the DIVA card.
So you don't need to 'bridge' something here, it just works.ArminArmin,Do you mean you could dynamically share E1/T1 channels between Asterisk and Hylafax applications ?For example, for each incoming call to a given fax number, Capi driver would trigger Hylafax software to process incoming fax and at the same time, Asterisk software would be smart enough to use other channels for outgoing calls ?
If this understanding is correct, what is the downside ?Why don't everybody use chan-capi ?Regards Olivier
___
--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] Asterisk and HylaFAX integration

2005-04-08 Thread Kevin Brennan

- Original Message -
From: Gavin Hamill [EMAIL PROTECTED]
To: asterisk-users@lists.digium.com
Sent: Tuesday, April 05, 2005 2:28 PM
Subject: Re: [Asterisk-Users] Asterisk and HylaFAX integration


 On Tuesday 05 April 2005 14:13, Lee Howard wrote:

  I successfully run a HylaFAX server with a Patton 2977 connected through
a
  Digium TE405P.

 How does that work? From their webpage
 (http://commerce.patton.com/pe_products.asp?category=20) it seems to be a
 QuadBRI - how do you connect that to a Digium quad-PRI card? :)

see  http://commerce.patton.com/pe_products.asp?category=19

  Well, for one thing, t38modem comes from OpenH323, not Asterisk, and it
  cannot be used with Asterisk as Asterisk does not yet support T.38.

 Ah fair enough, I think I just got confused :)

  via a .call file in the Asterisk spool directory.  There will be some
  complications with regards to return status and requeuing of jobs (which
  is why I've not attempted this myself).

 Hehe yes precisely the return status / requeue was exactly the problem I'd
 anticipated - it's this part which I hoped previous work had been done on
=)

  As for replacing faxgetty... that should be fairly straight-forward by
  simply making rxfax dump the received faxes into the HylaFAX recvq
  directory.

 Fortunately we have no inbound fax requirements :)

 Cheers,
 Gavin.
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


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


[Asterisk-Users] Asterisk and HylaFAX integration

2005-04-05 Thread Gavin Hamill
Has anyone done work on this topic? We have an 8-line fax system using a Diva 
Server card that I'd like to get working using one of the kapejod's QuadBRI 
adapters :)

i.e. is it possible to keep the HylaFAX submission and queue management, but 
replace the existing backend of a TTY-based client with Asterisk's t38modem / 
spandsp?

I've been down the 'capi4hylafax' route before and it was very depressing so 
would like to avoid that...

Cheers,
Gavin.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk and HylaFAX integration

2005-04-05 Thread Lee Howard
On Tue, 5 Apr 2005, Gavin Hamill wrote:

 Has anyone done work on this topic?

I guess it depends what you mean by integration.

 We have an 8-line fax system using a Diva 
 Server card that I'd like to get working using one of the kapejod's QuadBRI 
 adapters :)

I successfully run a HylaFAX server with a Patton 2977 connected through a 
Digium TE405P.

 i.e. is it possible to keep the HylaFAX submission and queue management, but 
 replace the existing backend of a TTY-based client with Asterisk's t38modem / 
 spandsp?

Well, for one thing, t38modem comes from OpenH323, not Asterisk, and it 
cannot be used with Asterisk as Asterisk does not yet support T.38.

As for using spandsp's txfax/rxfax to replace HylaFAX's 
faxgetty/faxsend... it should be possible to write a wrapper script and 
then set HylaFAX's SendFaxCmd to point to your wrapper script instead of 
the faxsend binary.  The wrapper script would need to trigger txfax 
via a .call file in the Asterisk spool directory.  There will be some 
complications with regards to return status and requeuing of jobs (which 
is why I've not attempted this myself).

As for replacing faxgetty... that should be fairly straight-forward by 
simply making rxfax dump the received faxes into the HylaFAX recvq 
directory.

Lee.

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


Re: [Asterisk-Users] Asterisk and HylaFAX integration

2005-04-05 Thread Gavin Hamill
On Tuesday 05 April 2005 14:13, Lee Howard wrote:

 I successfully run a HylaFAX server with a Patton 2977 connected through a
 Digium TE405P.

How does that work? From their webpage 
(http://commerce.patton.com/pe_products.asp?category=20) it seems to be a 
QuadBRI - how do you connect that to a Digium quad-PRI card? :)

 Well, for one thing, t38modem comes from OpenH323, not Asterisk, and it
 cannot be used with Asterisk as Asterisk does not yet support T.38.

Ah fair enough, I think I just got confused :)

 via a .call file in the Asterisk spool directory.  There will be some
 complications with regards to return status and requeuing of jobs (which
 is why I've not attempted this myself).

Hehe yes precisely the return status / requeue was exactly the problem I'd 
anticipated - it's this part which I hoped previous work had been done on =)

 As for replacing faxgetty... that should be fairly straight-forward by
 simply making rxfax dump the received faxes into the HylaFAX recvq
 directory.

Fortunately we have no inbound fax requirements :)

Cheers,
Gavin.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Asterisk and HylaFax

2004-12-17 Thread Sergio Serrano
Title: Mensaje



Hi all, 
 again I try 
configure Hylafax with asterisk. I would like configure Asterisk in the next 
way:
 
1)An incoming fax go into through X100P
 
2)Asterisk detects Fax and redirect fax to 
Hylafax

 Is it 
possible?

Any idea woluld be great 
idea?


regards,

srsergio


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.5.4 - Release Date: 15/12/2004
 
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Asterisk and HylaFax

2004-12-17 Thread Lee Howard
On 2004.12.17 05:42 Sergio Serrano wrote:
Hi all,
again I try configure Hylafax with asterisk. I would like
configure
Asterisk in the next way:
1)An incoming fax go into through X100P
2)Asterisk detects Fax and redirect fax to Hylafax
Is it possible?
Yes, but it may not be as pretty as you like, and it may not function 
as well as you hope.

Using faxdetect in your zapata.conf file will get practically all of 
the faxes coming in to the X100P routed to the fax extension.  The 
trick, then, is how to get HylaFAX at that fax extension.  There are a 
number of different ways to do it, but in each case, in the end, the 
idea is to get HylaFAX and Asterisk communicating at an Asterisk FXS 
point.  So you could do a number of different arrangements:

  X100P - Asterisk - SPA-2000 (ATA) - Modem - HylaFAX
or
  X100P - Asterisk - TDM400P (FXS) - Modem - HylaFAX
but, at that point you probably would be better off without the X100P 
like this:

  TDM400P (FXO) - Asterisk - TDM400P (FXS) - Modem - HylaFAX
I will warn you now, however, that the analog-to-digital and then 
digital-to-analog conversions that are required in these arrangements 
seem to cause some problems.  You may never notice the problems if you 
use ECM on the receiving modem, but if you pay attention to the ECM 
logging, you may notice that you'll get more data corruption (and thus 
retransmissions of data) than you would if you just had the modem 
plugged into the POTS line directly.  I don't know if that's an error 
on the part of Asterisk, or on the part of all of the ATAs that I've 
heard mentioned used in this situation.  In fact, I've even heard of 
that same problem when using a TDM card instead of the ATA.  Maybe it's 
just an inherent problem with the A-D  D-A conversions.  I don't 
know.

In any case, currently the best way (the way without any data 
corruption as I mention) to interface Asterisk and HylaFAX is to keep 
everything digital...

  TE405P - Asterisk - TE405P - T1 Modem (Patton 2977) - HylaFAX
But this requires more expensive hardware and more expensive lines and 
is probably beyond the scope of your project since you're talking about 
faxdetect and X100Ps.

There are some futuristic arrangements that could be done conceivably 
with some tools that are available, such as spandsp or t38modem, but 
currently there is no way to interface t38modem with Asterisk and no 
way to interface spandsp directly with HylaFAX.

Lee.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk and HylaFax

2004-12-17 Thread Antony Stone
On Friday 17 December 2004 16:22, Lee Howard wrote:

 On 2004.12.17 05:42 Sergio Serrano wrote:
  Hi all,
  again I try configure Hylafax with asterisk. I would like
  configure
  Asterisk in the next way:
  1)An incoming fax go into through X100P
  2)Asterisk detects Fax and redirect fax to Hylafax
 
  Is it possible?

 Yes, but it may not be as pretty as you like, and it may not function
 as well as you hope.

 Using faxdetect in your zapata.conf file will get practically all of
 the faxes coming in to the X100P routed to the fax extension.  The
 trick, then, is how to get HylaFAX at that fax extension.

Does there exist any sort of bypass box which could be used in the following 
arrangement:

POTS - X100P - Asterisk - TDM400P(FXS) - Fax machine

Hypothetical bypass box also plugs into POTS line and Fax machine, able to 
switch the X100P, Asterisk and the TDP400P out of the circuit, and just 
connect POTS to Fax directly on some command from the Asterisk PC.

Then Asterisk uses faxdetect to send ringing to the fax machine, waits for 
call to be answered, and sends (RS232?) command to bypass box, allowing fax 
machine to take the original incoming call without all the analogue - 
digital - analogue conversion going on.

If such a hypothetical bypass box could also detect remote hangup, and drop 
itself back out of circuit once the call is complete, everything returns back 
to normal ready for the next call to come in.

Electrically it seems like a very simple solution - a 2-pole 2-way relay with 
RS232 control and line-voltage detection (for the automatic switchover on 
hangup), however whether such a thing exists and has appropriate type 
approvals I have no idea

Regards,

Antony.

-- 
Atheism is a non-prophet-making organisation.

 Please reply to the list;
   please don't CC me.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users