sipsorcery-mono /sipsorcery-core/SIPSorcery.SIP.App/SIPAssets/ISIPCallManager.cs

Language C# Lines 41
MD5 Hash 81fc52d96fbcb61262146e80b3f953ce
Repository https://github.com/thecc4re/sipsorcery-mono.git View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SIPSorcery.SIP.App
{
    public interface ISIPCallManager
    {
        string ProcessWebCall(string username, string number, string dialplanName, string replacesCallID);
        void CreateDialogueBridge(SIPDialogue firstLegDialogue, SIPDialogue secondLegDialogue, string owner);
        void ReInvite(SIPDialogue firstLegDialogue, SIPDialogue substituteDialogue);
        int GetCurrentCallCount(string owner);
        void QueueNewCall(ISIPServerUserAgent serverUA);
        void AddWaitingApplication(CallbackWaiter callbackWaiter);
    }

    public enum CallbackWaiterEnum
    {
        None = 0,
        GoogleVoice = 1,
    }

    public class CallbackWaiter
    {
        public string Owner;
        public CallbackWaiterEnum CallbackApplication;
        public string UniqueId;
        public Func<ISIPServerUserAgent, bool> IsMyCall;
        public DateTime Added = DateTime.Now;

        public CallbackWaiter(string owner, CallbackWaiterEnum application, string uniqueId, Func<ISIPServerUserAgent, bool> isMyCall)
        {
            Owner = owner;
            CallbackApplication = application;
            UniqueId = uniqueId;
            IsMyCall = isMyCall;
        }
    }
}
Back to Top