TUTORIAL HylaFAX / AvantFax for PIAF! - Parts 1-4

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
Sorry, did not go through all the details, my question is "can this be tied to a MS Sharepoint server ?" (fax delivered to Sharepoint web page)

Thanks!

Going through all the details would be a good idea.

What method does a sharepoint server use to acquire it faxes?
If it can receive faxes via email - as a PDF - then the answer should be yes. If thats not one of the ways sharepoint can receive a fax, then you would be best off getting a real answer from the HylaFAX or Avantfax developers.

Do you have iny information about how sharepoint receives faxes?
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
My one question on all of these fax solutions is we currently pay for a fax-email solution. The provider of our PRI will gladly give me tons of DIDs for free.

That means I could assign say 555-1001 to me, 555-1002 to John, and 555-1003 to Sam.

Obviously I then want these faxes to go to the users (and likely get deleted from the web interface after they are sent, or say every 2 weeks or something).

Can this be done?

Definitely - and in at least a couple different ways.

This would be similar to having a fax machine in several different "departments" of a company. In this article we have set up a single inbound fax - if there is enough interest, I will post another article here that adds an additional "department" with its own DID and routing. The solution in this article is already set up in a way designed to allow for just that - additional departments.

Tony
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
Yes, when i redirect the Zap FXO to my Zap FXS with the fax plugged in, there is no problem, it seems then the iaxmodem doesn't register with the PBX, does it need a register:xxxxxxx:[email protected] line ??? i got a registration failure in my log from theiax mdem, but i can send from them??

Thanx!

A little update on my problem, i have try to send fax with Hylafax and it seems to work pretty well, but i still have the registration problem, like the log i got if someone can help me on this one, i would really like to make it work, this is a really nice add-on
Thanx a lot!

[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 07:13:07] Terminating...
[2009-03-05 07:13:07] iaxmodem process 28377 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28378 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28379 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28380 ended, status 0xF

Ok - you are having an issue I haven't seen yet. These lines:
[2009-03-05 07:13:07] iaxmodem process 28377 ended, status 0xF Are unlike anything I have seen before. Because we are not using id/password security, but rather permit/deny rules to secure these iax modems, it is normal to see lines that report the modems re registering every 60 seconds. The "process ended" is not the normal thing to see here, and certainly not the buffer overruns either.

Also, these lines:
[2009-03-05 09:07:43] Registration failed.
[2009-03-05 09:08:36] Terminating on signal 15...
[2009-03-05 09:10:14] Registration failed.
Since we don't use id/password registration, I am taking these errors to mean that for some reason, the modems permit/deny for localhost 127.0.0.1 are failing. Can you verify that 127.0.0.1 has not been corrupted to refer to a machine other than localhost? From the evidence - this seems to be the area to look into.

Sorry I cant provide a resolution for you - but we have not seen this result before.

-tshif
 

Speedy2k

Member
Joined
Oct 11, 2008
Messages
387
Reaction score
0
I have tried it on another Asterisk box brand ew, and i got the same registration problem it is really wierd! I hope you can point me in a good direction, i would really like to make it work good, and the biggest bug, is that i can send fax with it no problem, i just don't answer them.
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
I have tried it on another Asterisk box brand ew, and i got the same registration problem it is really wierd! I hope you can point me in a good direction, i would really like to make it work good, and the biggest bug, is that i can send fax with it no problem, i just don't answer them.

Ok - interesting.

1. What distribution of Asterisk are you using?
2. Im not sure redirecting to your FXS is an adequate test. Temporarily redirect to a typical VoIP extension and see if the call makes it to the phone.

This could be as simple as an inbound routing problem, with the failure to receive. Could also be that you haven't changed your zaptel context from "from-ptsn" to "from-zaptel".

There is something very odd with those failure to register lines. Still don't know what to make of them.

-thsif
 

Speedy2k

Member
Joined
Oct 11, 2008
Messages
387
Reaction score
0
It's PIAF 1.3 with the latest update-scripts and update-source and update-fixes done to it

Asterisk 1.4.21.2
Zaptel 1.4.12.1
PBX in a Flash Version 1.3

And by the way,i have try to redirect the ZAP line to my SIP phone and i can answer the line just fine, there is no problem on this side. it is really strange.
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
Do you get the same lines like this:
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 07:13:07] Terminating...
[2009-03-05 07:13:07] iaxmodem process 28377 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28378 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28379 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28380 ended, status 0xF

