Examples of respondWith()


Examples of org.zoolu.sip.transaction.InviteTransactionServer.respondWith()

                printLog("Incoming SIP Call - Channel busy - Redirect to: "+redirect_Url ,LogLevel.LOW);

                Message resp=MessageFactory.createResponse(msg,302,SipResponses.reasonOf(302),new NameAddress(redirect_Url));
               InviteTransactionServer ts=new InviteTransactionServer(this,msg,null);
                 ts.respondWith(resp);
              return;
           }

            printLog("Invite Request - Sending busy response (486)",LogLevel.MEDIUM);
            InviteTransactionServer ts=new InviteTransactionServer(this,msg,null);
View Full Code Here

Examples of org.zoolu.sip.transaction.InviteTransactionServer.respondWith()

              return;
           }

            printLog("Invite Request - Sending busy response (486)",LogLevel.MEDIUM);
            InviteTransactionServer ts=new InviteTransactionServer(this,msg,null);
              ts.respondWith(MessageFactory.createResponse(msg,486,SipResponses.reasonOf(486),null));
           return;
         }

         if (msg.isRequest() && msg.isNotify())
         {
View Full Code Here

Examples of org.zoolu.sip.transaction.InviteTransactionServer.respondWith()

         if (msg.isRequest() && msg.isNotify())
         {
           // nobody handled it, just respond 405 (method not allowed) to get it to go away
            printLog("Notify Request - Sending unsupported response (405)",LogLevel.MEDIUM);
            TransactionServer ts=new TransactionServer(this,msg,null);
              ts.respondWith(MessageFactory.createResponse(msg,405,SipResponses.reasonOf(405),null));
           return;
         }

        // if we are here, no listener_ID matched..
         printLog("No SipListener found matching that message: message DISCARDED",LogLevel.HIGH);
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

                        {
                          optStat=200;
                          // add capabilities to msg to be sent
                         printLog("OPTION Request - response status="+optStat , LogLevel.HIGH);
                         TransactionServer ts=new TransactionServer(this,msg,null);
                        ts.respondWith(MessageFactory.createResponse(msg,optStat,SipResponses.reasonOf(optStat),null,null,"application/sdp",optBody));
                      return;
                        }
                      }
                      else
                      optStat=200; // assume available if no option handler
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

                      optStat=200; // assume available if no option handler
                }

                 printLog("OPTION Request - response status="+optStat,LogLevel.MEDIUM );
                 TransactionServer ts=new TransactionServer(this,msg,null);
                   ts.respondWith(MessageFactory.createResponse(msg,optStat,SipResponses.reasonOf(optStat),null));
                return;
         }

    // try to look for a transaction
         Identifier key=msg.getTransactionId();
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

                printLog("Incoming SIP Call - Channel busy - Redirect to: "+redirect_Url ,LogLevel.LOW);

                Message resp=MessageFactory.createResponse(msg,302,SipResponses.reasonOf(302),new NameAddress(redirect_Url));
               InviteTransactionServer ts=new InviteTransactionServer(this,msg,null);
                 ts.respondWith(resp);
              return;
           }

            printLog("Invite Request - Sending busy response (486)",LogLevel.MEDIUM);
            InviteTransactionServer ts=new InviteTransactionServer(this,msg,null);
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

              return;
           }

            printLog("Invite Request - Sending busy response (486)",LogLevel.MEDIUM);
            InviteTransactionServer ts=new InviteTransactionServer(this,msg,null);
              ts.respondWith(MessageFactory.createResponse(msg,486,SipResponses.reasonOf(486),null));
           return;
         }

         if (msg.isRequest() && msg.isNotify())
         {
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

         if (msg.isRequest() && msg.isNotify())
         {
           // nobody handled it, just respond 405 (method not allowed) to get it to go away
            printLog("Notify Request - Sending unsupported response (405)",LogLevel.MEDIUM);
            TransactionServer ts=new TransactionServer(this,msg,null);
              ts.respondWith(MessageFactory.createResponse(msg,405,SipResponses.reasonOf(405),null));
           return;
         }

        // if we are here, no listener_ID matched..
         printLog("No SipListener found matching that message: message DISCARDED",LogLevel.HIGH);
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

  
         if (server_profile.do_authentication)
         {  // check message authentication
            Message err_resp=as.authenticateRequest(msg)
            if (err_resp!=null)
            {  t.respondWith(err_resp);
               return;
            }
         }
        
         Message resp=updateRegistration(msg);
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionServer.respondWith()

         if (server_profile.do_authentication)
         {  // add Authentication-Info header field
            resp.setAuthenticationInfoHeader(as.getAuthenticationInfoHeader());
         }
        
         t.respondWith(resp);
      }
      else
      if (!msg.isAck())
      {  // send a stateless error response
         int result=501; // response code 501 ("Not Implemented")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.