[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-users
Subject:    Re: [Freeswitch-users] G729 ptime mismatch on ingress and egress legs
From:       Ashwin Rath <ashwinrath () gmail ! com>
Date:       2013-05-31 15:27:49
Message-ID: CAA_Nwu5EnESuUAF2DRMMt7kDxGmcUJLDniFuj_3pH5F1WumPJw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


The problem that we are facing with the mod_G729 in a back to back scenario
is that FS doesnt re packetize the RTP. For example if one stream has ptime
= 10 then it remains at 10 on both the A as well as B leg. The same applies
to the other which may be at another ptime (say 30).

What we are trying to achieve is  A leg always using ptime 10 and B leg
always using ptime 30.

Is this possible without using any licensed software ?



On Fri, May 31, 2013 at 8:05 PM, Steve Underwood <steveu@coppice.org> wrote:

> Hi,
>
> The Sangoma G.729 is a transcoder. You don't want that for ptime
> resolution. Decompressing and recompressing really hurts the quality. FS
> will repack the frames to resolve ptime mismatches, although the latency
> is better if you can avoid such repacking.
>
> Steve
>
>
> On 05/31/2013 09:23 PM, Ashwin Rath wrote:
> > Hi Steven
> >
> > Yes we have tried the passthru_ptime_mismatch set to true but that
> > didnt solve the purpose. So we decided to try sangoma. Trouble is FS
> > uses the sangoma even in case of passthrough. Is there something that
> > can be done to use mod_G729 for passthrough and sangoma g729 for ptime
> > mismatch ?
> >
> >
> > On Fri, May 31, 2013 at 5:55 PM, Steven Ayre <steveayre@gmail.com
> > <mailto:steveayre@gmail.com>> wrote:
> >
> >     First have you tried passthru_ptime_mismatch=true yet? It's not
> >     the default used by the passthrough mod_g729 codec.
> >
> >     Only one module can be loaded at a time to provide a given codec
> >     (ie mod_g729 or mod_com_g729 or mod_sangoma_codec). Internally
> >     perhaps the sangoma module would avoid licenses, but they would
> >     need to clarify. AFAIK mod_com_g729 only uses a license when
> >     required, simple 729-729 bridges still use passthrough, but I
> >     don't know how ptime affects that. It's be easy to test though -
> >     load it without any licenses and try a 729-729 call with differing
> >     primes and see it the call gets through.
> >
> >     -Steve
> >
> >
> >
> >     On Friday, May 31, 2013, Ashwin Rath wrote:
> >
> >         Thanks Anthony ,
> >
> >         Looks like we would need to purchase a G729 license for
> >         Freeswitch or use a Sangoma card. Is there some configuration
> >         which tells Freeswitch to use the card ( or the software codec
> >         ) only in case of a ptime mismatch  so that we could save on
> >         the licensing fee only for calls that actually need ptime
> >         conversion ?
> >
> >
> >         On Tue, May 28, 2013 at 8:21 PM, Anthony Minessale
> >         <anthony.minessale@gmail.com> wrote:
> >
> >             Set the variable passthru_ptime_mismatch=true on both legs
> >             of the call.  That's the best we can do.  If that doesn't
> >             work you'll need licenses.
> >
> >
> >
> >
> >             On Tue, May 28, 2013 at 9:12 AM, Ashwin Rath
> >             <ashwinrath@gmail.com> wrote:
> >
> >                 Hi
> >
> >                 I am trying to configure FS as a B2BUA which can do
> >                 ptime conversions between the ingress and egress leg.
> >
> >                 The question is, if both legs have G729 as the codec
> >                 but ptime 20 on one and 30 on another, would i still
> >                 need to get the licensed mod_com_g729 or can it work
> >                 with the passthrough mod_g729. I already tried it out,
> >                 but it doesnt seem to work.
> >
> >                 Is there some configuration needed for this ?
> >
> >                 --
> >                 Thegrid
> >
> >
> _________________________________________________________________________
> >                 Professional FreeSWITCH Consulting Services:
> >                 consulting@freeswitch.org
> >                 http://www.freeswitchsolutions.com
> >
> >                 FreeSWITCH-powered IP PBX: The CudaTel Communication
> >                 Server
> >                 http://www.cudatel.com
> >
> >                 Official FreeSWITCH Sites
> >                 http://www.freeswitch.org
> >                 http://wiki.freeswitch.org
> >                 http://www.cluecon.com
> >
> >                 FreeSWITCH-users mailing list
> >                 FreeSWITCH-users@lists.freeswitch.org
> >
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >                 UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> >                 http://www.freeswitch.org
> >
> >
> >
> >
> >             --
> >             Anthony Minessale II
> >
> >             FreeSWITCH http://www.freeswitch.org/
> >             ClueCon http://www.cluecon.com/
> >             Twitter: http://twitter.com/FreeSWITCH_wire
> >
> >             AIM: anthm
> >             MSN:anthony_minessale@hotmail.com
> >             GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
> >             IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
> >
> >             FreeSWITCH Developer Conference
> >             sip:888@conference.freeswitch.org
> >             googletalk:conf+888@conference.freeswitch.org
> >             pstn:+19193869900
> >
> >
> _________________________________________________________________________
> >             Professional FreeSWITCH Consulting Services:
> >             consulting@freeswitch.org
> >             http://www.freeswitchsolutions.com
> >
> >             FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> >             http://www.cudatel.com
> >
> >             Official FreeSWITCH Sites
> >             http://www.freeswitch.org
> >             http://wiki.freeswitch.org
> >
> >         Ashwin Kumar Rath
> >
> >
> >
> _________________________________________________________________________
> >     Professional FreeSWITCH Consulting Services:
> >     consulting@freeswitch.org <mailto:consulting@freeswitch.org>
> >     http://www.freeswitchsolutions.com
> >
> >     FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> >     http://www.cudatel.com
> >
> >     Official FreeSWITCH Sites
> >     http://www.freeswitch.org
> >     http://wiki.freeswitch.org
> >     http://www.cluecon.com
> >
> >     FreeSWITCH-users mailing list
> >     FreeSWITCH-users@lists.freeswitch.org
> >     <mailto:FreeSWITCH-users@lists.freeswitch.org>
> >     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >     UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> >     http://www.freeswitch.org
> >
> >
> >
> >
> > --
> > Ashwin Kumar Rath
> >
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting@freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> > http://www.cudatel.com
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users@lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting@freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Ashwin Kumar Rath

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div>The problem that we are facing with the mod_G729 in a \
back to back scenario is that FS doesnt re packetize the RTP. For example if one \
stream has ptime = 10 then it remains at 10 on both the A as well as B leg. The same \
applies to the other which may be at another ptime (say 30).<br> <br></div>What we \
are trying to achieve is  A leg always using ptime 10 and B leg always using ptime \
30.<br><br></div>Is this possible without using any licensed software \
?<br><br></div></div><div class="gmail_extra"><br> <br><div class="gmail_quote">On \
Fri, May 31, 2013 at 8:05 PM, Steve Underwood <span dir="ltr">&lt;<a \
href="mailto:steveu@coppice.org" target="_blank">steveu@coppice.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> Hi,<br>
<br>
The Sangoma G.729 is a transcoder. You don&#39;t want that for ptime<br>
resolution. Decompressing and recompressing really hurts the quality. FS<br>
will repack the frames to resolve ptime mismatches, although the latency<br>
is better if you can avoid such repacking.<br>
<br>
Steve<br>
<div class="im"><br>
<br>
On 05/31/2013 09:23 PM, Ashwin Rath wrote:<br>
&gt; Hi Steven<br>
&gt;<br>
&gt; Yes we have tried the passthru_ptime_mismatch set to true but that<br>
&gt; didnt solve the purpose. So we decided to try sangoma. Trouble is FS<br>
&gt; uses the sangoma even in case of passthrough. Is there something that<br>
&gt; can be done to use mod_G729 for passthrough and sangoma g729 for ptime<br>
&gt; mismatch ?<br>
&gt;<br>
&gt;<br>
&gt; On Fri, May 31, 2013 at 5:55 PM, Steven Ayre &lt;<a \
href="mailto:steveayre@gmail.com">steveayre@gmail.com</a><br> </div><div><div \
class="h5">&gt; &lt;mailto:<a \
href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;&gt; wrote:<br> &gt;<br>
&gt;     First have you tried passthru_ptime_mismatch=true yet? It&#39;s not<br>
&gt;     the default used by the passthrough mod_g729 codec.<br>
&gt;<br>
&gt;     Only one module can be loaded at a time to provide a given codec<br>
&gt;     (ie mod_g729 or mod_com_g729 or mod_sangoma_codec). Internally<br>
&gt;     perhaps the sangoma module would avoid licenses, but they would<br>
&gt;     need to clarify. AFAIK mod_com_g729 only uses a license when<br>
&gt;     required, simple 729-729 bridges still use passthrough, but I<br>
&gt;     don&#39;t know how ptime affects that. It&#39;s be easy to test though -<br>
&gt;     load it without any licenses and try a 729-729 call with differing<br>
&gt;     primes and see it the call gets through.<br>
&gt;<br>
&gt;     -Steve<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     On Friday, May 31, 2013, Ashwin Rath wrote:<br>
&gt;<br>
&gt;         Thanks Anthony ,<br>
&gt;<br>
&gt;         Looks like we would need to purchase a G729 license for<br>
&gt;         Freeswitch or use a Sangoma card. Is there some configuration<br>
&gt;         which tells Freeswitch to use the card ( or the software codec<br>
&gt;         ) only in case of a ptime mismatch  so that we could save on<br>
&gt;         the licensing fee only for calls that actually need ptime<br>
&gt;         conversion ?<br>
&gt;<br>
&gt;<br>
&gt;         On Tue, May 28, 2013 at 8:21 PM, Anthony Minessale<br>
&gt;         &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; \
wrote:<br> &gt;<br>
&gt;             Set the variable passthru_ptime_mismatch=true on both legs<br>
&gt;             of the call.  That&#39;s the best we can do.  If that \
doesn&#39;t<br> &gt;             work you&#39;ll need licenses.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;             On Tue, May 28, 2013 at 9:12 AM, Ashwin Rath<br>
&gt;             &lt;<a \
href="mailto:ashwinrath@gmail.com">ashwinrath@gmail.com</a>&gt; wrote:<br> &gt;<br>
&gt;                 Hi<br>
&gt;<br>
&gt;                 I am trying to configure FS as a B2BUA which can do<br>
&gt;                 ptime conversions between the ingress and egress leg.<br>
&gt;<br>
&gt;                 The question is, if both legs have G729 as the codec<br>
&gt;                 but ptime 20 on one and 30 on another, would i still<br>
&gt;                 need to get the licensed mod_com_g729 or can it work<br>
&gt;                 with the passthrough mod_g729. I already tried it out,<br>
&gt;                 but it doesnt seem to work.<br>
&gt;<br>
&gt;                 Is there some configuration needed for this ?<br>
&gt;<br>
&gt;                 --<br>
&gt;                 Thegrid<br>
&gt;<br>
&gt;                 \
_________________________________________________________________________<br> &gt;    \
Professional FreeSWITCH Consulting Services:<br> &gt;                 <a \
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br> &gt;        \
<a href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a><br> &gt;<br>
&gt;                 FreeSWITCH-powered IP PBX: The CudaTel Communication<br>
&gt;                 Server<br>
&gt;                 <a href="http://www.cudatel.com" \
target="_blank">http://www.cudatel.com</a><br> &gt;<br>
&gt;                 Official FreeSWITCH Sites<br>
&gt;                 <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> &gt;                 <a \
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br> \
&gt;                 <a href="http://www.cluecon.com" \
target="_blank">http://www.cluecon.com</a><br> &gt;<br>
&gt;                 FreeSWITCH-users mailing list<br>
&gt;                 <a \
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
 &gt;                 <a \
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> \
&gt;                 UNSUBSCRIBE:<a \
href="http://lists.freeswitch.org/mailman/options/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> \
&gt;                 <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;             --<br>
&gt;             Anthony Minessale II<br>
&gt;<br>
&gt;             FreeSWITCH <a href="http://www.freeswitch.org/" \
target="_blank">http://www.freeswitch.org/</a><br> &gt;             ClueCon <a \
href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br> &gt;   \
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" \
target="_blank">http://twitter.com/FreeSWITCH_wire</a><br> &gt;<br>
&gt;             AIM: anthm<br>
&gt;             <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
 &gt;             GTALK/JABBER/<a \
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
 </div></div>&gt;             IRC: <a href="http://irc.freenode.net" \
target="_blank">irc.freenode.net</a> &lt;<a href="http://irc.freenode.net" \
target="_blank">http://irc.freenode.net</a>&gt; #freeswitch<br> <div \
class="im">&gt;<br> &gt;             FreeSWITCH Developer Conference<br>
&gt;             <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
 &gt;             <a \
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
 &gt;             pstn:<a href="tel:%2B19193869900" \
value="+19193869900">+19193869900</a><br> &gt;<br>
&gt;             _________________________________________________________________________<br>
 &gt;             Professional FreeSWITCH Consulting Services:<br>
&gt;             <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
 &gt;             <a href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a><br> &gt;<br>
&gt;             FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;             <a href="http://www.cudatel.com" \
target="_blank">http://www.cudatel.com</a><br> &gt;<br>
&gt;             Official FreeSWITCH Sites<br>
&gt;             <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> &gt;             <a \
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br> \
&gt;<br> &gt;         Ashwin Kumar Rath<br>
&gt;<br>
&gt;<br>
&gt;     _________________________________________________________________________<br>
 &gt;     Professional FreeSWITCH Consulting Services:<br>
</div>&gt;     <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> \
&lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
 <div class="im">&gt;     <a href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a><br> &gt;<br>
&gt;     FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;     <a href="http://www.cudatel.com" \
target="_blank">http://www.cudatel.com</a><br> &gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> &gt;     <a \
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br> \
&gt;     <a href="http://www.cluecon.com" \
target="_blank">http://www.cluecon.com</a><br> &gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
 </div>&gt;     &lt;mailto:<a \
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
 <div class="im HOEnZb">&gt;     <a \
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> \
&gt;     UNSUBSCRIBE:<a \
href="http://lists.freeswitch.org/mailman/options/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> \
&gt;     <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Ashwin Kumar Rath<br>
&gt;<br>
&gt;<br>
</div><div class="HOEnZb"><div class="h5">&gt; \
_________________________________________________________________________<br> &gt; \
Professional FreeSWITCH Consulting Services:<br> &gt; <a \
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br> &gt; <a \
href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a><br> &gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> &gt; <a \
href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br> \
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br> \
&gt;<br> &gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
 &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> \
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> \
&gt; <a href="http://www.freeswitch.org" \
target="_blank">http://www.freeswitch.org</a><br> <br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" \
target="_blank">http://www.freeswitchsolutions.com</a><br> <br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" \
target="_blank">http://wiki.freeswitch.org</a><br> <a href="http://www.cluecon.com" \
target="_blank">http://www.cluecon.com</a><br> <br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
 <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> \
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" \
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> \
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> \
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ashwin Kumar Rath<br> \
</div>



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic