• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending an INVITE to my VoIP account by a SIP Servlet

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic