Exemplo n.º 1
0
        public string ToXMLNoParent()
        {
            string customerXML =
                "  <id>" + Id + "</id>" + m_newLine +
                "  <customerusername>" + CustomerUsername + "</customerusername>" + m_newLine +
                "  <customerpassword>" + CustomerPassword + "</customerpassword>" + m_newLine +
                "  <salt>" + Salt + "</salt>" + m_newLine +
                "  <emailaddress>" + EmailAddress + "</emailaddress>" + m_newLine +
                "  <firstname>" + SafeXML.MakeSafeXML(FirstName) + "</firstname>" + m_newLine +
                "  <lastname>" + SafeXML.MakeSafeXML(LastName) + "</lastname>" + m_newLine +
                "  <city>" + SafeXML.MakeSafeXML(City) + "</city>" + m_newLine +
                "  <country>" + Country + "</country>" + m_newLine +
                "  <adminid>" + AdminId + "</adminid>" + m_newLine +
                "  <adminmemberid>" + AdminMemberId + "</adminmemberid>" + m_newLine +
                "  <website>" + SafeXML.MakeSafeXML(WebSite) + "</website>" + m_newLine +
                "  <securityquestion>" + SecurityQuestion + "</securityquestion>" + m_newLine +
                "  <securityanswer>" + SafeXML.MakeSafeXML(SecurityAnswer) + "</securityanswer>" + m_newLine +
                "  <createdfromipaddress>" + CreatedFromIPAddress + "</createdfromipaddress>" + m_newLine +
                "  <inserted>" + Inserted.ToString() + "</inserted>" + m_newLine +
                "  <active>" + Active + "</active>" + m_newLine +
                "  <suspended>" + Suspended + "</suspended>" + m_newLine +
                "  <suspendedreason>" + SuspendedReason + "</suspendedreason>" + m_newLine +
                "  <executioncount>" + ExecutionCount + "</executioncount>" + m_newLine +
                "  <maxexecutioncount>" + MaxExecutionCount + "</maxexecutioncount>" + m_newLine +
                "  <authorisedapps>" + AuthorisedApps + "</authorisedapps>" + m_newLine +
                "  <invitecode>" + InviteCode + "</invitecode>" + m_newLine +
                "  <emailaddressconfirmed>" + EmailAddressConfirmed + "</emailaddressconfirmed>" +
                "  <apikey>" + APIKey + "</apikey>" +
                "  <servicelevel>" + ServiceLevel + "</servicelevel>";

            return(customerXML);
        }
Exemplo n.º 2
0
        public string ToXMLNoParent()
        {
            string localSocketStr  = (m_sipCDR.LocalSIPEndPoint != null) ? m_sipCDR.LocalSIPEndPoint.ToString() : null;
            string remoteSocketStr = (m_sipCDR.RemoteEndPoint != null) ? m_sipCDR.RemoteEndPoint.ToString() : null;
            string progressTimeStr = (m_sipCDR.ProgressTime != null) ? m_sipCDR.ProgressTime.Value.ToString("o") : null;
            string answerTimeStr   = (m_sipCDR.AnswerTime != null) ? m_sipCDR.AnswerTime.Value.ToString("o") : null;
            string hangupTimeStr   = (m_sipCDR.HangupTime != null) ? m_sipCDR.HangupTime.Value.ToString("o") : null;

            string cdrXML =
                "  <id>" + m_sipCDR.CDRId.ToString() + "</id>" + m_newLine +
                "  <owner>" + m_sipCDR.Owner + "</owner>" + m_newLine +
                "  <adminmemberid>" + m_sipCDR.AdminMemberId + "</adminmemberid>" + m_newLine +
                "  <direction>" + m_sipCDR.CallDirection + "</direction>" + m_newLine +
                "  <inserted>" + Inserted.ToString("o") + "</inserted>" + m_newLine +
                "  <created>" + m_sipCDR.Created.ToString("o") + "</created>" + m_newLine +
                "  <dsturi>" + SafeXML.MakeSafeXML(m_sipCDR.Destination.ToString()) + "</dsturi>" + m_newLine +
                "  <fromheader>" + SafeXML.MakeSafeXML(m_sipCDR.From.ToString()) + "</fromheader>" + m_newLine +
                "  <callid>" + m_sipCDR.CallId + "</callid>" + m_newLine +
                "  <localsocket>" + localSocketStr + "</localsocket>" + m_newLine +
                "  <remotesocket>" + remoteSocketStr + "</remotesocket>" + m_newLine +
                "  <bridgeid>" + m_sipCDR.BridgeId.ToString() + "</bridgeid>" + m_newLine +
                "  <inprogresstime>" + progressTimeStr + "</inprogresstime>" + m_newLine +
                "  <inprogressstatus>" + m_sipCDR.ProgressStatus + "</inprogressstatus>" + m_newLine +
                "  <inprogressreason>" + m_sipCDR.ProgressReasonPhrase + "</inprogressreason>" + m_newLine +
                "  <answeredtime>" + answerTimeStr + "</answeredtime>" + m_newLine +
                "  <answeredstatus>" + m_sipCDR.AnswerStatus + "</answeredstatus>" + m_newLine +
                "  <answeredreason>" + m_sipCDR.AnswerReasonPhrase + "</answeredreason>" + m_newLine +
                "  <hunguptime>" + hangupTimeStr + "</hunguptime>" + m_newLine +
                "  <hungupreason>" + m_sipCDR.HangupReason + "</hungupreason>" + m_newLine +
                "  <bridgeid>" + m_sipCDR.DialPlanContextID.ToString() + "</bridgeid>" + m_newLine;

            return(cdrXML);
        }
