Discussion:
[asterisk-users] early media (video)
Fronc Hias
2014-05-07 07:09:02 UTC
Permalink
Hi All,

I've been looking for information on how to use asterisk and early media to
allow for a video-preview of the caller at the callee's phone for days...
but I haven't been too successful :(

I found that there seems to be a company "2N Helios IP" which claims
(youtube-video) that "their" SIP server is able to provide early video
(using a Grandstream 3157v2 with "preview" enabled), but I would like to
have this with asterisk...

I'm currently using asterisk 12.2.x.
I tried with all kinds of combinations of "prematuremedia" and
"progressinband" in sip.conf and many different
dialplan-extension-"scripts" but to no avail...

sniffing with wireshark shows me, that the caller (doorstation) is sending
H.264 video but the RTP video stream is not passed on to the callee by
asterisk. (establishing a direct-video - without preview - call does work
of course)

is it at all possible with a default asterisk installation? maybe using
chan_pjsip instead of chan_sip?

do the "prematuremedia" and "progressinband" properties only apply to audio
and not to video?

I think this feature is essential for a sip-device which is used as a
door-station...

any information / idea is highly appreciated!
thanks,
Fronc
Fronc Hias
2014-05-07 07:16:50 UTC
Permalink
FYI: Joshua Colp already replied to my initial post of this message in
asterisk-app-dev.
he suggested to move it here (asterisk-users)

he so far stated, that early media/Video should theoretically work... but
probably no one tried this in recent times...

looking foreward to receive further information, thanks!
Post by Fronc Hias
Hi All,
I've been looking for information on how to use asterisk and early media
to allow for a video-preview of the caller at the callee's phone for
days... but I haven't been too successful :(
I found that there seems to be a company "2N Helios IP" which claims
(youtube-video) that "their" SIP server is able to provide early video
(using a Grandstream 3157v2 with "preview" enabled), but I would like to
have this with asterisk...
I'm currently using asterisk 12.2.x.
I tried with all kinds of combinations of "prematuremedia" and
"progressinband" in sip.conf and many different
dialplan-extension-"scripts" but to no avail...
sniffing with wireshark shows me, that the caller (doorstation) is sending
H.264 video but the RTP video stream is not passed on to the callee by
asterisk. (establishing a direct-video - without preview - call does work
of course)
is it at all possible with a default asterisk installation? maybe using
chan_pjsip instead of chan_sip?
do the "prematuremedia" and "progressinband" properties only apply to
audio and not to video?
I think this feature is essential for a sip-device which is used as a
door-station...
any information / idea is highly appreciated!
thanks,
Fronc
Joshua Colp
2014-05-07 10:38:17 UTC
Permalink
Post by Fronc Hias
FYI: Joshua Colp already replied to my initial post of this message in
asterisk-app-dev.
he suggested to move it here (asterisk-users)
he so far stated, that early media/Video should theoretically work...
but probably no one tried this in recent times...
looking foreward to receive further information, thanks!
If you can provide the console output with debug and dialplan I may be
able to assist further. It would also be useful to try Asterisk 11 and
see if this is a regression.

Cheers,
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
Fronc Hias
2014-05-08 11:18:16 UTC
Permalink
ok then... sorry it took so long, but I already posted it yesterday but it
was rejected by the list's moderator as it exceeded 40k in size :(
so i'll resend it now: part #1 is this, part #2 will only contain the
attachment with working "direct"-Video (not early media) for comparison...

---

1) i tried with asterisk 11.6... no change. i.e. same behaviour as with
asterisk 12.2 --> no preview video
(i verified with wireshark that - as with asterisk 12.2 - the h264 data is
sent from the caller to asterisk, but isn't forwarded to the callee... only
the audio (g722) is passed on)


2) setup:
the caller is 301 (linphone on windows) calling 306 (Grandstream 3175v2
with preview enabled)

2.1) sip.conf:
[general]
context=unauthenticated
allowguest=yes
srvlookup=no
udpbindaddr=0.0.0.0
tcpenable=yes
tcpbindaddr=0.0.0.0
callcounter=yes
textsupport=yes
accept_outofcall_messages=yes
outofcall_message_context=messages-sip
auth_message_requests=no
insecure=invite
directmedia=no
prematuremedia=yes
progressinband=never

[office-phone](!)
type=friend
context=LocalSets
host=dynamic
nat=force_rport,comedia
dtmfmode=auto
disallow=all
allow=g722
allow=ulaw
allow=alaw
videosupport=yes
allow=h264
# define some devices
[301](office-phone)
secret=pwd301
[306](office-phone)
secret=pwd306

2.2) extensions.conf
...
[LocalSets]
...
exten => 306,hint,SIP/306
exten => 306,1,NoOp(dial 306)
same => n,Dial(SIP/306)
...



3) debug-logs:
I used "core set debug 9" and "core set verbose 9" and "sip set debug on"

i attached two files:

3.1) "asterisk-debug-earlymedia.txt" in which I dial 306 from 301 and after
some (5?) seconds i press "preview" on the grandstream. after that, the
grandstream only allows me to choose beween "Accept Audio" and "Reject" -
no "Accept Video" as I would expect... another 5 seconds later i hang up.

3.2) "asterisk-debug-videodirect.txt" here I push the "Accept Video" button
instead of the "preview" button; here the video works!


thanks a lot for your support!
Fronc Hias
2014-05-08 11:19:38 UTC
Permalink
part #2
Fronc Hias
2014-05-19 07:54:48 UTC
Permalink
Hi!

sorry to poke in... but i haven't heard anything since posting my logs :(

any thougths on the issue Josuah? or somebody else?

thanks,
Hannes
Post by Fronc Hias
part #2
Joshua Colp
2014-05-20 10:26:35 UTC
Permalink
Post by Fronc Hias
Hi!
sorry to poke in... but i haven't heard anything since posting my logs :(
No real additional thoughts. Everything looks as though it should work.
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
Continue reading on narkive:
Loading...