예제 #1
0
        public static async Task <bool> SipUdpPingAsync(this ISipClient sipClient, string targetHost, int port)
        {
            SipDialogue sd = sipClient.GetNewDialogue(RequestMethods.Options);
            await sd.StartDialogueFlow();

            return(true);
        }
예제 #2
0
        /// <summary>
        ///     Creates new dialogue for communication with registrar server.
        /// </summary>
        /// <returns>New sip dialogue.</returns>
        public SipDialogue GetNewDialogue(string initRequest)
        {
            SipDialogue sd = new SipDialogue(
                initRequest,
                Account.RegistrarUri,
                Account.GetAccountIdentification(),
                TransactionLayer);

            return(sd);
        }
예제 #3
0
 public static async Task RegisterAsync(this ISipClient sipClient)
 {
     SipDialogue sd = sipClient.GetNewDialogue(RequestMethods.Register);
     await sd.StartDialogueFlow();
 }