|
Hi everybody
I have been with this forum for sometime but this is the 1st time i post a question and is not sure if this the right place to start this question.
I am tinkering to build a vb.exe wherein it will communicate with a Pansonic PABX telephone system through a USB or Com port using the MSComm object. The objective here is to pick up the data coming from the PABX such as time of call, duration, destination number and costs of call plus sending out data to tell the various extension to ring at certain predetermined time or to bar the extension.
It is said that Telephony Application Programming Interface (TAPI) is a Microsoft Windows API, which provides computer telephony integration and enables PCs running Microsoft Windows to use telephone services can do do the job.
This being the first time i tinker into communication issues i am not sure if using the msComm is the right step. I feel that TAPI is a more complex way to go.
More importantly i am not sure what protocol the PABX will work on. My attempts to talk to Panasonic company on this had not been too fruitful.
Any pointers from members of this forum will much appreciated.
modified on Wednesday, July 21, 2010 1:08 AM
|
|
|
|
|
What is the model of the PABX?
I doubt TAPI is the way to go, that will be more for actually placing calls,sending fax's etc.
I would imagine it would use a serial protocol via a usb or DB-9/RS232 port.
This site ( http://www.pbxguru.com/[^] )makes reference to programming software etc. for panasonic exchanges, so it must be possible, hence the reason for asking the model.
The may use some strange non-standard protocol i.e. the actual message send and received by the unit, and it maybe is not in the public domain. and the port is used by their own software.
Until you provide the model, it would be difficult to determine how it is done.
|
|
|
|
|
Thanks Dave
The model was Panasonic KX-TD500, but the new version is now TDA200ML.
I am comfortable with rs232 port as i have tinkered with the comm1 object properties & events namely .portOpen, .commEvent & .input via the reference mscomm32.oca.
I have no actual experience communicating with a PABX. I need to understand the string to send to & from and all the properties / parameters in the system.
I had a look at your proposed link and was reading the "help" from the programmer application for KX-TD500 and just wondering if it can handle the new TDA200ML. Are you in any way related to the info@voicecallcentral.com?
Thanks again & waiting for further advice.
modified on Friday, July 23, 2010 12:32 AM
|
|
|
|
|
Hi,
I add a checkbox in a datagridview that is an unbound column. Onload it is an unchecked state, when I click on it, I get this error message Index -1 does not have a value. I am lost..
what i want to do is to able to check and uncheck the checkbox to do insert, delete current row selected...
Can anyone guide me please..
thanks advance
|
|
|
|
|
Then probably your row contains no (actual) data.
But why use a checkboxcolumn for this and not .SelectedItems ?
|
|
|
|
|
Hi Friends,
I am converting an excel to xml using vba. THere this excel data having &. But when converting & to xml it is giving error. So I am using the following funtion to replace &.
Function RemoveAmpersands(AnyStr As String) As String
Dim MyPos As Integer
' replace Ampersands (&) with plus symbols (+)
MyPos = InStr(1, AnyStr, "&")
Do While MyPos > 0
Mid(AnyStr, MyPos, 1) = "+"
MyPos = InStr(1, AnyStr, "&")
Loop
End
But the above function replacing with +. But I wanted to display in the browser as & only. Kindly Help.
Regards,
Priya.
|
|
|
|
|
Would using & fix the problem?
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
HI
Thanks. I have not tried it ..let me try and reply
Thanks,
Priya.
|
|
|
|
|
Hi,
& is not working. Its going into infinitely....Any other approach to implement this?
Thanks,
Priya.
|
|
|
|
|
Forgot how to use code blocks already?
Did you get your previous xml problem working in the end, didn't hear any more in the thread?
|
|
|
|
|
Hi Dave,
Thanks. I think you are talking abt the function i ve written..without returning that function..with function name..
I have that line in my code..since it is big code i just copy pasted only first part and end function missed to paste last to previus line.
Here is the function:
Function RemoveAmpersands(AnyStr As String) As String
Dim MyPos As Integer
' replace Ampersands (&) with plus symbols (+)
MyPos = InStr(1, AnyStr, "&")
Do While MyPos > 0
Mid(AnyStr, MyPos, 1) = "+"
MyPos = InStr(1, AnyStr, "&")
Loop
RemoveAmpersands = AnyStr
End Function
If you are trying to say something pls reply..
Thanks
Priya
|
|
|
|
|
priyaahh wrote: I am using the following funtion to replace &.
Your code replaces all the ampersands (&) in a string with plus (+) which is what you say you want to do.
Then you say:
priyaahh wrote: But the above function replacing with +. But I wanted to display in the browser as & only.
...so, what exactly do want to achieve?
BTW this would do the same thing in one line.
Dim newStr As String = AnyStr.Replace("&", "+")
It’s not because things are difficult that we do not dare, it’s because we do not dare that things are difficult. ~Seneca
|
|
|
|
|
Hi
Thanks. Yes my code is replacing & with +. Because if i display as & in XML it is giving error. But i wanted to display & as & not as +. Is there any wy to display & in XML browser.
Regards,
Priya.
|
|
|
|
|
Then riced's answer (above) is what you need. I found this with Google http://articles.techrepublic.com.com/5100-10878_11-5032714.html[^]
Here's an extract:
Ampersand—&—&
greater-than—>—>
less-than—<—<
apostrophe—'—'
quote—"—"
If I may say so, you seem to make a lot of work for yourself!
It’s not because things are difficult that we do not dare, it’s because we do not dare that things are difficult. ~Seneca
|
|
|
|
|
Hi Annie,
Thanks for your reply.
I tried using & but when i use this, I am not getting any output and the application is processing.....and not stopping..I have to use TaskManager and End the application.
Kindly help.
Regards,
Priya.
|
|
|
|
|
OK, here are two code snippets that illustrate what you need.
<p>
You can find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
</p>
After the 152368 you see ampersand(&), letter a, letter m, letter p then semi-colon(;)? That is what is required in place of the &. This will do the replacement for you:
Dim newStr As String = oldStr.Replace("&", "&")
It’s not because things are difficult that we do not dare, it’s because we do not dare that things are difficult. ~Seneca
|
|
|
|
|
Dim o = IIf(True, "1", CType("", Decimal))
This gives you an invalid cast exception.
weak..
|
|
|
|
|
i always wanted to know that......................
|
|
|
|
|
I bet you still want to know why that happens?
|
|
|
|
|
Tune in next week to see the next thrilling installment...
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
|
Yeah, and ....?? It doesn't surprise me in the least.
You cannot convert String.Emtpy to a Decimal type and, the way you coded it, IIF can either return a String ("1") or Decimal. The compiler can't figure out what the primary type of the return value is supposed to be and there is no implicit conversion available to go from String to Decimal. If you has IIF returning two different numeric types, say Integer and Short, this wouldn't be a problem because a Short can be upsized into an Integer, so the return type for IIF would be Integer.
|
|
|
|
|
So why can I compile this then?
In c# you can't...
|
|
|
|
|
C# is a real programming language.
VB/VB.NET isn't by default; you can improve things a bit by starting with OPTION STRICT ON .
|
|
|
|
|
Does C# have a CType[^] function? I'd guess that C# checks your cast at compiletime, whereas the CType function may throw runtime errors.
They're not the same languages, so behaviour doesn't have to be similar
I are Troll
|
|
|
|