[Freeswitch-users] How to configure g729 pass though on Freeswitch

Frank Church vfclists at googlemail.com
Fri Apr 2 11:52:36 PDT 2010


On 2 April 2010 13:46, David Ponzone <david.ponzone at gmail.com> wrote:
> Frank,
> sorry, I completely forgot one important detail:
> in the default conf, G729 is not allowed on any SIP profiles, so you have to
> modify vars.xml.
> You will find the following lines:
>   <X-PRE-PROCESS cmd="set"
> data="global_codec_prefs=G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM"/>
>   <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,G729"/>
> For now, I recommend you replace them by:
>   <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G729,PCMU,PCMA"/>
>   <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=G729,PCMU,PCMA"/>
> Then in FS console, do:
> sofia profile external restart reloadxml
> sofia profile internal restart reloadxml
> It should then work far better.
> What we did there is to make G729 an accepted codec in inbound INVITEs and a
> proposed codec for outbound INVITEs.
> Look in external.xml or internal.xml, and look at the variables
> inbound-codec-prefs and outbound-codec-prefs.
> David Ponzone  Direction Technique
> email: david.ponzone at ipeva.fr
> tel:      01 74 03 18 97
> gsm:   06 66 98 76 34
> Service Client IPeva
> tel:      0811 46 26 26
> www.ipeva.fr  -   www.ipeva-studio.com
> Ce message et toutes les pièces jointes sont confidentiels et établis à
> l'intention exclusive de ses destinataires. Toute utilisation ou diffusion
> non autorisée est interdite. Tout message électronique est susceptible
> d'altération. IPeva décline toute responsabilité au titre de ce message s'il
> a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce
> message, merci de le détruire immédiatement et d'avertir l'expéditeur.
>
>
>
> Le 02/04/2010 à 14:30, David Ponzone a écrit :
>
> Frank,
> mod_g729 needs to be loaded, and then G729 needs to be negotiated on both
> legs.
> I really recommend you enable G729 on the Linksys, enable SIP trace on FS
> console:
> sofia profile external siptrace on
> sofia profile internal siptrace on
> then make a (failing) call, capture the log on FS console and paste that to:
> http://pastebin:freeswitch@pastebin.freeswitch.org/

This the pastebin link

http://pastebin.freeswitch.org/12616

There is also one below it with the successful call.

I have set the default provider in vars.xml rather than under the
sip_profiles/external. Is there a section in the default dialplan that
handles the default context?

Can the options below be used in the default for the dialplan and sip_profiles?

In the dial plan
<action application="set" data="proxy_media=true"/>

In the sip profile
<param name="inbound-proxy-media" value="true"/>

 The Linksys accounts are in the default contexts.

> Then, send us back the link to your paste.
> You can also join us on #freeswitch (irc.freenode.net), for some live help.
> David Ponzone  Direction Technique
> email: david.ponzone at ipeva.fr
> tel:      01 74 03 18 97
> gsm:   06 66 98 76 34
> Service Client IPeva
> tel:      0811 46 26 26
> www.ipeva.fr  -   www.ipeva-studio.com
> Ce message et toutes les pièces jointes sont confidentiels et établis à
> l'intention exclusive de ses destinataires. Toute utilisation ou diffusion
> non autorisée est interdite. Tout message électronique est susceptible
> d'altération. IPeva décline toute responsabilité au titre de ce message s'il
> a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce
> message, merci de le détruire immédiatement et d'avertir l'expéditeur.
>
>
>
> Le 02/04/2010 à 14:03, Frank Church a écrit :
>
> On 2 April 2010 10:23, Jason White <jason at jasonjgw.net> wrote:
>
> Frank Church <vfclists at googlemail.com> wrote:
>
> I am just trialling Freeswitch with Linksys adapters, whose default
>
> codec I have set to G729 with 'Use Pref Codec Only:' set to no.
>
> When I change that setting to 'yes' the calls don't go through. I am
>
> using the latest Windows SVN.
>
> FreeSWITCH only supports G.729 in pass-through mode (i.e., with bypass media
>
> enabled). Apparently you can buy a G.729 licence for FreeSWITCH if you
> really
>
> need it.
>
> My recommendation would be to use a codec other than G.729 unless you have a
>
> compelling reason, for example a carrier that only supports G.729.
>
>
>
> The carrier insists on G729, although they can accept G711. I think
> their call volume does not make it easy on them and their customers as
> well.
>
> I did some googling and came up with freeswitch-codec-passthru-g729. I
> have also read http://wiki.freeswitch.org/wiki/Proxy_Media and
> http://wiki.freeswitch.org/wiki/Bypass_Media.
> In my module.conf.xml there is also <load module="mod_g729"/>.
>
> Does that mean that my installlation is configured for pass thru if I
> make the right adjustments?
>
> I have looked at
> http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg12303.html
> and
> http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg20949.html
> which speak of modifying the dialplan.
>
> This is a basic freeswitch setup using the defaults. I just added the
> extensions to conf/directory/default and changed the provider in
> vars.xml and I want to be able to do the same in
> conf/dialplan/default.xml.
>
> In conf/dialplan/default.xml the extension is matched by the
> destination. Is there an option for not falling through to other
> extensions if they also match?
>
> _______________________________________________
>
> FreeSWITCH-users mailing list
>
> FreeSWITCH-users at lists.freeswitch.org
>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>
> http://www.freeswitch.org
>
>
>
>
> --
> Frank Church
>
> =======================
> http://devblog.brahmancreations.com
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com



More information about the FreeSWITCH-users mailing list