PDA

View Full Version : xAP send message from Girder 5 to xAPSwitchboard



jolly1
December 19th, 2012, 11:15 AM
Hi Iam trying to send a message from Girder to mi4.switchboard.CINEMA-PC the message never arrives at the destination, but it shows up in girder as


{
v=12
hop=1
uid=FF430000
class=promixis.girder
source=promixis.girder.server
target=mi4.switchboard.CINEMA-PC
}

Outgoing.DigitPressed
{
Digit=4
Dialled=07590601444
}

I am kind of guessing but is it due to class=proximis.girder ?

If so how do I set the class before sending the message

I tried inserting class=CID.Meteor after mi4.switchboard.CINEMA-PC and then have 2 class entries in the header
xap-header






xap.xApGirderDev:Send( "Outgoing.DigitPressed \r"..
"{\nDigit=4\n"..
"Dialled=07590601444\n"..
"}\r","mi4.switchboard.CINEMA-PC")







As ever gratefull for any help

jolly1
December 21st, 2012, 07:39 AM
Ah well answering my own question..hmm not sure if that is the first step in insanity :)

in xap.lua add the following

xap.xApGirderCTI = xap.NewDevice('CTI.event','promixis.girder.server' ,'FF430000'

Would require one line for each class for xAP

Well another question if I created and entry

xap.xApGirderCTI = xap.NewDevice('CTI.event','promixis.girder.xAPtel' ,'FF430000'

should I enter a new UI eg

xap.xApGirderCTI = xap.NewDevice('CTI.event','promixis.girder.xAPtel' ,'FF420000'