Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

Sending an INVITE to my VoIP account by a SIP Servlet  RSS feed

 
Namitha karupaiya
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Report post to moderator
I tried to make an outbound call to an ordinary landline number through my VoIP account by a SIP Servlet, but never been successful.

I tried something similar to the following:

javax.servlet.sip.SipFactory factory=(javax.servlet.sip.SipFactory) this.getServletContext().getAttribute(javax.servlet.sip.SipServlet.SIP_FACTORY);

javax.servlet.sip.SipApplicationSession appSession =factory.createApplicationSession();

to = �sip:land_line_number@my_voip_proxy_server.com�
from=�sip:my_voip_did_number:my_voip_password@ my_voip_proxy_server.com�

javax.servlet.sip.SipServletRequest invite = factory.createRequest(appSession, "INVITE", from, to);

invite.pushRoute(URI of my_voip_outbound_proxy_server.com);

invite.send();

I use Weblogic SIP server. I configured sip.xml, and everything else is correct to my knowledge.

I always get the error message something similar to �Cannot resolve path to my_voip_proxy_server.com�

(Note: When I use SJPhone softphone with my VoIP account details, it simply rings to a landline)

Is the way I incorporating my_voip_outbound_proxy_server correct?

Any help from anyone is greatly appreciated.

Thank you very much.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!