<div dir="ltr">Hi,<br><br>Are you using 3G GSM video call with lib_h324m?<br><br>If so, you can check if the call is video or not using the userinformationlayer1 variable<br>I have successfully recorded video calls using mp4save (requires app_mp4) to .mp4 files.<span style="font-family: monospace;"></span><br>
<br>Dan<br><br><div class="gmail_quote">On Thu, Feb 5, 2009 at 11:25 AM, ewrtge sdrg <span dir="ltr"><<a href="mailto:82817.3@gmail.com">82817.3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
could someone possibly help me with following:<br>
- record video, if video called ( not necessary in mp4 format )<br>
- record voice, if voice called<br>
<br>
app_mp4 is the way to do this ? unfortunately i just can't get it to work.<br>
i'm trying to use it in asterisk 1.4, should i be using 1.6 ?<br>
if i try to call from gsm "video call" i receive error in connection,<br>
if i make "voice call", call is made but nothing is played, recorded.<br>
CentOS 4.7.<br>
below is my configuration, some output.<br>
<br>
# my iptables<br>
# i believe these ports might be required for asterisk<br>
$ipt -A INPUT -p udp -m udp --dport 1720 -j ACCEPT<br>
$ipt -A INPUT -p udp -m udp --dport 5060 -j ACCEPT<br>
$ipt -A INPUT -p udp -m udp --dport 4569 -j ACCEPT<br>
$ipt -A INPUT -p udp -m udp --dport 5036 -j ACCEPT<br>
$ipt -A INPUT -p udp -m udp --dport 10000:20000 -j ACCEPT<br>
$ipt -A INPUT -p udp -m udp --dport 2727 -j ACCEPT<br>
$ipt -A INPUT -p udp -m udp --dport 5000:5099 -j ACCEPT<br>
<br>
<br>
# ldd /usr/lib/asterisk/modules/app_mp4.so<br>
libmp4.so.0 => /usr/local/lib/libmp4.so.0 (0x00565000)<br>
libmp4v2.so.0 => /usr/local/lib/libmp4v2.so.0 (0x008e4000)<br>
libc.so.6 => /lib/tls/libc.so.6 (0x00d9a000)<br>
libdl.so.2 => /lib/libdl.so.2 (0x0028f000)<br>
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00ca5000)<br>
libm.so.6 => /lib/tls/libm.so.6 (0x00111000)<br>
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x007ff000)<br>
/lib/ld-linux.so.2 (0x00638000)<br>
<br>
<br>
# asterisk -cvvvvv gives following:<br>
<a href="http://111222333.uuuq.com/" target="_blank">http://111222333.uuuq.com/</a><br>
<br>
# my sip.conf lines starting with ; removed<br>
[general]<br>
context=c1234<br>
insecure=port,invite<br>
allowguest=yes<br>
allowoverlap=no<br>
bindport=5060<br>
bindaddr=0.0.0.0<br>
srvlookup=yes<br>
maxexpiry=3600<br>
defaultexpiry=600<br>
disable=all<br>
allow=ulaw<br>
allow=alaw<br>
allow=h263<br>
allow=h263p<br>
allow=h261<br>
allow=h264<br>
trustrpid = yes<br>
sendrpid = yes<br>
videosupport=yes<br>
register => <a href="http://number:password@host.com/1234" target="_blank">number:password@host.com/1234</a><br>
canreinvite=no<br>
[authentication]<br>
rfc2833compensate=yes<br>
<br>
mp4play(demo4.mp4)<br>
*CLI> MP4ERROR: FindTrackId: Track index doesn't exist - track 3 type hint<br>
MP4ERROR: MP4Array::[]: index 2 of 2: Numerical result out of range<br>
<br>
mp4play(linux.3gp)<br>
[ long series of warnings[13381] as below ]<br>
[Feb 4 13:50:28] WARNING[13381]: chan_sip.c:3751 sip_write: Asked to<br>
transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<br>
read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<br>
[Feb 4 13:50:29] WARNING[13381]: chan_sip.c:3751 sip_write: Asked to<br>
transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<br>
read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<br>
[Feb 4 13:50:29] WARNING[13381]: chan_sip.c:3751 sip_write: Asked to<br>
transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<br>
read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<br>
[Feb 4 13:50:29] WARNING[13381]: chan_sip.c:3751 sip_write: Asked to<br>
transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<br>
read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<br>
MP4ERROR: MP4Array::[]: index 48 of 48: Numerical result out of range<br>
[Feb 4 13:50:29] WARNING[13381]: chan_sip.c:3751 sip_write: Asked to<br>
transmit frame type 8192, while native formats is 0x4 (ulaw)(4)<br>
read/write = 0x4 (ulaw)(4)/0x4 (ulaw)(4)<br>
MP4ERROR: MP4Array::[]: index 48 of 48: Numerical result out of range<br>
MP4ERROR: MP4Array::[]: index 48 of 48: Numerical result out of range<br>
MP4ERROR: MP4Array::[]: index 48 of 48: Numerical result out of range<br>
<br>
<br>
<br>
mp4save(/tmp/save.mp4)<br>
*CLI> Write: type ftyp<br>
Write: majorBrand = mp42<br>
Write: minorVersion = 0 (0x00000000)<br>
Write: Write: finished ftyp<br>
end: type ftyp 0 24 size 24<br>
end: type mdat 24 32 size 8<br>
Write: type moov<br>
Write: type mvhd<br>
Write: version = 0 (0x00)<br>
Write: flags = 0 (0x000000)<br>
Write: creationTime = 3316596730 (0xc5af3ffa)<br>
Write: modificationTime = 3316596744 (0xc5af4008)<br>
Write: timeScale = 1000 (0x000003e8)<br>
Write: duration = 0 (0x00000000)<br>
Write: rate = 1.000000<br>
Write: volume = 1.000000<br>
Write: reserved1 = <70 bytes><br>
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00<br>
00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00<br>
00 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00<br>
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
00 00 00 00 00 00<br>
Write: nextTrackId = 1 (0x00000001)<br>
Write: finished mvhd<br>
end: type mvhd 40 148 size 108<br>
Write: type iods<br>
Write: version = 0 (0x00)<br>
Write: flags = 0 (0x000000)<br>
Write: objectDescriptorId = 1 (0x001) <10 bits><br>
URLFlag = 0 (0x0) <1 bits><br>
includeInlineProfileLevelFlag = 0 (0x0) <1 bits><br>
reserved = 15 (0xf) <4 bits><br>
ODProfileLevelId = 255 (0xff)<br>
sceneProfileLevelId = 255 (0xff)<br>
audioProfileLevelId = 255 (0xff)<br>
visualProfileLevelId = 255 (0xff)<br>
graphicsProfileLevelId = 255 (0xff)<br>
esIds<br>
ociDescr<br>
ipmpDescrPtr<br>
extDescr<br>
Write: finished iods<br>
end: type iods 148 172 size 24<br>
Write: finished moov<br>
end: type moov 32 172 size 140<br>
<mp4save<br>
<br>
ls -o /tmp/save.mp4<br>
172 Feb 4 13:52 /tmp/save.mp4<br>
it's always just 172 bytes<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-video mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-video" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-video</a><br>
</blockquote></div><br></div>