Re: echo

"M. Ranganathan" <[email protected]> Tue, 16 Jan 2007 12:05:08 -0500
Newsgroups gmane.comp.voip.nist-sip
Organization NIST
Message-ID <[email protected]>
What you mean by "solve the firewall problem"? Stun is for NAT
traversal. It allows you to determine the global address for your box
when situated behind a NAT. It has a periodic timer to deal with NAT
reboots etc. More info is abundantly available on that topic so I will
not elaborate.

 There's a lot of material out there for how to deal with NATs  and
firewalls. JAIN-SIP provides the mechanisms, for dealing with NATs you
have to set the necessary fields. Please read up about NAT traversal and
how to deal with firewalls using SIP. You will have to do a little
investigation. I dont have a piece of code handy to give you. Perhaps
when you are done, you can contribute to the wiki or send me a how-to
note that I can include in the documentation with due credit for your
efforts. 

Ranga.


On Tue, 2007-01-16 at 15:47 +0100, Háber János wrote:
> Hi!
> 
> Hmm... And if I use STUN with stun4j solve the firewall problem, or
> not?
> 
> Cow
> 
> ps: I found some information how work the SIP protocol but I found
> only complex "samples" (sip communicator and applet), with JMF and
> Jain cooperation :|
> 
> M. Ranganathan írta: 
> > Hi!
> > 
> > examples/simplecallsetup should be a good starting point for you. It
> > creates a Session description from a String. You can use the SdpFactory
> > to create the session description. 
> > 
> > After ACK, the ports are exchanged and the codec information is
> > exchanged. The rest is outside the scope of SIP. You have to use an RTP
> > library ( i.e. JMF or something like that ) to create the RTP streams.
> > It will not work behind a firewall unless you correctly set up rport in
> > the outgoing response / request . Check on how rport is used in the SIP
> > specification. 
> > 
> > Ranga
> > 
> > On Tue, 2007-01-16 at 13:55 +0100, Háber János wrote:
> >   
> > > Hi!
> > > 
> > > I'm new in SIP technology. I want to write a simple echo application 
> > > (Call a remote sip server user and echo back all reply).
> > > I see the shootist example and I have some questions.
> > > 
> > > - How can I create a SessionDescription (I see in the example created by 
> > > hand, but this is the only one, and simplest way?)
> > > - After the ACK how can I access/send back the RTP stream data?
> > > - It's work behind a firewall? (I see I need to open a reply port, I 
> > > think it's work with tcp but how?)
> > > 
> > > Thanks, cow
> > > 
> > > ps: If somebody have simple echo example please send to me.
> > > _______________________________________________
> > > nist-sip mailing list
> > > [email protected]
> > > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
> > >     
> > 
> >   
> 
> _______________________________________________
> nist-sip mailing list
> [email protected]
> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip