Ah, I think I follow now. I was reading it straight from the email/patch, which is hard to follow the bracket boundaries.
I tried a small initial test, and I believe it's working exactly how I need it.
Many thanks!
Dan
On Thu, Feb 10, 2011 at 4:12 AM, damico <address@hidden> wrote:
On 09/02/2011 23:31, Dan Le wrote:
Thanks, we'll certainly give it a try. Could you
explain what this patch does exactly?
If no RTP has been sent yet, wouldn't stats->recv be 0,
and audio_stream_alive()
always return TRUE?
Thanks,
Dan
if stats->recv = 0 like stream->last_packet_count (when audio
start or payload change _reset_rtp_alive_info() set
last_packet_count to 0 and last_packet_time to "now")
So, if there aren't any packets after timeout+1 seconds become:
!(stats->recv!=stream->last_packet_count) &&
(ms_time(NULL)-stream->last_packet_time>timeout)
=> return False
Is it OK?
Regards
--Michele
On Wed, Feb 9, 2011 at 12:46 PM, damico
<address@hidden>
wrote:
Hi Dan,
try this patch... I write it on the fly (without compiling
:) )
I think it should work. I wrote a patch like this for an
old linphone version.
The RTP timer seems to work great as long as it
has received at least one RTP packet for the
session to start the timer, but if the incoming
call silently terminates before RTP has started,
the call remains up indefinitely, which is why I
was looking for a SIP session timer solution. Is
there anything else I could try?
Thanks,
Dan
On Mon, Feb 7, 2011 at
3:29 PM, Simon Morlat <address@hidden>
wrote:
Hi
Dan,
Actually what is implemented when
use_session_timers=1 is accepting SIP
updates and answering correctly to them, but
linphone does not send any
SIP update or reINVITE to check the session
is alive.
However it detects loss of RTP streams,
after 30 seconds of RTP
inactivity (RTP and RTCP), then it hangups
the call.
Simon
Le mardi 01 février 2011 à 19:43 -0500, Dan
Le a écrit :
> Hi, I'm newly joined to the
mailing list, and was hoping someone
could
> clarify a few things in linphone.
>
>
> There's scattered reports that SIP
Session Timers (RFC 4028) may be
> supported in linphone, but
attempting to enable it, I can't seem to
> trigger it. I'm using version 3.3.2
of linphone.
>
>
> I've set use_session_timers=1 under
[sip] in my linphonerc config
> file, and then dial the linphonec
agent; after the call connects, I
> kill the call on the originator
side. Linphone appears to be still in
> the call, and I would expect after
some time, it would send a SIP
> packet to check if the call exists
(and subsequently terminating the
> call when it find it no longer
exists), but it doesn't, at least not
> after 5min of waiting.
>
>
> I would be grateful for any
insights.
>
>
> Thanks,
> Dan