Hello Liu<br>I've the TIFFReverseBits comment out, <br>How can I check AMR codec/decodec ?<br>Those tests were made in asterisk-1.4.25.1<br>with this amr patch <br><a href="http://lists.digium.com/pipermail/asterisk-video/attachments/20090710/46cafa99/attachment.txt">http://lists.digium.com/pipermail/asterisk-video/attachments/20090710/46cafa99/attachment.txt</a><br>
Taken from the list:<br><a href="http://lists.digium.com/pipermail/asterisk-video/2009-July/002689.html">http://lists.digium.com/pipermail/asterisk-video/2009-July/002689.html</a><br>-------------------------------------------------------------------------------------------------------------<br>
Here is the output for codecs:<br>video*CLI> show codecs<br>Disclaimer: this command is for informational purposes only.<br> It does not indicate anything about your configuration.<br> INT BINARY HEX TYPE NAME DESC<br>
--------------------------------------------------------------------------------<br> 1 (1 << 0) (0x1) audio g723 (G.723.1)<br> 2 (1 << 1) (0x2) audio gsm (GSM)<br>
4 (1 << 2) (0x4) audio ulaw (G.711 u-law)<br> 8 (1 << 3) (0x8) audio alaw (G.711 A-law)<br> 16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2)<br>
32 (1 << 5) (0x20) audio adpcm (ADPCM)<br> 64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM)<br> 128 (1 << 7) (0x80) audio lpc10 (LPC10)<br>
256 (1 << 8) (0x100) audio g729 (G.729A)<br> 512 (1 << 9) (0x200) audio speex (SpeeX)<br> 1024 (1 << 10) (0x400) audio ilbc (iLBC)<br> 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551)<br>
4096 (1 << 12) (0x1000) audio g722 (G722)<br> 8192 (1 << 13) (0x2000) audio amr (AMR NB)<br> 65536 (1 << 16) (0x10000) image jpeg (JPEG image)<br> 131072 (1 << 17) (0x20000) image png (PNG image)<br>
262144 (1 << 18) (0x40000) video h261 (H.261 Video)<br> 524288 (1 << 19) (0x80000) video h263 (H.263 Video)<br> 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video)<br>
2097152 (1 << 21) (0x200000) video h264 (H.264 Video)<br>-------------------------------------------------------------------------------------------------------------<br>With mp4play i've got:<br>[3gp_videos]<br>
<br>exten => _X.,1,H324m_gw_answer()<br> exten => _X.,n,mp4play(/var/videos/videoplay.mp4)<br>-------------------------------------------------------------------------------------------------------------<br> -- Executing [0012166503@from-misdn:1] Goto("mISDN/1-u2", "default|0012166503|1") in new stack<br>
-- Goto (default,0012166503,1)<br> -- Executing [0012166503@default:1] h324m_gw("mISDN/1-u2", "0012166503@3gp_videos") in new stack<br> -- Executing [0012166503@3gp_videos:1] h324m_gw_answer("Local/0012166503@3gp_videos-b15b,2", "") in new stack<br>
video*CLI> show channel Local/0012166503@3gp_vide<br>Local/0012166503@3gp_videos-b15b,2 Local/0012166503@3gp_videos-b15b,1<br>video*CLI> show channel Local/0012166503@3gp_videos-b15b,1<br> -- General --<br> Name: Local/0012166503@3gp_videos-b15b,1<br>
Type: Local<br> UniqueID: 1252464663.7<br> Caller ID: 992773912<br> Caller ID Name: (N/A)<br> DNID Digits: (N/A)<br> State: Up (6)<br> Rings: 0<br> NativeFormats: 0x182000 (amr|h263|h263p)<br>
WriteFormat: 0x2000 (amr)<br> ReadFormat: 0x2000 (amr)<br> WriteTranscode: No<br> ReadTranscode: No<br>1st File Descriptor: -1<br> Frames in: 2<br> Frames out: 0<br> Time to Hangup: 0<br> Elapsed Time: 0h0m18s<br>
Direct Bridge: <none><br>Indirect Bridge: <none><br> -- PBX --<br> Context: 3gp_videos<br> Extension: 0012166503<br> Priority: 1<br> Call Group: 0<br> Pickup Group: 0<br> Application: (N/A)<br>
Data: (None)<br> Blocking in: ast_waitfor_nandfds<br> Variables:<br>MISDN_PID=4<br><br> CDR Variables:<br>level 1: dst=0012166503<br>level 1: dcontext=3gp_videos<br>level 1: channel=Local/0012166503@3gp_videos-b15b,1<br>
level 1: start=2009-09-08 21:51:03<br>level 1: duration=0<br>level 1: billsec=0<br>level 1: disposition=NO ANSWER<br>level 1: amaflags=DOCUMENTATION<br>level 1: uniqueid=1252464663.7<br><br>video*CLI> show channel Local/0012166503@3gp_videos-b15b,2<br>
-- General --<br> Name: Local/0012166503@3gp_videos-b15b,2<br> Type: Local<br> UniqueID: 1252464663.8<br> Caller ID: 992773912<br> Caller ID Name: (N/A)<br> DNID Digits: (N/A)<br> State: Up (6)<br>
Rings: 0<br> NativeFormats: 0x182000 (amr|h263|h263p)<br> WriteFormat: 0x2000 (amr)<br> ReadFormat: 0x2000 (amr)<br> WriteTranscode: No<br> ReadTranscode: No<br>1st File Descriptor: -1<br> Frames in: 0<br>
Frames out: 0<br> Time to Hangup: 0<br> Elapsed Time: 0h0m21s<br> Direct Bridge: <none><br>Indirect Bridge: <none><br> -- PBX --<br> Context: 3gp_videos<br> Extension: 0012166503<br> Priority: 1<br>
Call Group: 0<br> Pickup Group: 0<br> Application: h324m_gw_answer<br> Data: (Empty)<br> Blocking in: ast_waitfor_nandfds<br> Variables:<br>MISDN_PID=4<br><br> CDR Variables:<br>level 1: clid=992773912<br>
level 1: src=992773912<br>level 1: dst=0012166503<br>level 1: dcontext=3gp_videos<br>level 1: channel=Local/0012166503@3gp_videos-b15b,2<br>level 1: lastapp=h324m_gw_answer<br>level 1: start=2009-09-08 21:51:03<br>level 1: answer=2009-09-08 21:51:03<br>
level 1: duration=0<br>level 1: billsec=0<br>level 1: disposition=ANSWERED<br>level 1: amaflags=DOCUMENTATION<br>level 1: uniqueid=1252464663.8<br><br>video*CLI> show channel mISDN/1-u2<br> -- General --<br> Name: mISDN/1-u2<br>
Type: mISDN<br> UniqueID: 1252464663.6<br> Caller ID: 992773912<br> Caller ID Name: (N/A)<br> DNID Digits: (N/A)<br> State: Up (6)<br> Rings: 1<br> NativeFormats: 0x8 (alaw)<br>
WriteFormat: 0x8 (alaw)<br> ReadFormat: 0x8 (alaw)<br> WriteTranscode: No<br> ReadTranscode: No<br>1st File Descriptor: 29<br> Frames in: 1607<br> Frames out: 1607<br> Time to Hangup: 0<br> Elapsed Time: 0h0m26s<br>
Direct Bridge: <none><br>Indirect Bridge: <none><br> -- PBX --<br> Context: default<br> Extension: 0012166503<br> Priority: 1<br> Call Group: 0<br> Pickup Group: 0<br> Application: h324m_gw<br>
Data: 0012166503@3gp_videos<br> Blocking in: ast_waitfor_nandfds<br> Variables:<br>CALLTYPE=DIGITAL<br>TRANSFERCAPABILITY=DIGITAL<br>MISDN_URATE=-1<br>MISDN_ADDRESS_COMPLETE=1<br>MISDN_PID=4<br><br> CDR Variables:<br>
level 1: clid=992773912<br>level 1: src=992773912<br>level 1: dst=012166503<br>level 1: dcontext=default<br>level 1: channel=mISDN/1-u2<br>level 1: lastapp=h324m_gw<br>level 1: lastdata=0012166503@3gp_videos<br>level 1: start=2009-09-08 21:51:03<br>
level 1: answer=2009-09-08 21:51:03<br>level 1: duration=0<br>level 1: billsec=0<br>level 1: disposition=ANSWERED<br>level 1: amaflags=DOCUMENTATION<br>level 1: uniqueid=1252464663.6<br><br> == Spawn extension (3gp_videos, 0012166503, 1) exited non-zero on 'Local/0012166503@3gp_videos-b15b,2'<br>
== Spawn extension (default, 0012166503, 1) exited non-zero on 'mISDN/1-u2'<br><br>Thanks for your help<br><br>Felipe<br><br><br><div class="gmail_quote">On Tue, Sep 8, 2009 at 8:30 PM, Liu Jianquan <span dir="ltr"><<a href="mailto:liujianquan@gmail.com">liujianquan@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;">Hi, there's a patch for h324m reversing bits, be sure that you have remove note from TIFFReverseBits in <span style="font-size: 10.5pt; font-family: "Times New Roman";" lang="EN-US">h324m.cpp</span>, <br>
<br><span>//TIFFReverseBits(buffer,len);
//remove the note if mISDN<br><br>and you'd better check AMR codec/decodec.<br><br>Have you tried MP4Play?<br><br><br>Liu<br><br><br></span><br><div class="gmail_quote">2009/9/9 Felipe Flores <span dir="ltr"><<a href="mailto:felipeflorest@gmail.com" target="_blank">felipeflorest@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Liu<br>Thanks for your response<br>Adding that recommendation to my dialplan i've the next output<br>
<br>-- Executing [0012166503@from-misdn:1] Goto("mISDN/1-u1", "default|0012166503|1") in new stack<br>
-- Goto (default,0012166503,1)<br> -- Executing [0012166503@default:1] h324m_gw("mISDN/1-u1", "0012166503@3gp_videos") in new stack<br> -- Executing [0012166503@3gp_videos:1] h324m_gw_answer("Local/0012166503@3gp_videos-87c5,2", "") in new stack<br>
video*CLI> show channels<br>Channel Location State Application(Data)<br>Local/0012166503@3gp 0012166503@3gp_video Up h324m_gw_answer()<br>Local/0012166503@3gp 0012166503@3gp_video Up (None)<br>
mISDN/1-u1 0012166503@default:1 Up h324m_gw(0<br>video*CLI> misdn show channel mISDN/1-u1<br>* Pid:3 Prt:1 Ch:1 Mode:TE Org:I dad:0012166503 oad:992773912 rad: ctx:default state:CONNECTED<br><br>video*CLI> show channel mISDN/1-u1<br>
-- General --<br> Name: mISDN/1-u1<br> Type: mISDN<br> UniqueID: 1252442299.3<br> Caller ID: 992773912<br> Caller ID Name: (N/A)<br> DNID Digits: (N/A)<br> State: Up (6)<br> Rings: 1<br>
NativeFormats: 0x8 (alaw)<br> WriteFormat: 0x8 (alaw)<br> ReadFormat: 0x8 (alaw)<br> WriteTranscode: No<br> ReadTranscode: No<br>1st File Descriptor: 29<br> Frames in: 2071<br> Frames out: 2071<br> Time to Hangup: 0<br>
Elapsed Time: 0h0m34s<br> Direct Bridge: <none><br>Indirect Bridge: <none><br> -- PBX --<br> Context: default<br> Extension: 0012166503<br> Priority: 1<br> Call Group: 0<br> Pickup Group: 0<br>
Application: h324m_gw<br> Data: 0012166503@3gp_videos<br> Blocking in: ast_waitfor_nandfds<br> Variables:<br>CALLTYPE=DIGITAL<br>TRANSFERCAPABILITY=DIGITAL<br>MISDN_URATE=-1<br>MISDN_ADDRESS_COMPLETE=1<br>
MISDN_PID=3<br><br> CDR Variables:<br>level 1: clid=992773912<br>level 1: src=992773912<br>level 1: dst=012166503<br>level 1: dcontext=default<br>level 1: channel=mISDN/1-u1<br>level 1: lastapp=h324m_gw<br>level 1: lastdata=0012166503@3gp_videos<br>
level 1: start=2009-09-08 15:38:19<br>level 1: answer=2009-09-08 15:38:19<br>level 1: duration=0<br>level 1: billsec=0<br>level 1: disposition=ANSWERED<br>level 1: amaflags=DOCUMENTATION<br>level 1: uniqueid=1252442299.3<br>
== Spawn extension (3gp_videos, 0012166503, 1) exited non-zero on 'Local/0012166503@3gp_videos-87c5,2'<br> == Spawn extension (default, 0012166503, 1) exited non-zero on 'mISDN/1-u1'<br><br>As a result i can't save any video 3gp file <br>
<br>Thanks for your help<div><div></div><div><br><br><br><div class="gmail_quote">On Tue, Sep 8, 2009 at 9:14 AM, Liu Jianquan <span dir="ltr"><<a href="mailto:liujianquan@gmail.com" target="_blank">liujianquan@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;">
Hi, the 3g video call should not be answered immediately , you'd better use h324m_gw and h324m_gw_answer , just try this dialplan:<br><br><pre><span lang="EN-US"> </span></pre>
<p style="margin: 0cm 0cm 0.0001pt;"><span style="font-size: 10pt;" lang="EN-US">[from-misdn]</span></p>
<span style="font-size: 10pt;" lang="EN-US">exten => _X.,1,Goto(default,${EXTEN},1)</span><br><br><pre><span lang="EN-US">[default]</span></pre>
<p style="margin: 0cm 0cm 0.0001pt;"><span style="font-size: 10pt;" lang="EN-US">exten => _X.,1,H324m_gw(</span><span style="font-size: 10pt;" lang="EN-US">${EXTEN}</span><span style="font-size: 10pt;" lang="EN-US">@3gp_videos)</span></p>
<pre><span lang="EN-US"><br></span></pre><p style="margin: 0cm 0cm 0.0001pt;"><span style="font-size: 10pt;" lang="EN-US"></span></p>
<pre><span lang="EN-US"></span></pre><span lang="EN-US"></span><span style="font-size: 10pt;" lang="EN-US">[3gp_videos]</span>
<pre><span lang="EN-US"> </span></pre>
<p style="margin: 0cm 0cm 0.0001pt;"><span style="font-size: 10pt;" lang="EN-US">exten => _X.,,1,H324m_gw_answer()</span></p><div><p style="margin: 0cm 0cm 0.0001pt;"><span style="font-size: 10pt;" lang="EN-US"></span>exten => _X.,n,mp4save(/tmp/test.3gp)</p>
<pre><span lang="EN-US"><br></span></pre><br></div>Liu<br><br><br><div class="gmail_quote">2009/9/3 Felipe Flores <span dir="ltr"><<a href="mailto:felipeflorest@gmail.com" target="_blank">felipeflorest@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>Hello <br>i´ve installed asterisk 1.4.19.1 + misdn-1.2 + video apps on debian lenny system<br>I´ve configured my dialplan with <br> exten => _X.,1,Answer()<br>
exten => _X.,n,mp4save(/tmp/test.3gp)<br> exten => _X.,n,Hangup()<br>
<br>My schema and test are:<br>3gp cell ===> RDSI BRI ==> Asterisk = only audio no video<br>sip phone (eyebeam) ==> Asterisk = audio and video<br><br>Are my RDSI or 3GP providers the problem ?<br><br>Here are my mp4info file details:<br>
eyebeam => Asterisk<br>Track Type Info<br>1 audio G.711 uLaw, 100.200 secs, 64 kbps, 8000 Hz<br>2 hint Payload PCMU for track 1<br>3 video H264 Unknown Profile 2@unknown level 1, 95.411 secs, 172 kbps, 176x144 @ 14.254122 fps<br>
4 hint Payload H264 for track 3<br><br>File from : 3gp=> RDSI BRI ==> Asterisk<br>Track Type Info<br>1 audio G.711 aLaw, 30.840 secs, 64 kbps, 8000 Hz<br>2 hint Payload PCMA for track 1<br>
<br>
</div><br>
<br></div></div>_______________________________________________<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>
<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></div><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></div></div><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>