SipServlets problem

42 views
Skip to first unread message

Wojciech Biolik

unread,
May 27, 2012, 11:02:53 AM5/27/12
to mobicent...@googlegroups.com
I am using SipServlets for an academic open-source project here is page (in Polish): http://code.google.com/p/mobicents-voip/ You can look at source code if You want.

Goal is simple make system to enable VoIP calls. As end nodes we use Linphone/windows. Sip servlets is running on the jboss. Actualy Project was build basing on click2call example. When I run this example (from source code) it worked. Then I rewrite this function to my application. Start it.
Here is the problem:
I connect to enpoints (linphone sipphone) and my application get REGISTER message but when I call from one to another my servlet doesn't get any massage. I updated dar file on server, implement methods such as doInvite doSuccessResponse doResponse. I checked jboss logs for errors (non was risen), and have no more idea what to do next. All my servlet methods log some info when are invoked and doRegister is invoked each time I register sipphone, but only this one. here is my mobicents-dar.properties file content:

INVITE: ("pl.edu.agh.mobicents.VoIPSystem", "DAR:To", "TERMINATING", "", "NO_ROUTE", "0"), ("pl.edu.agh.mobicents.VoIPSystem", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")
MESSAGE: ("pl.edu.agh.mobicents.VoIPSystem", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")
OPTIONS: ("pl.edu.agh.mobicents.VoIPSystem", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")
REGISTER: ("pl.edu.agh.mobicents.VoIPSystem", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")

and here sip.xml:
<sip-app>
<app-name>pl.edu.agh.mobicents.VoIPSystem</app-name>
<display-name>Mobicents VoIP System</display-name>
<description>Mobicents VoIP System</description>

<servlet>
<servlet-name>ProxySipServlet</servlet-name>
<display-name>ProxySipServlet</display-name>
<description>Simple Proxy SIPServlet</description>
<servlet-class>
pl.edu.agh.mobicentsVoIP.servlets.ProxySipServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<listener>
<listener-class>
pl.edu.agh.mobicentsVoIP.servlets.ProxySipServlet
</listener-class>
</listener>
</sip-app>

can anyone help me?

George Vagenas

unread,
May 27, 2012, 4:06:17 PM5/27/12
to mobicent...@googlegroups.com
Try to set the outbound proxy of Linphone to the sip servlet proxy
--
George Vagenas

Wojciech Biolik

unread,
May 28, 2012, 4:13:44 PM5/28/12
to mobicent...@googlegroups.com
yes this worked, in linphone I used only SIP Proxy address but when I put this same address in Route(optional) field my application started to work again.
Thank you very much
Reply all
Reply to author
Forward
0 new messages