The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: xAP & SQL



--------------020903040902000900010004
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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=raw:Mail.Outgoing
Target=>
<raw>
Message
{
To=james@xxxxxxx
From=telephone@xxxxxxx
Subject=*Direction* Call from *NameCompanyNumber*
}
Body.Text
{
Text.1=*Direction* Call from *NameCompanyNumber*
Text.2=on *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:

> thanks, I'll look at this tonight.
>
>
------------------------------------------------------------------------
> *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> 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 ???
>
> 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=Downloads&d_op=viewdownload&cid=43
> <http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=43>>
>
> And the xAP schema to do so:
>
> <http://www.xapautomation.org/modules.php?name=Sections&op=viewarticle&artid=8
> <http://www.xapautomation.org/modules.php?name=Sections&op=viewarticle&artid=8>>
>
> HTH,
>
> S
> --
> Stuart Booth <stuart@xxxxxxx>
> xAPFramework.net - a xAP software development framework for .net
>
> http://www.xapautomation.org/     
 http://www.xapframework.net/
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "xap_automation
>       <http://groups.yahoo.com/group/xap_automation>"
on the web.
>
>     *  To unsubscribe from this group, send an email to:
>        xap_automation-unsubscribe@xxxxxxx
>       <mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe>
>
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
>
------------------------------------------------------------------------
>


--------------020903040902000900010004
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">


Neil,<br>
<br>
&nbsp;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:<br>
On an Incoming call (ToSend)<br>
When an incoming call is picked up (ToSend_Pickup)<br>
The end of an Incoming call (ToSend_IncEnd)<br>
When a local phone is picked up and/or a digit is pressed
(ToSend_OutDigit)<br>
The end of an Outgoing call (ToSend_OutEnd)<br>
When an IM contact changes state (ToSendIM)<br>
<br>
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 &lt;start&gt; and
an
&lt;end&gt; and insertable&nbsp; 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:<br>
<br>
&lt;start&gt;<br>
Type=raw:Mail.Outgoing<br>
Target=&gt;<br>
&lt;raw&gt;<br>
Message<br>
{<br>
<a class="moz-txt-link-abbreviated" href="mailto:To=james@xxxxxxx";>To=james@xxxxxxx</a><br>
<a class="moz-txt-link-abbreviated" href="mailto:From=telephone@xxxxxxx";>From=telephone@xxxxxxx</a><br>
Subject=*Direction* Call from *NameCompanyNumber*<br>
}<br>
Body.Text<br>
{<br>
Text.1=*Direction* Call from *NameCompanyNumber*<br>
Text.2=on *LineDescription* from *LocationSTD*<br>
}<br>
&lt;/raw&gt;<br>
&lt;end&gt;<br>
<br>
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!<br>
<br>
Hope all this is of help and if you have any questions just ask.<br>
<br>
James<br>
<br>
<br>
Neil Frost wrote:
<blockquote
cite="mid287B62DA4E419A4390EE493CCCF5E55A2E81@xxxxxxx"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
">
<meta name="Generator" content="MS Exchange Server
version 6.5.6944.0">
<title>Re: [xap_automation] xAP &amp; SQL</title>
<div id="idOWAReplyText71329" dir="ltr">
<div dir="ltr"><font color="#000000"
face="Arial" size="2">thanks,
I'll look at this tonight.</font></div>
</div>
<div dir="ltr"><br>
<hr tabindex="-1">
<font face="Tahoma"
size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:xap_automation@xxxxxxx";>xap_automation@xxxxxxx</a>
on behalf of Stuart Booth<br>
<b>Sent:</b> Tue 12/07/2005 13:35<br>
<b>To:</b> <a class="moz-txt-link-abbreviated"
href="mailto:xap_automation@xxxxxxx";>xap_automation@xxxxxxx</a><br>
<b>Subject:</b> Re: [xap_automation] xAP &amp;
SQL<br>
</font><br>
</div>
<div>
<p><font size="2">On Tue, 12 Jul 2005 13:25:28 +0100,
Kevin Hawkins<br>
<a class="moz-txt-link-rfc2396E" href="mailto:lists@xxxxxxx";>&lt;lists@xxxxxxx&gt;</a>
wrote:<br>
<br>
&gt;NB&nbsp; I would have to check that we actually have such a xAP
application<br>
&gt;to send an email via a xAP schema - I had originally thought
Stuarts,<br>
&gt;xAP Mail Monitor did but in just skimming the docs maybe it doesn't
,<br>
&gt;and I thought James and Patrick each had one too although maybe
that was<br>
&gt;SMS.....- does anyone have such an application
???&nbsp;&nbsp;&nbsp;<br>
<br>
An old application that does this, but definitely needs an update
(the<br>
schema links on this page are out of date I now notice):<br>
<br>
&lt;<a
href="http://www.xapframework.net/modules.php?name=Downloads&amp;d_op=viewdownload&amp;cid=43";>http://www.xapframework.net/modules.php?name=Downloads&amp;d_op=viewdownload&amp;cid=43</a>&gt;<br>
<br>
And the xAP schema to do so:<br>
<br>
&lt;<a
href="http://www.xapautomation.org/modules.php?name=Sections&amp;op=viewarticle&amp;artid=8";>http://www.xapautomation.org/modules.php?name=Sections&amp;op=viewarticle&amp;artid=8</a>&gt;<br>
<br>
HTH,<br>
<br>
S<br>
--<br>
Stuart Booth <a class="moz-txt-link-rfc2396E" href="mailto:stuart@xxxxxxx";>&lt;stuart@xxxxxxx&gt;</a><br>
xAPFramework.net - a xAP software development framework for .net<br>
<br>
<a href="http://www.xapautomation.org/";>http://www.xapautomation.org/</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.xapframework.net/";>http://www.xapframework.net/</a><br>
<br>
<br>
<br>

xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.