Could some one post a HS script to send a Xap message using the Xap conduit?
I am working on a script that will triger on CID recieved from HSP way2call then with a script send the caller name and number to the Xap network.
I just need an example to get me started. This is what I have so far.
Sub Main
dim callname
dim callnmbr
' get the caller directory name
callname = hsp.cidname(1)
' get the phone number
callnmbr = hsp.cidnumber(1)
body="CID.Incoming" & chr(10) & "{" & chr(10) & "name=callname" & chr(10) & "phone=callnmbr" & chr(10) & "}" & chr(10)
hs.plugin("xAP Conduit").sendxapmessage "CID.Incoming",body
End Sub
I am working on a script that will triger on CID recieved from HSP way2call then with a script send the caller name and number to the Xap network.
I just need an example to get me started. This is what I have so far.
Sub Main
dim callname
dim callnmbr
' get the caller directory name
callname = hsp.cidname(1)
' get the phone number
callnmbr = hsp.cidnumber(1)
body="CID.Incoming" & chr(10) & "{" & chr(10) & "name=callname" & chr(10) & "phone=callnmbr" & chr(10) & "}" & chr(10)
hs.plugin("xAP Conduit").sendxapmessage "CID.Incoming",body
End Sub
Comment