On the new box you are just setting up for this test? I have not seen this response before - and wonder if both your test boxes do it?
 

mp1111

Member
Joined
Dec 23, 2007
Messages
38
Reaction score
0
:iagree: We only need to change the
[from-fax]
exten => _x.,1,Dial(my_trunk/${EXTEN})
exten => _x.,n,Hangup()

If we want control over which trunk is used. As Joe says, otherwise the normal outbound trunk logic is used.

It seems that you may have a syntax error:
exten => _x.,1,Dial(my_trunk/${EXTEN})

Should be:
exten => _x.,1,Dial(trunk technology/my_trunk_name/${EXTEN})

You can select any trunk in this way.

Tony

tony,

this is exactly how i did...

exten => _x.,1,Dial(IAX2/my_trunk_name/${EXTEN})

I am using IAX2 trunk...
same issue...
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
How many modems does that avantfax interface see? What is their status?

How many modems does the webmin hylax admin module see? What is their status?

Do you get this exact message:
iaxmodem process 28377 ended, status 0xF?

Tony
 

martymoose

New Member
Joined
Dec 24, 2007
Messages
18
Reaction score
0
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 06:58:18] Modem started
[2009-03-05 07:13:07] Terminating...
[2009-03-05 07:13:07] iaxmodem process 28377 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28378 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28379 ended, status 0xF
[2009-03-05 07:13:07] iaxmodem process 28380 ended, status 0xF

Ok - you are having an issue I haven't seen yet. These lines:
[2009-03-05 07:13:07] iaxmodem process 28377 ended, status 0xF Are unlike anything I have seen before. Because we are not using id/password security, but rather permit/deny rules to secure these iax modems, it is normal to see lines that report the modems re registering every 60 seconds. The "process ended" is not the normal thing to see here, and certainly not the buffer overruns either.

Also, these lines:
[2009-03-05 09:07:43] Registration failed.
[2009-03-05 09:08:36] Terminating on signal 15...
[2009-03-05 09:10:14] Registration failed.
Since we don't use id/password registration, I am taking these errors to mean that for some reason, the modems permit/deny for localhost 127.0.0.1 are failing. Can you verify that 127.0.0.1 has not been corrupted to refer to a machine other than localhost? From the evidence - this seems to be the area to look into.

Sorry I cant provide a resolution for you - but we have not seen this result before.

-tshif

yep i got them logs 2
[2009-03-07 13:03:48] Unable to pass the full buffer onto the device file. 2015 bytes of 2052 written: Resource temporarily unavailable
[2009-03-07 13:05:08] Registration failed.
and
[2009-03-06 07:30:01] Modem started
[2009-03-07 11:36:27] Terminating...
[2009-03-07 11:36:27] iaxmodem process 2758 ended, status 0xF
 

edisoninfo

Guru
Joined
Nov 19, 2007
Messages
505
Reaction score
4
My install seemed to go just fine. But I too am getting 4 registration failed errors every couple of minutes. I noticed in the asterisk/full log that there are tons of Peer 'iax-fax3' is not dynamic (from 127.0.0.1) messages. All 4 iax-faxX are giving the same error. Are these two errors related?
 

tshif

Guru
Joined
Jan 3, 2008
Messages
1,240
Reaction score
4
Ok guys - thanks for letting me know there are three of us having the same problem. As always in troubleshooting - one thing I would like to be able to do is reproduce this issue here. So far, that's not happening for me.

I looked at another system tonight (remotely) that is having this problem. Im afraid that while I did clean up some residue from multiple installs, and actually got zap working for outbound, inbound still wont work. It also wont work when the inbound trunk is VoIP. The virtual modems do not answer the inbound ring.

So - since this is an issue we haven't seen before - the raw troubleshooting can begin.

If you can provide me with exact steps to duplicate the issue - it will go a long way towards helping find a fix.

The best way is to install a fresh copy of pbxiaf, install this fax solution, and see if the problem exists. Take remarkably detailed notes about what exact steps you take in the system build up, and the order in which you take all the steps. This gives us a chance to duplicate the problem so a solution can be found.

Ill continue to look for possible areas to invesitage - and you should also - the more faces looking at this, the faster we find a reason and fix it.

- tshif
 

mp1111

