Posted: Tue Nov 28, 2006 2:42 pm Post subject: [Asterisk-video] video prompts via Asterisk
If a videophone is behind a NAT, the firewall will often timeout the
bindings after a small amount of time and Asterisk will be unable to
send video to the phone.
Has anyone encountered/solved this problem? How do you keep the RTP
stream open during periods of inactivity?
-- Bruce
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Tue Nov 28, 2006 2:49 pm Post subject: [Asterisk-video] video prompts via Asterisk
Don't know if Asterisk can do it, but in a rtp implementation I developed I had to periodically send empty rtp packets to avoid that.
-----Original Message-----
From: asterisk-video-bounces@lists.digium.com [mailto:asterisk-video-bounces@lists.digium.com] On Behalf Of Bruce Bauman
Sent: martes, 28 de noviembre de 2006 15:42
To: asterisk-video@lists.digium.com
Subject: [Asterisk-video] video prompts via Asterisk
If a videophone is behind a NAT, the firewall will often timeout the bindings after a small amount of time and Asterisk will be unable to send video to the phone.
Has anyone encountered/solved this problem? How do you keep the RTP stream open during periods of inactivity?
-- Bruce
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-video
--------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. No confidentiality
or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it and kindly
notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. Opinions, conclusions and
other information in this message that do not relate to the official business of
Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it.
--------------------------------------------------------------------------------------
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Tue Nov 28, 2006 8:52 pm Post subject: [Asterisk-video] video prompts via Asterisk
28 nov 2006 kl. 15.42 skrev Bruce Bauman:
Quote:
If a videophone is behind a NAT, the firewall will often timeout the
bindings after a small amount of time and Asterisk will be unable to
send video to the phone.
Has anyone encountered/solved this problem? How do you keep the RTP
stream open during periods of inactivity?
There's something called RTP keepalives that some devices use.
You need to send at least every 29th sec...
What it really is, is something for others to discuss. With newer
devices
you could send STUN requests on the RTP port - you certainly have to
be ready to receive them (the new SIP outbound draft).
/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Tue Nov 28, 2006 8:56 pm Post subject: [Asterisk-video] video prompts via Asterisk
Even if you don't support parsing the STUN packets, you should make sure you will discard them anyways (since a STUN packet will fail as a RTP packet if you do a proper header check).
For video doing keep alives is a little trickier than audio -- in audio you can encode silence and send that as data, knowing the remote party won't hear it. The equivalent in video doesn't really exist. So, STUN packets are great if you can use them, otherwise I've seen some implementations send a bogus RTP packet using an unused payload type to keep the pinhole open.
Duane
On 11/28/06, Olle E Johansson <oej@edvina.net (oej@edvina.net)> wrote:
Quote:
28 nov 2006 kl. 15.42 skrev Bruce Bauman:
Quote:
If a videophone is behind a NAT, the firewall will often timeout the
bindings after a small amount of time and Asterisk will be unable to
send video to the phone.
Has anyone encountered/solved this problem? How do you keep the RTP
stream open during periods of inactivity?
There's something called RTP keepalives that some devices use.
You need to send at least every 29th sec...
What it really is, is something for others to discuss. With newer
devices
you could send STUN requests on the RTP port - you certainly have to
be ready to receive them (the new SIP outbound draft).
/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Tue Nov 28, 2006 9:01 pm Post subject: [Asterisk-video] video prompts via Asterisk
Stun packets are regognized as being RTP v0 so if the two first bits are 00xxxxxx then it's STUN/ICE... if you have 10xxxxxx it's RTP v2... so quiet easy to discard
Even if you don't support parsing the STUN packets, you should make sure you will discard them anyways (since a STUN packet will fail as a RTP packet if you do a proper header check).
For video doing keep alives is a little trickier than audio -- in audio you can encode silence and send that as data, knowing the remote party won't hear it. The equivalent in video doesn't really exist. So, STUN packets are great if you can use them, otherwise I've seen some implementations send a bogus RTP packet using an unused payload type to keep the pinhole open.
Duane
On 11/28/06, Olle E Johansson <oej@edvina.net (oej@edvina.net)> wrote:
Quote:
28 nov 2006 kl. 15.42 skrev Bruce Bauman:
Quote:
If a videophone is behind a NAT, the firewall will often timeout the
bindings after a small amount of time and Asterisk will be unable to
send video to the phone.
Has anyone encountered/solved this problem? How do you keep the RTP
stream open during periods of inactivity?
There's something called RTP keepalives that some devices use.
You need to send at least every 29th sec...
What it really is, is something for others to discuss. With newer
devices
you could send STUN requests on the RTP port - you certainly have to
be ready to receive them (the new SIP outbound draft).
/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Wed Nov 29, 2006 8:04 am Post subject: [Asterisk-video] video prompts via Asterisk
Yes, sending a ceroed rtp header should do the trick in almost any device. I didn't found any issue when i used it.
From:asterisk-video-bounces@lists.digium.com [mailto:asterisk-video-bounces@lists.digium.com] On Behalf Of Ramtin Amin
Sent: martes, 28 de noviembre de 2006 22:01
To: Development discussion of video media support in Asterisk
Subject: RE: [Asterisk-video] video prompts via Asterisk
Stun packets are regognized as being RTP v0 so if the two first bits are 00xxxxxx then it's STUN/ICE... if you have 10xxxxxx it's RTP v2... so quiet easy to discard
Even if you don't support parsing the STUN packets, you should make sure you will discard them anyways (since a STUN packet will fail as a RTP packet if you do a proper header check).
For video doing keep alives is a little trickier than audio -- in audio you can encode silence and send that as data, knowing the remote party won't hear it. The equivalent in video doesn't really exist. So, STUN packets are great if you can use them, otherwise I've seen some implementations send a bogus RTP packet using an unused payload type to keep the pinhole open.
Duane
On 11/28/06, Olle E Johansson <oej@edvina.net (oej@edvina.net)> wrote:
Quote:
28 nov 2006 kl. 15.42 skrev Bruce Bauman:
Quote:
If a videophone is behind a NAT, the firewall will often timeout the
bindings after a small amount of time and Asterisk will be unable to
send video to the phone.
Has anyone encountered/solved this problem? How do you keep the RTP
stream open during periods of inactivity?
There's something called RTP keepalives that some devices use.
You need to send at least every 29th sec...
What it really is, is something for others to discuss. With newer
devices
you could send STUN requests on the RTP port - you certainly have to
be ready to receive them (the new SIP outbound draft).
/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Posted: Thu Nov 30, 2006 2:43 pm Post subject: [Asterisk-video] video prompts via Asterisk
Olle E Johansson wrote:
Quote:
28 nov 2006 kl. 15.42 skrev Bruce Bauman:
> If a videophone is behind a NAT, the firewall will often timeout the
> bindings after a small amount of time and Asterisk will be unable to
> send video to the phone.
>
> Has anyone encountered/solved this problem? How do you keep the RTP
> stream open during periods of inactivity?
There's something called RTP keepalives that some devices use.
You need to send at least every 29th sec...
What it really is, is something for others to discuss. With newer devices
you could send STUN requests on the RTP port - you certainly have to
be ready to receive them (the new SIP outbound draft).
AFAIK SIP outbound is only about SIP (multiplexing STUN with RTP).
Nevertheless also RTP can be multiplexed with STUN, i.e. ICE.
regards
klaus
Quote:
/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum