Home | History | Annotate | Download | only in sip

Lines Matching defs:this

4  * This software was developed by employees of the National Institute of
11 * This software is provided by NIST as a service and is expressly
20 * Permission to use this software is contingent upon your acceptance
21 * of the terms of this agreement
131 * Stop processing messages for this provider. Post an empty message to our
142 this.eventScanner.stop();
154 return (ListeningPoint) this.listeningPoints.get(transport
172 + transaction + "this.sipListener = "
173 + this.getSipListener() + "sipEvent.source = "
189 this.eventScanner.addEvent(eventWrapper);
192 this.eventScanner.deliverEvent(eventWrapper);
198 this.eventScanner = sipStack.getEventScanner(); // for quick access.
199 this.sipStack = sipStack;
200 this.eventScanner.incrementRefcount();
201 this.listeningPoints = new ConcurrentHashMap<String,ListeningPointImpl>();
202 this.automaticDialogSupportEnabled = this.sipStack
204 this.dialogErrorsAutomaticallyHandled = this.sipStack.isAutomaticDialogErrorHandlingEnabled();
234 this.sipListener = sipListener;
239 * This method is deprecated (non-Javadoc)
245 if (this.listeningPoints.size() > 0)
246 return (ListeningPoint) this.listeningPoints.values().iterator()
258 String callId = Utils.getInstance().generateCallIdentifier(this.getListeningPoint()
288 // Be kind and assign a via header for this provider if the user is
291 ListeningPointImpl lp = (ListeningPointImpl) this
325 ((SIPTransaction) retval).addEventListener(this);
355 ListeningPointImpl listeningPoint = (ListeningPointImpl) this
369 // An out of dialog route was found. Assign this to the
389 //set port and transport if user hasn't already done this.
407 // create a new dialog to contain this transaction
408 // provided this is necessary.
409 // This could be a re-invite
414 else if (this.isAutomaticDialogSupportEnabled()) {
426 ct.addEventListener(this);
478 sipRequest, (ListeningPointImpl) this.getListeningPoint());
509 transaction.addEventListener(this);
512 // this tx gets his own dialog.
520 if (sipRequest.getMethod().equals(Request.INVITE) && this.isDialogErrorsAutomaticallyHandled()) {
526 this.sipStack.putDialog(dialog);
635 return (SipStack) this.sipStack;
644 if (sipListener == this.getSipListener()) {
645 this.sipListener = null;
705 if (this.listeningPoints.containsKey(hop.getTransport()
708 this.getListeningPoint(hop.getTransport()).getIPAddress(),
709 this.getListeningPoint(hop.getTransport()).getPort(), hop);
748 if ( st != null && st.getState() != TransactionState.TERMINATED && this.isAutomaticDialogSupportEnabled()) {
782 ListeningPointImpl listeningPoint = (ListeningPointImpl) this
789 this.getListeningPoint(hop.getTransport()).getIPAddress(),
806 lp.sipProvider = this;
808 this.address = listeningPoint.getIPAddress();
809 this.port = listeningPoint.getPort();
810 // This
811 this.listeningPoints.clear();
812 this.listeningPoints.put(transport, listeningPoint);
833 throw new SipException("Dialog cannot be created for this method "
860 if (sipRequest.getMethod().equals(Request.INVITE) && this.isDialogErrorsAutomaticallyHandled()) {
870 // A response has not yet been received, then set this up as the
885 "Cannot call this method after response is received!");
888 dialog.addEventListener(this);
911 // Treat this like a timeout event. (Suggestion from Christophe).
917 ev = new TimeoutEvent(this, (ServerTransaction) errorObject,
925 ev = new TimeoutEvent(this, (ClientTransaction) errorObject,
929 this.handleEvent(ev, (SIPTransaction) errorObject);
931 // This is a timeout event.
937 ev = new TimeoutEvent(this, (ServerTransaction) errorObject,
946 ev = new TimeoutEvent(this, (ClientTransaction) errorObject,
949 this.handleEvent(ev, (SIPTransaction) errorObject);
952 // This is a timeout retransmit event.
953 // We should never get this if retransmit filter is
961 this.sipStack.getStackLogger());
967 ev = new TimeoutEvent(this, (ServerTransaction) errorObject,
970 ev = new TimeoutEvent(this, (ClientTransaction) errorObject,
973 this.handleEvent(ev, (SIPTransaction) errorObject);
993 DialogTimeoutEvent ev = new DialogTimeoutEvent(this, sipDialog, reason);
995 this.handleEvent(ev, null);
1005 ListeningPoint[] retval = new ListeningPointImpl[this.listeningPoints
1007 this.listeningPoints.values().toArray(retval);
1019 if (lp.sipProvider != null && lp.sipProvider != this)
1023 if (this.listeningPoints.isEmpty()) {
1026 this.address = listeningPoint.getIPAddress();
1027 this.port = listeningPoint.getPort();
1029 if ((!this.address.equals(listeningPoint.getIPAddress()))
1030 || this.port != listeningPoint.getPort())
1035 if (this.listeningPoints.containsKey(transport)
1036 && this.listeningPoints.get(transport) != listeningPoint)
1040 // This is for backwards compatibility.
1041 lp.sipProvider = this;
1043 this.listeningPoints.put(transport, lp);
1057 this.listeningPoints.remove(lp.getTransport().toUpperCase());
1062 * Remove all the listening points for this sip provider. This is called
1066 for (Iterator it = this.listeningPoints.values().iterator(); it
1082 this.automaticDialogSupportEnabled = automaticDialogSupportEnabled;
1083 if ( this.automaticDialogSupportEnabled ) {
1084 this.dialogErrorsAutomaticallyHandled = true;
1100 this.dialogErrorsAutomaticallyHandled = true;
1104 return this.dialogErrorsAutomaticallyHandled;