Example #1
0
 /** 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);
 }
Example #2
0
 /** 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;
 }