
#ifndef _h_gateway_extapi_h
#define _h_gateway_extapi_h

#define MSGTYPE_FAX		1		// send as fax
#define	MSGTYPE_TELEX	2		// send	as telex
#define MSGTYPE_VOICE	4		// send as voice
#define MSGTYPE_VIDEO	5		// send as video
#define MSGTYPE_SMS		6		// send as sms

#define ACTION_OK		0		// send it
#define ACTION_IGNORE	1		// ignore it silently
#define ACTION_REJECT	2		// reject it with report

// note: all strings are c-strings.

typedef struct tagOutVerify
{
	// arguments
	int		MessageType;		// see definition above
	char	*pszFromMailbox;	// left  side of '@' (sender)
	char	*pszFromHost;		// right side of '@' (sender)
	char	*pszToMailbox;		// left  side of '@' (recipient)
	char	*pszToHost;			// right side of '@' (recipient)
	// results
	int		Action;				// see definition above
	char	szReportText[256];	// what to add to the non delivery report
} OutVerify;

// the function you have to export from your shared library:
// arg is a pointer to a structure of type OutVerify.

#ifdef WIN32
#define EXTAPICALL	__stdcall
#else
#define EXTAPICALL	/*nothing*/
#endif

extern void EXTAPICALL outverify(void*);

#endif
