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


  • Subject: RE: xAP & SQL
  • From: "Neil Frost" <neil@xxxxxxxxxxxxx>
  • Date: Fri, 15 Jul 2005 21:26:41 +0100

------_=_NextPart_001_01C5897B.8269B2B8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I've finally got round to testing this.

I had " " around my email addresses and it failed, remove then
and it works.

Now if I change the

Text.1=*Direction* Call from *NameCompanyNumber*

to

Text.1=*Direction* Call to *NameCompanyNumber*

in the ToSend_OutEnd.txt file, it fails.

is Call from a reserved phrase or something?

Thanks all

Neil


________________________________

From: xap_automation@xxxxxxx on behalf of James
Sent: Wed 13/07/2005 01:02
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] xAP & SQL


I just tried loading the console verion of the email sending app from
Stuart's link, adding the <start><end> block to the tosend file
and tried a call. Well the good news was it worked so in theory all the
issues  will be a config or network one. A few things to check:
in SendEMail.exe.config fill in the <add key="SMTPServer"
value="IP or address of smtp" />
make sure that when the block was added to the ToSend file the
<start> and <end> are on lines all by themselves.
Assuming all this is running on a single pc then just like xpl, xAP needs a
hub to be running
http://www.xapframework.net/modules.php?name=Content&pa=showpage&pid=8
The hub should be started before all other applications for it to work
correctly, the windows service version is good for this.

One thing I didn't mention was that Switcboard reads the event files when
the event is fired. So you can edit these files and changes will be live,
you don't need to restart Switchboard.

If all that fails then give Viewer a go
http://www.xapframework.net/modules.php?name=Content&pa=showpage&pid=9
It will show you all messages being received so under Switchboard you
should see your mail message. You should see messages from all your apps,
if after a couple of minutes one doesn't show then that app will need a
checkup.

hth
James

Neil Frost wrote:

Is there a way to troubleshoot this?



I've installed and started the sendmail service added the message below to
the ToSend.txt file, restarted xAP Switchboard.



Receive an incoming call, complete the call and no email...



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



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> <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 ???

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>

And the xAP schema to do so:

<http://www.xapautomation.org/modules.php?name=Sections&op=viewarticle&artid=8>

HTH,

S
--
Stuart Booth <stuart@xxxxxxx> <mailto:stuart@xxxxxxx>
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

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.