/// <summary>
 /// Hook for storing data members by calling the various AddMember() overloads.
 /// </summary>
 /// <param name="builder">The Jsonizer instance to use for storing data members.</param>
 public void Jsonize(Jsonizer builder)
 {
     builder.AddMember("cdrid", CDRID.ToString(), true);
     builder.AddMember("dictionary", Dictionary.ToString(), true);
     builder.AddMember("language", Language.ToString(), true);
     builder.AddMember("audience", Audience.ToString(), true);
 }
예제 #2
0
        public SIPDialogue ToSIPDialogue()
        {
            SIPDialogue dialogue = new SIPDialogue();

            dialogue.Id                = ID;
            dialogue.CDRId             = CDRID.GetValueOrDefault();
            dialogue.LocalTag          = LocalTag;
            dialogue.RemoteTag         = RemoteTag;
            dialogue.CallId            = CallID;
            dialogue.CSeq              = CSeq;
            dialogue.BridgeId          = BridgeID;
            dialogue.RemoteTarget      = SIPURI.ParseSIPURIRelaxed(RemoteTarget);
            dialogue.LocalUserField    = SIPUserField.ParseSIPUserField(LocalUserField);
            dialogue.RemoteUserField   = SIPUserField.ParseSIPUserField(RemoteUserField);
            dialogue.ProxySendFrom     = ProxySIPSocket;
            dialogue.RouteSet          = string.IsNullOrWhiteSpace(RouteSet) ? null : SIPRouteSet.ParseSIPRouteSet(RouteSet);
            dialogue.CallDurationLimit = CallDurationLimit.GetValueOrDefault();
            dialogue.Direction         = Enum.Parse <SIPCallDirection>(Direction, true);
            dialogue.Inserted          = Inserted;

            return(dialogue);
        }