我开车有点疯狂,因为我试图制作一个不同版本的restcomm应用程序点击调用,我找不到一种方法来在服务器上运行两个不同的servlet(Tomcat 8 telestax版本)。具体来说,我想使用SipRegister作为注册servlet e让另一个使另一个工作。 无论如何这是我试图修改的sip.xml。我已经尝试过servlet-mapping而没有成功。有什么建议吗?
<?xml version="1.0" encoding="UTF-8"?>
<sip-app>
<app-name>at.project.servlet.sip.SimpleApplication</app-name>
<display-name>Sip Servlet App </display-name>
<description>Third Party Call Control</description>
<servlet-selection>
<main-servlet> SipRegister</main-servlet>
</servlet-selection>
<servlet>
<servlet-name>SimpleSipServlet</servlet-name>
<display-name>SimpleSipServlet</display-name>
<description>Simple SIP servlet</description>
<servlet-class>
at.project.servlet.sip.SimpleSipServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>SipRegister</servlet-name>
<display-name>SipRegister</display-name>
<description>Registration Servlet</description>
<servlet-class>
at.project.servlet.sip.SipRegister
</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<listener>
<listener-class>
at.project.servlet.sip.SimpleSipServlet
</listener-class>
</listener>
</sip-app>