users@glassfish.java.net

Re: Sailfin - Sip - Servlet Proxy example

From: sankara rao bhogi <Sankara.Rao_at_Sun.COM>
Date: Thu, 19 Jul 2007 11:43:28 +0530

glassfish_at_javadesktop.org wrote:
> Hi. Newbie and dumb question here (followed with bad English) :-)
>
> I followed instructions on http://wiki.glassfish.java.net/Wiki.jsp?page=SipServletProxyExample and I have some questions about it.
>
> When I run (deploy) this proxy example it's url is (for example) http://localhost:8080/SipSample/ (it shows page with Directory Listing information, since there is no index.jsp), so if someone sends INVITE message, server calls doInvite method (like tomcat calls doGet or doPost). Am I right so far?
>
>
More or less true in the INVITE case. Since it is a pure SIP app, you
wouldn't be able to access it via http://localhost:8080/SipSample/

> If I am, then I have one more question. SIPp example creates client with this line:
> "sipp -sn uac -rsa 192.168.1.2:5060 -p 5080 192.168.1.8:5090". It presumes that Proxy is active on "192.168.1.2:5060". How is this exactly done and can I somehow replace this with "localhost:8080/SipSample/"
>

"sipp -sn uac -rsa 192.168.1.1:5060 -p 5080 192.168.1.8:5090"

In the above command, 192.168.1.1 is the IP address of the machine,
where your sailfin installation is running and 5060 is the SIP listener
port (default is 5060).

"-p 5080" is the local port, which you could leave it if you wish to.
192.168.1.8 is the IP address of the machine where you are running you
SIP server with the help of "sip -sn uas 5090".

To keep it simple, you can run sip client and server on the same machine
as your sailfin server, so that it would be easier.

I did face some problems in finally making this sample work, please let
me know if you are able run this sample successfully.

regards
sankar


> Thanks in advance!
> [Message sent by forum member 'brixy' (brixy)]
>
> http://forums.java.net/jive/thread.jspa?messageID=227193
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>