Member
Joined
Dec 23, 2007
Messages
38
Reaction score
0
Ok guys - thanks for letting me know there are three of us having the same problem. As always in troubleshooting - one thing I would like to be able to do is reproduce this issue here. So far, that's not happening for me.

I looked at another system tonight (remotely) that is having this problem. Im afraid that while I did clean up some residue from multiple installs, and actually got zap working for outbound, inbound still wont work. It also wont work when the inbound trunk is VoIP. The virtual modems do not answer the inbound ring.

So - since this is an issue we haven't seen before - the raw troubleshooting can begin.

If you can provide me with exact steps to duplicate the issue - it will go a long way towards helping find a fix.

The best way is to install a fresh copy of pbxiaf, install this fax solution, and see if the problem exists. Take remarkably detailed notes about what exact steps you take in the system build up, and the order in which you take all the steps. This gives us a chance to duplicate the problem so a solution can be found.

Ill continue to look for possible areas to invesitage - and you should also - the more faces looking at this, the faster we find a reason and fix it.

- tshif

well thanks for looking into this!
i just restored from a backup for now till we figure out this.
 

martymoose

New Member
Joined
Dec 24, 2007
Messages
18
Reaction score
0
well i have this on a new system
i just reinstalled and finished before i read this above
the steps i did were installed pbxinaflash latest 1.4 version
upgraded scripts then fixes then system then upadated all mods in freepbx
i also installed the latestest sccp mod from the 7970 treasure thread
installed the fax script
set all 4 trunks (a400p) via inbound route to to point to custon haylafax extension
pluged in phone line and tested all 4 ports with phone call and fax call still the same errors
i am using a dell gx270 512meg 40gb sata drive
hopes this helps if asked i will drop another drive in and do step by step if i can be help to somebody
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

I'm just rolling up a fresh install here.

Can you copy and paste the errors again and where you found them.

Can you confirm that iax2 show peers at the command line interface shows 4 modems registered from 127.0.0.1

Can you confirm in /dev that you have 4 iaxTTYX entries where X is 0 to 3?

Can you fax outbound?

Cheers

Joe
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

I've discovered a bit of a cockup in the script. The IAX Modem was being launched twice, once by service iaxmodem start, which starts anything it finds in the /etc/iaxmodem. directory, then started again with some entries in /etc/inittab

It is more desirable to start IAX modem as a service, because it is easier to add and remove iaxmodem entries without having to edit inittab, although we will still have to add a faxgetty process to inittab.

So if you have installed, edit /etc/inittab, and identify the following lines and remove them.

IA0:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX0 > /var/log/iaxmodem/iaxmodem.log

IA1:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX1 > /var/log/iaxmodem/iaxmodem.log

IA2:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX2 > /var/log/iaxmodem/iaxmodem.log

IA3:2345:respawn:/usr/sbin/iaxmodem iaxmodem-cfg.ttyIAX3 > /var/log/iaxmodem/iaxmodem.log
Now reboot.

Next, lets do a couple of checks to make sure things are starting as they should.

1. in asterisk CLI, type iax2 show peers, and you should see 4 entries.

2. open a second putty screen, and while watching the Asterisk CLI on the first screen type service iaxmodem restart on the second screen. An Asterisk, you should see the modems register and deregister

3. Lastly lets check to see the modems start and stop with no errors.

At the command line:-

service iaxmodem stop

then
iaxmodem iaxmodem-cfg.ttyIAX0

Check it started OK.

ctrl-c to exit.

Repeat with the other 3 modems.
iaxmodem iaxmodem-cfg.ttyIAX1
iaxmodem iaxmodem-cfg.ttyIAX2
iaxmodem iaxmodem-cfg.ttyIAX3

If they all start as they should do. Reboot for good measure, and see if this has helped. and let me know.

This may not be the complete fix, but it is certainly something I did not get right.




Joe
 

Speedy2k

Member
Joined
Oct 11, 2008
Messages
387
Reaction score
0
Thanx a lot jroper, it seems to have stoped my problem, the modem is now answering!!

But the bizarre thing i got, when i try to send a fax, here is the CLI infoi got.

-- Called voipms/1XXXXXXXXXX
-- Call accepted by 67.205.74.164 (format ulaw)
-- Format for call is ulaw
-- IAX2/voipms-1179 is making progress passing it to IAX2/iax-fax0-2397
-- IAX2/voipms-1179 answered IAX2/iax-fax0-2397
-- Channel 'IAX2/voipms-1179' unable to transfer
-- Channel 'IAX2/voipms-1179' unable to transfer
-- Hungup 'IAX2/voipms-1179'
== Spawn extension (from-fax, 1XXXXXXXXX, 4) exited non-zero on 'IAX2/iax-fax0-2397'
-- Hungup 'IAX2/iax-fax0-2397'


