did anyone face this problem !!!
"slim bens" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
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.
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