VoiceGuide IVR Software Main Page
Jump to content

Incoming Fax Call Detection: Broken In Dialogic, Working In Tapi

Recommended Posts

The "dialogic" version of voiceguide does not detect incoming fax calls upon answering the ringing line. The tapi version works fine, i.e. I can say "on {fax}" and an incoming fax call is detected properly. On the

VG for dialogic version, nothing happens. I have a Dialogic D/41H and am using the latest version(s) of VG.

 

Do you folks QA this product? I'd happily use the TAPI version but it doesn't have the advanced transfer options that the VG for Dialogic version does.

Share this post


Link to post

Can you please record the incoming fax tone on this system (just have a script which has one module - the record module and let the script answer the call and start recording).

 

Also capture trace s as pre instructions below and post both trace and recording here.

 

Enable logging by setting the log levels to 10 in VG.INI as per below:

[Log]

 

VoiceGuide=10

NumberLoader=0

VoicemailManager=0

EmailSender=0

TapiWrapOcx=10

SapiWrapOcx=0

Then restart VG and make a test call which demonstrates the problem.

 

Debug Trace files will be created in VG's \log\ subdirectory.

When posting traces/scripts please .ZIP them up and post them as attachments.

Share this post


Link to post

Attached are the log files and the recording in the zip file. Note that this is from the dialogic version, I didn't bother to do the same for the TAPI version because it works fine and I'd have to uninstall the DG version and re-install the TAPI version.

Share this post


Link to post

The recorded incoming fax's calling tone's cadence was as expected:

 

1100Hz for 0.5 seconds

silence for 2.75 seconds.

 

Perhaps the D/41H requires slightly different settings to detect this tone properly.

 

Please try changing the ConfigLine.xml entries for TID_FAX1 and TID_FAX2 as per below:

 

<Tone Name="Call Progress Tone TID_FAX1">

<Notes>Incoming fax call</Notes>

<ID>TID_FAX1</ID>

<Freq1>1100</Freq1>

<Freq1Dev>100</Freq1Dev>

<Freq2>0</Freq2>

<Freq2Dev>0</Freq2Dev>

<On>50</On>

<OnDev>20</OnDev>

<Off>270</Off>

<OffDev>50</OffDev>

<Count>1</Count>

</Tone>

 

<Tone Name="Call Progress Tone TID_FAX2">

<Notes>Fax answered</Notes>

<ID>TID_FAX2</ID>

<Freq1>2150</Freq1>

<Freq1Dev>50</Freq1Dev>

<Freq2>0</Freq2>

<Freq2Dev>0</Freq2Dev>

<On>50</On>

<OnDev>20</OnDev>

<Off>0</Off>

<OffDev>0</OffDev>

<Count>1</Count>

</Tone>

 

and also add this entry just before the <Tone Name="DISCONNECT TAPI 1"> entry in the ConfigLine.xml file:

 

<Tone Name="Call Progress Tone FAXIN">

<Notes>Incoming Fax</Notes>

<ID>FAXIN</ID>

<Freq1>1100</Freq1>

<Freq1Dev>100</Freq1Dev>

<Freq2>0</Freq2>

<Freq2Dev>0</Freq2Dev>

<On>50</On>

<OnDev>20</OnDev>

<Off>100</Off>

<OffDev>20</OffDev>

<Count>1</Count>

</Tone>

 

If that still does not work then please post traces again (when new ConfigLine.xml).

Share this post


Link to post

Well, unfortunately that didn't work either..... I'm flummoxed.... Attached is the output and recording....

Share this post


Link to post

sorry... I made a cut and paste error, missed the trailing '>'. Still failed though....

Share this post


Link to post

In the posted ConfigLine.xml there is a ">" missing at end of the newly added FAXIN entry - that omission caused that entry to not be loaded.

 

Right now you have there:

 

<Tone Name="Call Progress Tone FAXIN">

<Notes>Incoming Fax</Notes>