Do you know why this unable to tranfert things?? this is the 1 time i see this? thanx!
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
CAn you copy form the full log rather than the asterisk CLI, its a little more verbose

Joe
 

Speedy2k

Member
Joined
Oct 11, 2008
Messages
387
Reaction score
0
Here it is:


[2009-03-07 10:44:31] VERBOSE[5825] logger.c: -- Accepting UNAUTHENTICATED call from 127.0.0.1:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw),
> priority = mine
[2009-03-07 10:44:31] VERBOSE[5944] logger.c: -- Executing [18884732963@from-fax:1] Set("IAX2/iax-fax2-2529", "CALLERID(name)=AA AAAAAAA") in new stack
[2009-03-07 10:44:31] VERBOSE[5944] logger.c: -- Executing [18884732963@from-fax:2] Set("IAX2/iax-fax2-2529", "CALLERID(num)=XXXXXXXXXXX") in new stack
[2009-03-07 10:44:31] VERBOSE[5944] logger.c: -- Executing [18884732963@from-fax:3] NoOp("IAX2/iax-fax2-2529", ""Sol Nursing" <XXXXXXXXXXX>") in new stack
[2009-03-07 10:44:31] VERBOSE[5944] logger.c: -- Executing [18884732963@from-fax:4] Dial("IAX2/iax-fax2-2529", "IAX2/voipms/18884732963") in new stack
[2009-03-07 10:44:31] DEBUG[5944] chan_iax2.c: prepending 4 to prefs
[2009-03-07 10:44:31] VERBOSE[5944] logger.c: -- Called voipms/18884732963
[2009-03-07 10:44:31] VERBOSE[5831] logger.c: -- Call accepted by 67.205.74.164 (format ulaw)
[2009-03-07 10:44:31] VERBOSE[5831] logger.c: -- Format for call is ulaw
[2009-03-07 10:44:34] VERBOSE[5944] logger.c: -- IAX2/voipms-2690 answered IAX2/iax-fax2-2529
[2009-03-07 10:44:35] VERBOSE[5822] logger.c: -- Saved useragent "Aastra 57i/2.4.1.37" for peer 1229
[2009-03-07 10:44:39] VERBOSE[5832] logger.c: -- Channel 'IAX2/voipms-2690' unable to transfer
[2009-03-07 10:44:39] VERBOSE[5827] logger.c: -- Channel 'IAX2/voipms-2690' unable to transfer
[2009-03-07 10:45:26] VERBOSE[5944] logger.c: -- Hungup 'IAX2/voipms-2690'
[2009-03-07 10:45:26] VERBOSE[5944] logger.c: == Spawn extension (from-fax, 18884732963, 4) exited non-zero on 'IAX2/iax-fax2-2529'
[2009-03-07 10:45:26] VERBOSE[5944] logger.c: -- Hungup 'IAX2/iax-fax2-2529'
[2009-03-07 10:47:22] NOTICE[5826] chan_iax2.c: Peer 'iax-fax0' is not dynamic (from 127.0.0.1)
[2009-03-07 10:47:22] NOTICE[5831] chan_iax2.c: Peer 'iax-fax3' is not dynamic (from 127.0.0.1)
[2009-03-07 10:47:22] NOTICE[5833] chan_iax2.c: Peer 'iax-fax2' is not dynamic (from 127.0.0.1)
[2009-03-07 10:47:22] NOTICE[5827] chan_iax2.c: Peer 'iax-fax1' is not dynamic (from 127.0.0.1)


But the fax seems to go trought anyway.
Don't know what can be the problem.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

If the fax goes through don't worry about it.

What is trying to happen here is that IAX will, like SIP, try and transfer the media steam straight to the endpoint, so the signalling stays in path, but the media goes direct point to point.

In this case, the IAX modem is trying to connect directly to Voipms, which we are not allowing.

You will get exactly the same effect if you configure an IAX softphone to your PBX and try and make a call.

Joe
 

Members online

No members online now.

Forum statistics

Threads
25,824
Messages
167,825
Members
19,247
Latest member
mdauck
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top