[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: xAP & SQL
- Subject: RE: xAP & SQL
- From: "Neil Frost" <neil@xxxxxxxxxxxxx>
- Date: Tue, 12 Jul 2005 23:37:23 +0100
------_=_NextPart_001_01C58732.45B48460
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Is there a way to troubleshoot this?
=20
I've installed and started the sendmail service added the message below
to the ToSend.txt file, restarted xAP Switchboard.
=20
Receive an incoming call, complete the call and no email...
=20
Any ideas?
________________________________
From: xap_automation@xxxxxxx
[mailto:xap_automation@xxxxxxx] On
Behalf Of James
Sent: 12 July 2005 22:19
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] xAP & SQL
=20
Neil,
As Kevin described, Switchboard can't on it's own send emails, sms or
IMs as these tasks are best handled by separate apps. What Switchboard
does have is a flexible event system with the events triggering when
various things happen:
On an Incoming call (ToSend)
When an incoming call is picked up (ToSend_Pickup)
The end of an Incoming call (ToSend_IncEnd)
When a local phone is picked up and/or a digit is pressed
(ToSend_OutDigit)
The end of an Outgoing call (ToSend_OutEnd)
When an IM contact changes state (ToSendIM)
Each of these events is actually a text file inside the Switchboard
directory, the names of the files being what's between the ( ) above.
Each file contains as many xAP messages as you like and each xAP message
can contain elements from the phone call. If you have a look at the
Tosend.txt file, in its default state it sends 3 messages on an incoming
call, one for a slimp3, one for a generic display and finally one for
text to speech. Each message is between a <start> and an <end>
and
insertable elements are contained within *s. There is a list of all
possible *s in the ToSend file. Now Switchboard support a few builtin
schemas but to send an email you will need to use a raw message. Below
is an example block to add to a ToSend file:
<start>
Type=3Draw:Mail.Outgoing
Target=3D>
<raw>
Message
{
To=3Djames@xxxxxxx
From=3Dtelephone@xxxxxxx
Subject=3D*Direction* Call from *NameCompanyNumber*
}
Body.Text
{
Text.1=3D*Direction* Call from *NameCompanyNumber*
Text.2=3Don *LineDescription* from *LocationSTD*
}
</raw>
<end>
Now assuming your xAP mail gateway is set up that's all that is needed
to send an email. Using the same kind of idea you could use xAPSMS to
send an SMS, or even send a message to a Netiom-xAP to flash a light!
Hope all this is of help and if you have any questions just ask.
James
Neil Frost wrote:=20
thanks, I'll look at this tonight.
=20
________________________________
From: xap_automation@xxxxxxx on behalf of Stuart Booth
Sent: Tue 12/07/2005 13:35
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] xAP & SQL
On Tue, 12 Jul 2005 13:25:28 +0100, Kevin Hawkins
<lists@xxxxxxx> <mailto:lists@xxxxxxx> wrote:
>NB I would have to check that we actually have such a xAP application
>to send an email via a xAP schema - I had originally thought Stuarts,
>xAP Mail Monitor did but in just skimming the docs maybe it doesn't ,
>and I thought James and Patrick each had one too although maybe that
was
>SMS.....- does anyone have such an application ???=20=20=20
An old application that does this, but definitely needs an update (the
schema links on this page are out of date I now notice):
<http://www.xapframework.net/modules.php?name=3DDownloads&d_op=3Dviewdownlo=
a
d&cid=3D43>
And the xAP schema to do so:
<http://www.xapautomation.org/modules.php?name=3DSections&op=3Dviewarticle&=
a
rtid=3D8>
HTH,
S
--
Stuart Booth <stuart@xxxxxxx> <mailto:stuart@xxxxxxx>=20
xAPFramework.net - a xAP software development framework for .net
http://www.xapautomation.org/
http://www.xapframework.net/
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|