public static async Task <bool> SipUdpPingAsync(this ISipClient sipClient, string targetHost, int port) { SipDialogue sd = sipClient.GetNewDialogue(RequestMethods.Options); await sd.StartDialogueFlow(); return(true); }
/// <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); }
public static async Task RegisterAsync(this ISipClient sipClient) { SipDialogue sd = sipClient.GetNewDialogue(RequestMethods.Register); await sd.StartDialogueFlow(); }