Re: [reSIProcate] Another question on KeepAlive
Hong Yu wrote:
The dynamic cast is a way of testing the message type here. If it
returns NULL as indicated by you, that means the message is not a
KeepAliveMessage.
Aha - this explained a lot of things.
There are SetKeepAliveTime<Datagram/Stream> in Profile that you can use
to control the frequency of KeepAlive message, I believe.
I think I might have figured that out... sure took me long enough.
But for your case, if the connection drops after 5 seconds, I think it
is something else.
Actually, it would drop in about a minute... pretty consistantly, but
it was
because I wasn't issuing a keep alive to the SIP server while the RTP
session was in process. I thought that all I needed was to send the
RTP keepAlive to keep the connection open to the remote client.
Then I realized that the SIP server wasn't getting IT's keep alive
so it eventually timed out, and sent a "bye" to the remote client
killing the connection.
John