/** Costructs a new MessageAgent. */ public MessageAgent( SipProvider sip_provider, UserAgentProfile user_profile, MessageAgentListener listener) { this.sip_provider = sip_provider; this.log = sip_provider.getLog(); this.sip_interface = null; this.listener = listener; this.user_profile = user_profile; // if no contact_url and/or from_url has been set, create it now user_profile.initContactAddress(sip_provider); }
/** Creates a new Call. */ public Call( SipProvider sip_provider, String from_url, String contact_url, CallListener call_listener) { this.sip_provider = sip_provider; this.log = sip_provider.getLog(); this.listener = call_listener; this.from_url = from_url; this.contact_url = contact_url; this.dialog = null; this.local_sdp = null; this.remote_sdp = null; }
/** Stops listening for incoming invite requests. */ public void halt() { sip_provider.removeSelectiveListener(new MethodId(SipMethods.INVITE)); }
/** * Creates a new InviteDialogWatcher of type <i>method</i>, and starts listening for incoming * invite requests. */ public InviteDialogWatcher(SipProvider sip_provider, InviteDialogWatcherListener listener) { this.listener = listener; sip_provider.addSelectiveListener(new MethodId(SipMethods.INVITE), this); }