<ID>FAXIN</ID>

<Freq1>1100</Freq1>

<Freq1Dev>100</Freq1Dev>

<Freq2>0</Freq2>

<Freq2Dev>0</Freq2Dev>

<On>50</On>

<OnDev>20</OnDev>

<Off>100</Off>

<OffDev>20</OffDev>

<Count>1</Count>

</Tone

 

and it should be:

 

<Tone Name="Call Progress Tone FAXIN">

<Notes>Incoming Fax</Notes>

<ID>FAXIN</ID>

<Freq1>1100</Freq1>

<Freq1Dev>100</Freq1Dev>

<Freq2>0</Freq2>

<Freq2Dev>0</Freq2Dev>

<On>50</On>

<OnDev>20</OnDev>

<Off>100</Off>

<OffDev>20</OffDev>

<Count>1</Count>

</Tone>

 

please fix the configline.xml file, restart VG and call in again.

 

Also you could try with the Off and OffDev settings set to the actual full silence time

 

<Off>2700</Off>

<OffDev>50</OffDev>

 

D/41H is an old card and looks like it needs to be configured differently to detect the fax tones...

 

NB. A good way to test if XML is specified properly is to open it in Internet Explorer - IE will advise if there are any XML notation problems with the file.

Share this post


Link to post

Looks like our posts about the missing ">" crossed each other at around same time :)

 

We'll try doing some research on our end to see what we can find out about what different settings these older D/41H cards may require to get them working with the fax tone detection...

Share this post


Link to post

Could it be that because the D/41H isn't a fax board your driver code doesn't look for fax tones? Note that the board still detects fax tones properly even though it's not a fax modem - I was using the tone to xfer to a fax machine at an extension on the PBX.....

 

" ft_play=0x17db, ft_record=0x1fdb, ft_tone=0x7, ft_e2p_brd_cfg=0x6, ft_fax=0x0"

Share this post


Link to post

BTW, here's the relevant snippet from the TAPI version.....

 

203535.41   4 devstate NUMCALLS 0 0
203535.45   4 tapi  callstate OFFERING 66082 0 4
203535.45   4 ev    Lev_CallerID [,,144]
203535.45   4 rv    lg add [DNIS]{144}
203535.45   4 callinfo CALLEDID
203535.45   4 callinfo ORIGIN
203535.45   4 ring 0
203535.45   4 rv    clear
203535.46   4       answer the call at 7/24/2006 8:35:35 PM
203535.46   4       lineAnswer(66082) => 66065
203535.91     dial  start any summary:|4:hc>0|5:idx=0|6:idx=0|7:idx=0|
203536.00   4 tapi  callstate CONNECTED 66082 1 0
203536.02   4       callstate CONNECTED 66082,1,0
203536.02   4       WorkingModeTAPI@Connected=
203536.02   4       WorkingModeScript@Connected=
203536.05   4 Inband detection not enabled
203536.07   4       startLoadedVgs at 7/24/2006 8:35:36 PM, script interpretor VgMulti v5.2.5049 0
203536.07   4 rv    ns add [ScriptsPath]{C:\VoiceGuide\AutoAttendants\}
203536.07   4 rv    ns add [ScriptPath]{C:\VoiceGuide\AutoAttendants}
203536.07   4 rv    lg add [$RV_STARTTIME]{7/24/2006 8:35:36 PM}
203536.09   4 rv    lg add [$RV_DEVICEID]{4}
203536.09   4 rv    lg add [$RV_CIDNAME]{}
203536.09   4 rv    ns add [PathApp]{C:\VoiceGuide\}
203536.09   4 rv    lg add [$RV_CIDNUMBER]{}
203536.09   4 rv    lg add [$RV_DNIS]{144}
203536.09   4 rv    lg add [DNIS]{144}
203536.09   4 tapi  Reply (LineEvReply) ok 66065 0 LineCallState=CONNECTED
203536.09   4 callinfo MONITORMODES
203536.10   4 timer clear
203536.12   4 state [Play 1] Playing
203536.13   4 tts   generate start[test 1 2 3 4 5 6 7 8 9 10 11 12 13.]
203536.13   4 tts   generate wait
203536.13   4 RunModule PLAY end
203536.66   4 monitormedia 32(    G3FAX)
203536.67   4 Fax tone detected, see if current module has "on {fax}" path specifed...
203536.67   4 "on {fax}" path found
203536.67   4 timer clear
203536.69   4 state [Play 2] Playing
203536.69   4 tts   generate start[got a fax call!]
203536.70   4 tts   generate wait

