The From & To headers should not have ports in them. The registrar will send INVITEs it receives to the Contact provided in the REGISTER request. The inviter does not need to know the port.
----- Original Message ----- From: "luoqiang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 4:54 AM Subject: Re: [Sip-implementors] A basic sip question > Hi, > > Thanks for your answer > But if there is no port information, > how can I register with To header with port? > For example, > > REGISTER sip:159.226.1.3 SIP/2.0 > Via: SIP/2.0/UDP 159.226.1.1 > From: sip:[EMAIL PROTECTED]:5010 > To: sip:[EMAIL PROTECTED]:5010 > Call-ID: [EMAIL PROTECTED] > CSeq: 1 REGISTER > Contact: <sip: sip:[EMAIL PROTECTED]:5010> > Content-Length: 0 > > I don't know how bis09 defined. > But in this case,how can register know the wanted port of the inviter if I can't use port information? > >From Via? > > Thanks > luoqiang > __________________________________________________________ > address of ua1 -> Contact > But, response path is Via header. > As bis09, From and To don't accept port. > > t:sip:[EMAIL PROTECTED]:5060 > ==> t:sip:[EMAIL PROTECTED] > > khlee > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of luoqiang > Sent: Thursday, March 28, 2002 1:34 AM > To: [EMAIL PROTECTED] > Subject: [Sip-implementors] A basic sip question > > > Hi, > > > I am a beginer for sip. > After reading the rfc,I have some questions. > e.g: > ua1: sip:[EMAIL PROTECTED]:5060 > ua2: sip:[EMAIL PROTECTED]:5061 > when ua1 call ua2,the message would be: > > INVITE sip:[EMAIL PROTECTED]:5061 SIP/2.0 > v:SIP/2.0/UDP 10.10.1.1 > f:sip:[EMAIL PROTECTED] > t:sip:[EMAIL PROTECTED]:5060 > i:[EMAIL PROTECTED] > m:[EMAIL PROTECTED]:5061 > c:application/sdp > > Suppose there are no proxies between them. > The message should be forworded to ua2 and ua2 should send a 180 response. > But where does the ua2 get the adress of ua1? > Via?From?Contact? > I was puzzled after reading the rfc,because it seems that all above headers is correct. > Which is the ua2's chioce? > > Thanks! > > luoqiang > > > _______________________________________________ > Sip-implementors mailing list > [EMAIL PROTECTED] > http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors > _______________________________________________ > Sip-implementors mailing list > [EMAIL PROTECTED] > http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors > _______________________________________________ Sip-implementors mailing list [EMAIL PROTECTED] http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
