Programming Fax Routing Extension

A

Alan Wilcox

Hello,

I need to write a fax-routing extension DLL, so my game plan was to build up
the "SampleRoute" code from the Platform SDK using Visual Studio 7. From there I
should have a handle on how to deal with fax DLL's. That was the idea at least.

Following the directions, it properly sets its info into the registry. However,
when I run a fax application that calls on it, I get a "failed init" msg while
debugging.

I thought regsvr32 did all the registration needed, but I discovered the
FaxServer.RegisterInboundRoutingExtension method. It says that IT registers the
fax inbound routing extension with the fax service. Happily, all the parameters
it needs are in the dll source, so I thought I had a solution!

When I run the application, I get an "Invalid argument" error while trying to
connect to the local fax server (Win2003 Server).

1. Does anyone know where to find example code for fax routing extensions? The
examples in Platform SDK don't cover this (and are for vs6 and even vs5).

2. Do you see the problem in the code below that's giving me the error?

Many thanks!
Alan

Public vMethods() As String = {"Siren; Routing Siren; RouteIt;
{5797dee0-e738-11d0-83c0-00c04fb6e984}"}

Public Sub New()
_FaxServer = New FaxServer
_FaxServer.Connect("")
_FaxServer.RegisterInboundRoutingExtension(
"SampleRoute Routing Extension", _
"SampleRoute: Fax Siren", _
"%systemroot%\system32\SampleRoute.dll", vMethods)

'Register the FaxServer object to receive event notifications
'from the fax server
_FaxServer.ListenToServerEvents(FAX_SERVER_EVENTS_TYPE_ENUM.fsetACTIVITY+_
<etc. works ok. snip>
End Sub
 
C

Chandrasekar R [MSFT]

Hi Alan,
The sample routing extension provided in the platform SDK takes care of
registering itself with the fax service. Therefore you do not need a
seperate application that does a RegisterInboundRoutingExtension.
Coming to your other problem of the sampleroute not working can you give us
the following information:-
1. Which call is giving you the error "Init failed"?
2. Did you restart the fax service after doing a regsvr32? If yes then was
there any event logged in the eventviewer when the fax service started?

Thanks,
Chandrasekar
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top