I am using Salfin server as a SIP container, NetBeans as IDE, Java language and X-Lite as softphone.<div><br></div><div><a href="http://wiki.glassfish.java.net/Wiki.jsp?page=SipClickToDialExample2">http://wiki.glassfish.java.net/Wiki.jsp?page=SipClickToDialExample2</a></div>
<div><br></div><div>I am also tried to deploy this sample application (above link) but facing the same problem.</div><div><br></div><div>Plz help me to overcome this problem.</div><div><br></div><div>Thanks</div><div>amit</div>
<div><br></div><div><br><br><div class="gmail_quote">On Thu, Feb 12, 2009 at 1:00 PM, Bogdan-Andrei Iancu (via Nabble) <span dir="ltr"><<a href="mailto:ml-user%2B121376-100378857@n2.nabble.com">ml-user+121376-100378857@n2.nabble.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Amit,
<br><br>We are using weSIP for this? or....? Because there is no mention about
<br>the software you are using and definitely is not OpenSIPS as you have
<br>JAVA there :D....
<br><br>Regards,
<br>Bogdan
<br><br>Amit Bansal wrote:
<div><br>> Hi All,
<br>>
<br>> I am trying to build a SIP application which will act as proxy to the
<br>> phones those are connected to it like a server that is in call centers.
<br>>
<br>> I have have made a servlet code is as follows..
<br>>
<br>> package com.sip.servlet;
<br>>
<br>> import javax.servlet.sip.SipServlet;
<br>> import javax.servlet.sip.SipServletRequest;
<br>> import javax.servlet.sip.SipServletResponse;
<br>>
<br>>
<br>> public class SimpleProxyServlet extends SipServlet
<br>> {
<br>>
<br>> protected void doRegister(SipServletRequest request) throws
<br>> IOException
<br>> {
<br>> try
<br>> {
<br>> System.out.println("SipServletRequest: Got doRegister:\n"
<br>> + request);
<br>>
<br>>
<br>> SipServletResponse resp =
<br>> request.createResponse(SipServletResponse.SC_OK);
<br>>
<br>> resp.send();
<br>> }
<br>> catch(Exception e)
<br>> {
<br>> e.printStackTrace();
<br>> }
<br>>
<br>> }
<br>> }
<br>>
<br>> and sip.xml is as follows..
<br>>
<br>>
<br>> <sip-app>
<br>> <display-name>Simple Proxy Servlet</display-name>
<br>> <description>Simple Proxy Servlet</description>
<br>> <servlet>
<br>> <servlet-name>SimpleProxyServlet</servlet-name>
<br>> <display-name>SimpleProxyServlet</display-name>
<br>> <description>Simple SIP proxy servlet</description>
<br>> <servlet-class>com.sip.servlet.SimpleProxyServlet</servlet-class>
<br>> <load-on-startup>1</load-on-startup>
<br>> </servlet>
<br>> <servlet-mapping>
<br>> <servlet-name>SimpleProxyServlet</servlet-name>
<br>> <pattern>
<br>> <or>
<br>> <equal>
<br>> <var>request.method</var>
<br>> <value>REGISTER</value>
<br>> </equal>
<br>> </or>
<br>> </pattern>
<br>> </servlet-mapping>
<br>> </sip-app>
<br>>
<br>>
<br>> I am using X-Lite softphone for testing this code. When ever first
<br>> request came to server, my doRegister of the servlet is called and
<br>> request is preocessed by the servlet. But when i am sending second
<br>> register request using other PC then it shows the request timeout on
<br>> the softphone and also my doREgister method is also not called.
<br>>
<br>> I have also checked that if it is problem due to sending the request
<br>> from other PC but if i send first request from other PC then servlet
<br>> process the request and again second request is not processed.
<br>>
<br>> Plz help me to solve this problem.
<br>>
<br>>
<br>> Thanks.
<br>> amit
<br>>
<br>>
<br>> ------------------------------------------------------------------------
<br>>
<br>> _______________________________________________
<br>> Users mailing list
<br>> <a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2313523&i=0" rel="nofollow" target="_blank">Users@...</a>
<br>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="nofollow" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>>
</div><br><br>_______________________________________________
<br>Users mailing list
<br><a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2313523&i=1" rel="nofollow" target="_blank">Users@...</a>
<br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="nofollow" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br rel="nabble-footer-start"><br>
<hr noshade size="1" color="#cccccc">
<div style="color:#666666;font:11px tahoma,geneva,helvetica,arial,sans-serif">
View message @ <a href="http://n2.nabble.com/-SIPForum-discussion--problem-in-registration-request-tp2313275p2313523.html" target="_blank">http://n2.nabble.com/-SIPForum-discussion--problem-in-registration-request-tp2313275p2313523.html</a>
<br>To unsubscribe from OpenSIPS (Open SIP Server), <a href="http://n2.nabble.com/subscriptions/Unsubscribe.jtp?code=YW1pdGJhbnNhbDNAZ21haWwuY29tfDE0NDkyNTF8MTI0ODY1MjQy" target="_blank">click here</a>.
</div>
<br rel="nabble-footer-end">
</blockquote></div><br></div>