Exemplo n.º 3
0
        public string ToXMLNoParent()
        {
            string customerSessionXML =
                "    <id>" + Id + "</id>" + m_newLine +
                "    <sessionid>" + SessionID + "</sessionid>" + m_newLine +
                "    <customerusername>" + CustomerUsername + "</customerusername>" + m_newLine +
                "    <inserted>" + Inserted.ToString() + "</inserted>" + m_newLine +
                "    <expired>" + Expired + "</expired>" + m_newLine +
                "    <ipaddress>" + IPAddress + "</ipaddress>" + m_newLine +
                "    <timelimitminutes>" + TimeLimitMinutes + "</timelimitminutes>";

            return(customerSessionXML);
        }
Exemplo n.º 4
0
        public string ToXMLNoParent()
        {
            string hanupAtStr = (HangupAt != null) ? HangupAt.Value.ToString("o") : null;

            string dialogueXML =
                "  <id>" + SIPDialogue.Id + "</id>" + m_newLine +
                "  <owner>" + SIPDialogue.Owner + "</owner>" + m_newLine +
                "  <adminmemberid>" + SIPDialogue.AdminMemberId + "</adminmemberid>" + m_newLine +
                "  <localtag>" + SIPDialogue.LocalTag + "</localtag>" + m_newLine +
                "  <remotetag>" + SIPDialogue.RemoteTag + "</remotetag>" + m_newLine +
                "  <callid>" + SIPDialogue.CallId + "</callid>" + m_newLine +
                "  <cseq>" + SIPDialogue.CSeq + "</cseq>" + m_newLine +
                "  <bridgeid>" + SIPDialogue.BridgeId + "</bridgeid>" + m_newLine +
                "  <remotetarget>" + SafeXML.MakeSafeXML(SIPDialogue.RemoteTarget.ToString()) + "</remotetarget>" +
                m_newLine +
                "  <localuserfield>" + SafeXML.MakeSafeXML(SIPDialogue.LocalUserField.ToString()) +
                "</localuserfield>" + m_newLine +
                "  <remoteuserfield>" + SafeXML.MakeSafeXML(SIPDialogue.RemoteUserField.ToString()) +
                "</remoteuserfield>" + m_newLine +
                "  <routeset>" + SafeXML.MakeSafeXML(RouteSet) + "</routeset>" + m_newLine +
                "  <proxysipsocket>" + SafeXML.MakeSafeXML(ProxySIPSocket) + "</proxysipsocket>" + m_newLine +
                "  <cdrid>" + SIPDialogue.CDRId + "</cdrid>" + m_newLine +
                "  <calldurationlimit>" + SIPDialogue.CallDurationLimit + "</calldurationlimit>" + m_newLine +
                "  <inserted>" + Inserted.ToString("dd MMM yyyy HH:mm:ss zz") + "</inserted>" + m_newLine +
                "  <hangupat>" + hanupAtStr + "</hangupat>" + m_newLine +
                "  <transfermode>" + TransferMode + "</transfermode>" + m_newLine +
                "  <direction>" + Direction + "</direction>" + m_newLine +
                "  <sdp>" + SafeXML.MakeSafeXML(SDP) + "</sdp>" + m_newLine +
                "  <remotesdp>" + SafeXML.MakeSafeXML(RemoteSDP) + "</remotesdp>" + m_newLine +
                //"  <switchboardcallerdescription>" + SafeXML.MakeSafeXML(SIPDialogue.SwitchboardCallerDescription) + "</switchboardcallerdescription>" + m_newLine +
                //"  <switchboarddescription>" + SafeXML.MakeSafeXML(SIPDialogue.SwitchboardDescription) + "</switchboarddescription>" + m_newLine +
                "  <switchboardowner>" + SafeXML.MakeSafeXML(SIPDialogue.SwitchboardOwner) + "</switchboardowner>" +
                m_newLine +
                "  <switchboardlinename>" + SafeXML.MakeSafeXML(SIPDialogue.SwitchboardLineName) +
                "</switchboardlinename>" + m_newLine +
                "  <crmpersonname>" + SafeXML.MakeSafeXML(SIPDialogue.CRMPersonName) + "</crmpersonname>" + m_newLine +
                "  <crmcompanyname>" + SafeXML.MakeSafeXML(SIPDialogue.CRMCompanyName) + "</crmcompanyname>" +
                m_newLine +
                "  <crmpictureurl>" + SafeXML.MakeSafeXML(SIPDialogue.CRMPictureURL) + "</crmpicutureurl>" + m_newLine;

            return(dialogueXML);
        }