Hi,
You need to have the source code of your Asterisk correctly installed on
your system and the development libraries from the
mpeg4ip<http://web.archive.org/web/20080328111835/http://mpeg4ip.sourceforge.net/>project.
*Note: If you have problems compiling the mpeg4ip libries try disabling the
player*
./configure --disable-player
Copy the app_mp4.c file into the Asterisk apps directory and append the
following lines to the Makefile in the same directory:
app_mp4.so : app_mp4.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -lmp4 -lmp4v2
Goto the Asterisk parent directory and
make
make install
Setup Enable video support and preferred codecs in sip.conf
videosupport=yes
disable=all
allow=ulaw
allow=alaw
allow=h263
allow=h263p
Now, you can use the application functions in your dialpan, a simple setup
is like that:
[default]
exten => 201,1,Answer
exten => 201,2,mp4save(/tmp/save.mp4)
exten => 201,3,HangUp
exten => 202,1,Answer
exten => 202,2,mp4play(/tmp/save.mp4)
exten => 202,3,HangUp
Calling 201 will record the incoming audi/video in /tmp/save.mp4 and
calling 202 will play it back.
_______________________________________
Salvatore Frandina
website: http://frandinas.altervista.org
mail: [email protected]
_______________________________________
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-video