By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,136 Members | 1,202 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,136 IT Pros & Developers. It's quick & easy.

Contact ID alarm system in C#.NET with VoIP

P: 1
Hello guys,

Pls help me, I really need your help!

In my workplace we've got a Micron SCORPION Z4120C alarm system that's been connected to the Central Station. But my boss would rather like to monitor the system on his own. And I'm in charge of finding out the best solution for this purpose.

According to this document it can be carried out though our VoIP network: It can be possible with a C# program. It's OK, C#, C, C++, Visual Basic etc. programming is not a problem.

But unfortunetely I'm not really familiar with Voice over IP developments. And it's not really clear for me that why is it important to create a softphone firstly???

Expand|Select|Wrap|Line Numbers
  1. static ISoftPhone mySoftphone; // softphone object
  2. static IPhoneLine phoneLine; // phoneline object
  3. static IPhoneCall call;     // call object
Expand|Select|Wrap|Line Numbers
  1. private static void Main(string[] args)
  2. {
  3.     //Create a softphone object with RTP port range 5000-10000, and SIP port 5060
  4.     mySoftphone = SoftPhoneFactory.CreateSoftPhone(5000, 10000, 5060);
  6.     foreach (var s in mySoftphone.Codecs)
  7.     {
  8.     mySoftphone.DisableCodec(s.PayloadType);
  9.     }
  10.     mySoftphone.EnableCodec(8); //only PCMA codec enabled
  12.     // SIP account registration data, (supplied by your VoIP service provider)
  13.     var registrationRequired = true;
  14.     var userName = "sipusername"; //1001
  15.     var displayName = "sipdisplayname"; //1001
  16.     var authenticationId = "authenticationid"; //1001
  17.     var registerPassword = "Password"; //1001
  18.     var domainHost = "";
  19.     var domainPort = 5060;     
  20.     // Send SIP regitration request     mySoftphone_Register(mySoftphone, registrationRequired, displayName, userName, authenticationId, registerPassword, domainHost, domainPort);
  21.       mediaConnector = new MediaConnector();     phoneCallAudioSender = new PhoneCallAudioSender();     phoneCallAudioReceiver = new PhoneCallAudioReceiver(); 
  22. contactIdHandler = new ContactIdHandler(); contactIdHandler.ReceivedNotification += contactIdHandler_ReceivedNotification; 
  23.     // prevents the termination of the application
  24.     while (true) Thread.Sleep(10);
  25. }
(These snippets have been copied and pasted from the full code example:

Please give me a brief summary about the correlation of VoIP and alarm systems! I need to understand that to be able to use these VoIP components!

I'm really looking forward to your answers!

Thanks a lot in advance,
Jul 4 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.