<div dir="ltr">Olle,<div><br></div><div style>I did a quick test having Chrome call PhonerLite passing through Asterisk, and the Opus passthrough worked fine. I guess that, for an optimal Opus passthrough implementation, we'd need to also pass the SDP parameters through (e.g., in case both peers support FEC and want to use it) but its something that can be added later on.</div>
<div style><br></div><div style>Lorenzo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/5 Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
5 jun 2013 kl. 09:37 skrev Andrea Suisani <<a href="mailto:sickpig@opinioni.net">sickpig@opinioni.net</a>>:<br>
<div class="im"><br>
> Hi all<br>
><br>
> sorry for being late. I've managed to focus again on this subject only<br>
> this morning and luckily enough Lorenzo have already fix the issue!<br>
><br>
> as James I've tested those scenarios:<br>
><br>
> (sip+opus) (iax2+gsm)<br>
> WebRTC -----------> Asterisk ------------> pstn<br>
><br>
><br>
> (sip+opus) (sip+gsm)<br>
> WebRTC -----------> Asterisk ------------> pstn<br>
><br>
><br>
> (sip+opus) (iax2+g729)<br>
> WebRTC -----------> Asterisk ------------> pstn<br>
><br>
><br>
> (sip+opus) (sip+g729)<br>
> WebRTC -----------> Asterisk ------------> pstn<br>
><br>
><br>
> and everything seems to work flawlessly.<br>
</div>Thanks for testing.<br>
<br>
Now, it would be interesting to see if we can get this call flow going<br>
<br>
SIP client with Opus -----> Asterisk with Opus passthrough (no codec) ------> Sip client with Opus<br>
(Like WebRTC SIP UAs)<br>
<br>
Like Matt and Tzafrir mentioned - passthrough support of Opus and VP8 is something that can be<br>
included in Asterisk now.<br>
<span class="HOEnZb"><font color="#888888"><br>
/O<br>
</font></span><div class="HOEnZb"><div class="h5">><br>
> And the next few days I'll test that configuration<br>
> more thoroughly and I'll report back<br>
><br>
> many thanks<br>
><br>
> I owe Lorenzo a beer (or two) and since we are both Italian<br>
> maybe we will get a chance to drink that together :)<br>
><br>
><br>
> On 06/04/2013 05:55 PM, James Mortensen wrote:<br>
>> Hello Lorenzo!<br>
>><br>
>> It always comes down to just a few lines of code, doesn't it. At any rate, YOU ROCK!<br>
>> We made the changes and verified the call leg from Chrome to Asterisk uses Opus, and we<br>
>> were able to transcode to both g729 and ulaw for the call leg to our PSTN trunk provider!<br>
>><br>
>> Nice work! Thank you again for the patch and for moving the world of WebRTC forward.<br>
>><br>
>> James<br>
>><br>
>><br>
>><br>
>><br>
>> On Tue, Jun 4, 2013 at 8:31 AM, Lorenzo Miniero <<a href="mailto:lminiero@gmail.com">lminiero@gmail.com</a> <mailto:<a href="mailto:lminiero@gmail.com">lminiero@gmail.com</a>>> wrote:<br>
>><br>
>> Dear James and all,<br>
>><br>
>> I managed to find out the cause of the issue. I simply forgot (mea culpa!) to add a couple of lines to the patch (which is why I couldn't replicate it in my setup, where the lines exist) which tells Asterisk which rate to use for the format. As you know, Opus always uses 48kHz, while the default<br>
>> in Asterisk is 8000: this caused wrong timestamp increase calculations on the non-Opus RTP leg, and hence the corrupt audio.<br>
>><br>
>> I updated the patch on the repository. If you don't want to apply the patch again, just add these lines in the ast_format_rate method of format.c:<br>
>><br>
>> /* Opus */<br>
>> case AST_FORMAT_OPUS:<br>
>> return 48000;<br>
>><br>
>> and make/make install again. The easiest thing to do is put this as the last case before the default.<br>
>><br>
>> Let me know if this fixes the issue,<br>
>> Lorenzo<br>
>><br>
>><br>
>> 2013/5/30 James Mortensen <<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>>><br>
>><br>
>><br>
>> On Thu, May 30, 2013 at 5:15 AM, Lorenzo Miniero <<a href="mailto:lminiero@gmail.com">lminiero@gmail.com</a> <mailto:<a href="mailto:lminiero@gmail.com">lminiero@gmail.com</a>>> wrote:<br>
>><br>
>> James,<br>
>><br>
>> I mostly tested it in conferencing scenarios, using ConfBridge to attach heterogeneous peers. In those scenarios, I used both Chrome and Firefox (using the DTLS-SRTP hacks I mentioned in the other thread), and PhonerLite as well. For other codecs I used a bunch of softphones, our Java<br>
>> applet (wideband speex) and calls from the PSTN using a VoIP gateway. This way it seems to work as expected.<br>
>><br>
>> At the beginning, through, I mostly used PhonerLite and Linphone calling each other through Asterisk to test the codec, and I can't recall issues like those you mentioned, but I didn't test this intensively. As I anticipated, I'm currently traveling and won't be able to do any testing<br>
>> until Saturday: I'll keep you posted about this.<br>
>><br>
>> Lorenzo<br>
>><br>
>> Il giorno 30/mag/2013 00:43, "James Mortensen" <<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>>> ha scritto:<br>
>><br>
>><br>
>> On Wed, May 29, 2013 at 11:06 AM, Lorenzo Miniero <<a href="mailto:lminiero@gmail.com">lminiero@gmail.com</a> <mailto:<a href="mailto:lminiero@gmail.com">lminiero@gmail.com</a>>> wrote:<br>
>><br>
>> 2013/5/29 James Mortensen <<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>>><br>
>><br>
>><br>
>> On Wed, May 29, 2013 at 8:37 AM, James Mortensen <<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>>> wrote:<br>
>><br>
>><br>
>><br>
>> There appears to be paths for both ulaw as well as g729.<br>
>><br>
>> I did try the patch on Asterisk 11.1.2, but shifted gears when I realized the crypto headers are buggy as per <a href="https://issues.asterisk.org/jira/browse/ASTERISK-20849" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-20849</a>. However, I'll apply the patch to fix that issue and then try a call on Asterisk 11.1.2.<br>
>><br>
>> I'll follow up with additional details when I know more. Again, thank you for your time and your work on this. We're really stoked about getting opus working in Asterisk! :)<br>
>><br>
>><br>
>> --<br>
>> James Mortensen<br>
>> Project Manager, VoiceCurve, Inc.<br>
>> <a href="tel:866-707-4590" value="+18667074590">866-707-4590</a> <tel:<a href="tel:866-707-4590" value="+18667074590">866-707-4590</a>><br>
>> <a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>><br>
>><br>
>><br>
>><br>
>> Hi Lorenzo,<br>
>><br>
>> The problem exists on Asterisk 11.1.2 as well. It sounds like the two parties are talking underwater. Please let me know if there's any other details that I can get you.<br>
>><br>
>><br>
>> Ok, thanks for the details and the clarification. Unfortunately I'll be out of office for the next two days so I won't be able to look into this right away, but I'll check what may be going wrong as soon as I get back to work.<br>
>><br>
>> Please keep me posted if you find any additional info that may be of use.<br>
>><br>
>> Cheers,<br>
>> Lorenzo<br>
>><br>
>><br>
>> --<br>
>> James Mortensen<br>
>> Project Manager, VoiceCurve, Inc.<br>
>> <a href="tel:866-707-4590" value="+18667074590">866-707-4590</a> <tel:<a href="tel:866-707-4590" value="+18667074590">866-707-4590</a>><br>
>> <a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>><br>
>><br>
>><br>
>><br>
>><br>
>> Hi Lorenzo,<br>
>><br>
>> I wanted to let you know that our trunk provider supports both ulaw and g729. We're using Chrome with JsSIP in the browser.<br>
>><br>
>> We've tried calls transcoding to/from ulaw to opus and g729 to opus, and we still hear the robotic audio in both scenarios, and this is on both Asterisk 11.1.2 and Asterisk 11.4.0.<br>
>><br>
>> What is your setup like, as it sounds like you actually have this working? What codecs are you transcoding to/from? Are you making calls from the browser at all or are you only testing with that PhonerLite system?<br>
>><br>
>> Also, our SIP clients are on Mac OS 10.8. The Asterisk server is on Ubuntu 12.04. I installed the opus libraries from this site: <a href="http://www.opus-codec.org/downloads/" target="_blank">http://www.opus-codec.org/downloads/</a> using the latest version, 1.0.2<br>
>><br>
>> Hope this helps! Let us know if there's anything else we should try.<br>
>><br>
>><br>
>> --<br>
>> James Mortensen<br>
>> Project Manager, VoiceCurve, Inc.<br>
>> <a href="tel:866-707-4590" value="+18667074590">866-707-4590</a> <tel:<a href="tel:866-707-4590" value="+18667074590">866-707-4590</a>><br>
>> <a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>><br>
>><br>
>><br>
>><br>
>><br>
>> Hi Lorenzo,<br>
>><br>
>> Thanks again for your help. When you do get back around to this, can you specifically test the scenario where you're calling from Chrome to Asterisk to the PSTN? Using the codecs opus to g729 and opus to ulaw?<br>
>><br>
>> We really appreciate the work you're doing on this! Thank you again!<br>
>><br>
>> James<br>
>><br>
>> --<br>
>> James Mortensen<br>
>> Project Manager, VoiceCurve, Inc.<br>
>> <a href="tel:866-707-4590" value="+18667074590">866-707-4590</a> <tel:<a href="tel:866-707-4590" value="+18667074590">866-707-4590</a>><br>
>> <a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> James Mortensen<br>
>> Project Manager, VoiceCurve, Inc.<br>
>> <a href="tel:866-707-4590" value="+18667074590">866-707-4590</a><br>
>> <a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a> <mailto:<a href="mailto:james.mortensen@voicecurve.com">james.mortensen@voicecurve.com</a>><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> --<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-dev mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
<br>
<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-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br></div>