/// <summary> /// Create a new <Sip/> element and append it as a child of this element. /// </summary> /// <param name="sipUrl"> SIP URL, the body of the TwiML Element. </param> /// <param name="username"> SIP Username </param> /// <param name="password"> SIP Password </param> /// <param name="url"> Action URL </param> /// <param name="method"> Action URL method </param> /// <param name="statusCallbackEvent"> Status callback events </param> /// <param name="statusCallback"> Status callback URL </param> /// <param name="statusCallbackMethod"> Status callback URL method </param> public Dial Sip(Uri sipUrl = null, string username = null, string password = null, Uri url = null, Twilio.Http.HttpMethod method = null, List <Sip.EventEnum> statusCallbackEvent = null, Uri statusCallback = null, Twilio.Http.HttpMethod statusCallbackMethod = null) { var newChild = new Sip( sipUrl, username, password, url, method, statusCallbackEvent, statusCallback, statusCallbackMethod ); this.Append(newChild); return(this); }
public Dial Sip(Sip sip) { this.Append(sip); return(this); }