Re: here is the link to the example illustrating my problem !!!
"M. Rangnathan" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Hi Can you post a debug log for NodeB and NodeC somewhere that I can see and send me a URL to it or mail it to me. I can tell from the debug log what is going on. I suggest you set the gov.nist.javax.sip.TRACE_LEVEL property to 32 (or "DEBUG") and generate such a log file. Ranga slim bens wrote: > http://www.iro.umontreal.ca/~sidhomiy/Test.zip > > > > > hello to everyone, > here is my problem. > there are 3 classes : NodeC,NodeA,NodeB. > and the jar files are libraries. > launch the example following this order :NodeC,NodeB,NodeA. > > I said previously that NodeB doesn't receive the response from NodeC, > actually the stack Sip of NodeB receives the response, but the response > doesn't reach the upper layer (application layer) which is the > processResponse(..) of the SipListener interface. > Some way the response is discarded, I don't why yet !!! > it's been a week that I'm stuck with this bug. > > thank you for giving me a hand in debuging this problem. > > > > >> From: "M. Rangnathan" <[email protected]> >> To: slim bens <[email protected]> >> CC: [email protected] >> Subject: Re: [nist-sip] did anyone face this problem !!! >> Date: Mon, 06 Nov 2006 14:42:38 -0500 >> >> slim bens wrote: >> >>> ello everyone, >>> I am developping a P2P application using Jain-Sip for communication. >>> I'm pretty sutck with a problem , here it is : >>> >>> we have 3 nodes : A.B,C >>> >>> B has information (URL of C) to ping the node C, >>> and node C receive the request and sends a response to B. ('til now >>> it's ok). >>> >>> But now, the node A sends a request to B , >>> B receives the request, and before sending a response to A, >>> B needs to ping C , >>> then C receives the request and sends a response to B, >>> but the PROBLEM !!! is that B doesn't receive the response from C. >>> >>> notice : the thread triggered in B by receiving the reuqest from A, >>> is blocked, >>> waiting for the response from C. >> >> >> >> To abstract the problem better, please post a small code snippet to >> reproduce the problem in small example that looks like >> examples/simplecallsetup.The Requests and Responses look OKto me but >> the Tag in the 200 OK is suspect because MESSAGE does not create a >> Dialog . Thats the only thing I can think of at the moment. Have you >> created a dialog and are you sending the MESSAGE within that Dialog? >> >>> >>> if any one has face the same, I would be very thankful if he could >>> send me the solution. >>> >>> -----------------------------------here are the request >>> ---------------------------------------------------- >>> >>> A sends to B : >>> >>> REGISTER sip:[email protected]:7001;transport=tcp SIP/2.0 >>> Call-ID: [email protected] >>> CSeq: 1 REGISTER >>> From: <sip:[email protected]:7008;transport=tcp>;tag=6479 >>> To: <sip:[email protected]:7008;transport=tcp> >>> Via: SIP/2.0/TCP >>> 127.0.0.1:7008;branch=z9hG4bK4f67136d36f023c9d805912383903d60 >>> Max-Forwards: 6 >>> Contact: <sip:[email protected]:7008;transport=tcp> >>> Expires: 800 >>> Require: DHT >>> Supported: DHT >>> Content-Type: application/DHT+XML >>> Content-Length: 254 >>> >>> <?xml version="1.0" >>> encoding="UTF-8"?><DHTInfo><DHTDescription><DHTOverlayName>Concordia >>> DHT</DHTOverlayName><DHTHashAlg>SHA-1</DHTHashAlg></DHTDescription><DHTOperation>nodeRegistration</DHTOperation><DHTNode>sip:[email protected]:7008</DHTNode></DHTInfo> >>> >>> >>> >>> >>> >>> ****************************************************************** >>> >>> B receives from A : >>> >>> REGISTER sip:[email protected]:7001;transport=tcp SIP/2.0 >>> Call-ID: [email protected] >>> CSeq: 1 REGISTER >>> From: <sip:[email protected]:7008;transport=tcp>;tag=6479 >>> To: <sip:[email protected]:7008;transport=tcp> >>> Via: SIP/2.0/TCP >>> 127.0.0.1:7008;branch=z9hG4bK4f67136d36f023c9d805912383903d60;rport=7008 >>> >>> Max-Forwards: 6 >>> Contact: <sip:[email protected]:7008;transport=tcp> >>> Expires: 800 >>> Require: DHT >>> Supported: DHT >>> Content-Type: application/DHT+XML >>> Content-Length: 254 >>> >>> <?xml version="1.0" >>> encoding="UTF-8"?><DHTInfo><DHTDescription><DHTOverlayName>Concordia >>> DHT</DHTOverlayName><DHTHashAlg>SHA-1</DHTHashAlg></DHTDescription><DHTOperation>nodeRegistration</DHTOperation><DHTNode>sip:[email protected]:7008</DHTNode></DHTInfo> >>> >>> >>> >>> >>> >>> >>> ********************************************************** >>> >>> ......... then during the process of the response to A ........ >>> >>> B sends to C : >>> >>> MESSAGE sip:[email protected]:7014;transport=tcp SIP/2.0 >>> Call-ID: [email protected] >>> CSeq: 1 MESSAGE >>> From: <sip:[email protected]:7001;transport=tcp>;tag=8073 >>> To: <sip:[email protected]:7014;transport=tcp> >>> Via: SIP/2.0/TCP >>> 127.0.0.1:7001;branch=z9hG4bKb8d8a56120b598e6f33550fdf21f3b07 >>> Max-Forwards: 6 >>> Contact: <sip:[email protected]:7001;transport=tcp> >>> Expires: 800 >>> Content-Type: text/plain;charset=UTF-8 >>> Content-Length: 4 >>> >>> PING >>> >>> >>> >>> ************************************************************ >>> >>> C receives from B : >>> >>> MESSAGE sip:[email protected]:7014;transport=tcp SIP/2.0 >>> Call-ID: [email protected] >>> CSeq: 1 MESSAGE >>> From: <sip:[email protected]:7001;transport=tcp>;tag=8073 >>> To: <sip:[email protected]:7014;transport=tcp> >>> Via: SIP/2.0/TCP >>> 127.0.0.1:7001;branch=z9hG4bKb8d8a56120b598e6f33550fdf21f3b07;rport=7001 >>> >>> Max-Forwards: 6 >>> Contact: <sip:[email protected]:7001;transport=tcp> >>> Expires: 800 >>> Content-Type: text/plain;charset=UTF-8 >>> Content-Length: 4 >>> >>> PING >>> >>> ****************************************************************** >>> >>> C reply to B : >>> >>> SIP/2.0 200 OK >>> Call-ID: [email protected] >>> CSeq: 1 MESSAGE >>> From: <sip:[email protected]:7001;transport=tcp>;tag=8073 >>> To: <sip:[email protected]:7014;transport=tcp>;tag=6300 >>> Via: SIP/2.0/TCP >>> 127.0.0.1:7001;branch=z9hG4bKb8d8a56120b598e6f33550fdf21f3b07;rport=7001 >>> >>> Content-Type: text/plain;charset=UTF-8 >>> Content-Length: 4 >>> >>> PING >>> >>> ---------------------------------------------------------------------- >>> >>> B doesn't receive the response from C : <------------------- PROBLEM >>> !!!! >>> >>> _________________________________________________________________ >>> Achetez ce que vous voulez, quand vous voulez sur Sympatico / MSN >>> Magasiner >>> http://magasiner.sympatico.msn.ca/content/shp/?ctId=101,ptnrid=176,ptnrdata=081805 >>> >>> >>> >>> _______________________________________________ >>> nist-sip mailing list >>> [email protected] >>> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip >>> >> >> >> -- >> M. Ranganathan >> >> Advanced Networking Technologies Division, >> National Institute of Standards and Technology (NIST), >> 100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899. tel:301 975 3664 >> , fax:301 590 0932 http://w3.antd.nist.gov/ >> Advanced Networking Technologies For the People! >> >> > > _________________________________________________________________ > Ne perdez pas de temps dans les files d’attente… magasinez en ligne. > http://magasiner.sympatico.msn.ca > > -- M. Ranganathan Advanced Networking Technologies Division, National Institute of Standards and Technology (NIST), 100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899. tel:301 975 3664 , fax:301 590 0932 http://w3.antd.nist.gov/ Advanced Networking Technologies For the People!