Share this post


Link to post

Hello.

I am testing VG 5.2 and I cannot to detect when the incoming call is a fax.

Can You send me an example to detect a fax's call and then to transfer it to a line h323, for example.

Thank you,

Share this post


Link to post

Many modems do not detect tones very well... and there is nothing on them that can be controlled to modify/improve their behaviour. The only option is to try a different modem or get a (current) Dialogic card.

Share this post


Link to post

I'd really like to use your product but I need to resolve the fax issue one way or the other. So could you please answer a few questions:

 

1. I can play around with the tone definitions myself, however I'd like to know:

a) what other, if any, DXBD and DXCH parms be set via the xml file?

B) does your code behave differently (for example, not including DX_TONE in the DV_TPT's under some circumstances (like if it's not a fax modem board))?

 

2. Can you say for certain which dialogic (analog) boards indicate fax tone on incoming call with the DG version of your software? I don't want to spend money on a new dialogic card only to have the same issue.

 

Thanks.

Share this post


Link to post
a) what other, if any, DXBD and DXCH parms be set via the xml file?

A few params can be set but the full list is not available - I think some of them are listed in the example ConfigLine.xml file supplied. Which particular setting would you like set?

B) does your code behave differently (for example, not including DX_TONE in the DV_TPT's under some circumstances (like if it's not a fax modem board))?

VG does send different instructions to different cards. We will need to look at this in more detail over the rest of this week to determine if the D/41H requires some special commands issued to it to work properly.

2. Can you say for certain which dialogic (analog) boards indicate fax tone on incoming call with the DG version of your software? I don't want to spend money on a new dialogic card only to have the same issue.

As part of looking into the problem we will retest with selection of analog cards. Will report next week on results.

Share this post


Link to post

I was able to resolve this issue (on my own) by placing the following in the <TONES> section of the configLine.xml file:

 

<Tone Name="FAX TONE2">
    <Notes>Incoming fax tone fax</Notes>
    <ID>fax</ID>
    <Freq1>1100</Freq1>
    <Freq1Dev>110</Freq1Dev>
    <Freq2>0</Freq2>
    <Freq2Dev>0</Freq2Dev>
    <On>30</On>
    <OnDev>15</OnDev>
    <Off>0</Off>
    <OffDev>0</OffDev>
    <Count>0</Count>
</Tone>

 

 

The Dialogic documentation is ambiguous and somewhat confusing regarding Perfect Call vs. Global Tone Detection (GTD). Perfect Call is only active on OUTGOING calls on a non-fax board like the D/41H (and, I believe all boards that are not fax modems). GTD, however, is always active so it is necessary to specifically (and possibly redundantly) define the tone(s) you want to listen for. Also, you can't even get away with re-using TID_FAX2 since GTD tones are defined with different function calls than are the perfect call tones (such as TID_FAX2). I believe that fax modem boards are always listening for the fax tones and utilize TID_FAX1/2, so this step is unnecessary.

 

The dialogic hardware is awesome but can be tricky to understand, program and configure properly in order to get the maximum usefulness out of it.

 

FYI, I also don't recommend using tone set files - PBXpert is buggy BUT it is useful for learning the PBX tones, you can then use the consolidated tone set values in your configLine.xml file.

 

I hope this is helpful.

 

-Darkmas

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×