We are trying to design a converged contianer with converged applications on top (http and sip). But we are not sure how to let a http servlet triger a sip servlet to initiate a new sip request. Say, we are building a click2dial application, which pulls out two phone numbers from web service and then sets up a call between them. When the http servlet gets phone numbers, how should it trigger the sip servlet to send out INVITE requests to these two sip phones.
One potential solution is to let http servlet "forward" to sip servlet. But what kind of SipServletRequest should the contianer create and pass on to sip servlet? A bigger issue is that with "forward", sip servlet is no longer the initiating point of the INVITE messages. Where should the reponse go? Another possibility is to let http servlet call into SipFactory, which creates and send out SipServletRequest(s). Meanwhile, set the "Handler" of the SipSession to be the sip servlet, so when response comes back, it will go to sip servlet in stead of http servlet. It sounds a little hacky, not sure if there is a cleaner way. I didn't see anything from the Sip Servlet API 1.0 which solves this issue. Did anybody run into such converged application issues? Any points are appreciated. ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html