[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"><<a \
href="mailto:steveu@coppice.org" target="_blank">steveu@coppice.org</a>></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'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>
> Hi Steven<br>
><br>
> Yes we have tried the passthru_ptime_mismatch set to true but that<br>
> didnt solve the purpose. So we decided to try sangoma. Trouble is FS<br>
> uses the sangoma even in case of passthrough. Is there something that<br>
> can be done to use mod_G729 for passthrough and sangoma g729 for ptime<br>
> mismatch ?<br>
><br>
><br>
> On Fri, May 31, 2013 at 5:55 PM, Steven Ayre <<a \
href="mailto:steveayre@gmail.com">steveayre@gmail.com</a><br> </div><div><div \
class="h5">> <mailto:<a \
href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>>> wrote:<br> ><br>
> First have you tried passthru_ptime_mismatch=true yet? It's not<br>
> the default used by the passthrough mod_g729 codec.<br>
><br>
> Only one module can be loaded at a time to provide a given codec<br>
> (ie mod_g729 or mod_com_g729 or mod_sangoma_codec). Internally<br>
> perhaps the sangoma module would avoid licenses, but they would<br>
> need to clarify. AFAIK mod_com_g729 only uses a license when<br>
> required, simple 729-729 bridges still use passthrough, but I<br>
> don't know how ptime affects that. It's be easy to test though -<br>
> load it without any licenses and try a 729-729 call with differing<br>
> primes and see it the call gets through.<br>
><br>
> -Steve<br>
><br>
><br>
><br>
> On Friday, May 31, 2013, Ashwin Rath wrote:<br>
><br>
> Thanks Anthony ,<br>
><br>
> Looks like we would need to purchase a G729 license for<br>
> Freeswitch or use a Sangoma card. Is there some configuration<br>
> which tells Freeswitch to use the card ( or the software codec<br>
> ) only in case of a ptime mismatch so that we could save on<br>
> the licensing fee only for calls that actually need ptime<br>
> conversion ?<br>
><br>
><br>
> On Tue, May 28, 2013 at 8:21 PM, Anthony Minessale<br>
> <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> \
wrote:<br> ><br>
> Set the variable passthru_ptime_mismatch=true on both legs<br>
> of the call. That's the best we can do. If that \
doesn't<br> > work you'll need licenses.<br>
><br>
><br>
><br>
><br>
> On Tue, May 28, 2013 at 9:12 AM, Ashwin Rath<br>
> <<a \
href="mailto:ashwinrath@gmail.com">ashwinrath@gmail.com</a>> wrote:<br> ><br>
> Hi<br>
><br>
> I am trying to configure FS as a B2BUA which can do<br>
> ptime conversions between the ingress and egress leg.<br>
><br>
> The question is, if both legs have G729 as the codec<br>
> but ptime 20 on one and 30 on another, would i still<br>
> need to get the licensed mod_com_g729 or can it work<br>
> with the passthrough mod_g729. I already tried it out,<br>
> but it doesnt seem to work.<br>
><br>
> Is there some configuration needed for this ?<br>
><br>
> --<br>
> Thegrid<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<br>
> 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> ><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" \
target="_blank">http://www.freeswitch.org/</a><br> > ClueCon <a \
href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br> > \
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" \
target="_blank">http://twitter.com/FreeSWITCH_wire</a><br> ><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> GTALK/JABBER/<a \
href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
</div></div>> IRC: <a href="http://irc.freenode.net" \
target="_blank">irc.freenode.net</a> <<a href="http://irc.freenode.net" \
target="_blank">http://irc.freenode.net</a>> #freeswitch<br> <div \
class="im">><br> > FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
> <a \
href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> pstn:<a href="tel:%2B19193869900" \
value="+19193869900">+19193869900</a><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> \
><br> > Ashwin Kumar Rath<br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
</div>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> \
<mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>
<div class="im">> <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>
</div>> <mailto:<a \
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div class="im HOEnZb">> <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> ><br>
><br>
><br>
><br>
> --<br>
> Ashwin Kumar Rath<br>
><br>
><br>
</div><div class="HOEnZb"><div class="h5">> \
_________________________________________________________________________<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> <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