This document was generated from CDN thread
Created by: Bret Wittmann on 05-05-2010 03:30:17 AM
I am writing a piece of code to extract the Call ID - But sometimes it takes two places and other times it only takes 1 place. Is there a way to set the call id to the same number ? When does the call id wrap around to 0 again ? I am using a C90 version 3.0..
Thanks,
Bret
Subject: RE: Call ID
Replied by: David Bruun-Lie on 05-05-2010 10:08:30 AM
Hi Bret,
if you download the crestron module from this site you'll see how I do it in simpl+ in the file Tandberg C90 + C60 Call Control v1.3.usp. See ANALOG_OUTPUT CallStatus_CallId.
Not quite sure what you mean by "Is there a way to set the call id to the same number". If you mean can call 1 allways have callId 1 call 2 have callId 2 etc then no, not on the API. But this is what I simulate in the Crestron Module. Apart from inside the abovementioned SIMPL+ module the rest of the Crestron module operates solely on Call1 Call2 and Call3.
On the API I wouldn't worry too much about the wrapping of the callId. It wraps around after about 2 billion calls - but is also reset to 0 after boot.
Regards,
David
Subject: RE: Call ID
Replied by: Bret Wittmann on 06-05-2010 03:58:46 AM
Thanks Brian --
I was able to extract that analog output "CallStatus_Callid" from your Simp+ Module so that I could use it as it is needed when updating the Video frame "frameid" xcommand parameter when VideoInputSource is remotepresentation. However, when using that analog number, crestron would convert it to Hex equivalent and it wouldn't work, so I had to work around that with more simpl+ and now it works.
By the way --not like it matters much, but I believe Crestron series 2 processors are maxed out at 16 bit unsigned integers and only go to 65535 so if the callid wraps to 2 billion we might have trouble -- no ? haha
Thanks,
Bret