< Previous by Date | Date Index | Next by Date > |
Thread Index |
-----Original Message-----
From: Elizabeth Clark [mailto:elizabeth.clark@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, December 07, 2004 5:07 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Help: How to do Subscription over TCPHi,I'm using the DUM to perform a subscription over TCP and I can't get it to work.The request message is received but the response does not get sent. Can someone tell me if I'm doing something wrong?I'm using a SUBCRIBE request. This is received successfully and the newSubscription callback is invoked. Inside my callback is an accept (ServerSubscriptionHandler::accept). This creates a 200 OK response which is placed passed to the SipStack and makes it to the txFifo of the appropriate transport. Next, the ConnectionManager passes the response manager to the appropriate Connection. Then, the Connection fails to send - it appears the socket is not set up for writing.This happens over 3 process() calls with calls to buildFdSet() in between:1 process():new TCP connection establishednew subscription callback invokedcall accept, 200 ok response placed in message queuebuildFdSet() --> read-enable new TCP socket2 process():get response from message queue and pass to transport txFifobuildFdSet() --> read-enable new TCP socket (no write-enable done since there are no connections with a queue of messages to send)3 process():processAllWriteRequests---> get the message and pass it to the connection object;connection object adds self to the Connection Manager write listprocessSomeWrites---> get the connection from the Connection Manager write list andperform the actual write...fails, socket not write-enabled.ThanksLiz
Elizabeth Clark
Bridgewater Systems Corporation
Phone : (613) 591-9104 x2776
E-mail : mailto:elizabeth@xxxxxxxxxxxxxxxxxxxxxx