linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] sip test case automation using C#_Linphone API


From: Surender Singh
Subject: [Linphone-developers] sip test case automation using C#_Linphone API
Date: Fri, 9 Dec 2016 07:18:23 +0000

Hello,

 

First of all Thanks to develop such a SIP User agent client .

 

I am new for Linphone  and want to write some test script using C# using Linphone API.

 

1)      Register the users

2)      Make the two calls

3)      Three party calls etc…

 

I tried to registered the two users and got success  But I unable to make calls to each other.

 

Please suggest me and below is my C# code…

 

Using sipdotnet

 

Account account = new Account("2002", "2002", "1.1.1.1");

            Phone DN1 = new Phone(account);

            DN1.Connect();

 

Account account = new Account("2003", "2003", "1.1.1.1");

            Phone DN2 = new Phone(account);

            DN2.Connect();

 

DN1.MakeCall("sip:address@hidden");

 

sipdotnet.Linphone.LinphoneCall lincall = new Linphone.LinphoneCall();

            lincall.SetCallType(Call.CallType.Incoming);

            lincall.SetFrom("sip:address@hidden");

            lincall.SetTo("sip:address@hidden");

            //lincall.SetCallState(Call.CallState.None);

 

            DN1.ReceiveCall(lincall);

 

Regards

Surender Singh

 



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]