[Freeswitch-users] RTP Proxy config and DTMF conversion problem

Steven Ayre steveayre at gmail.com
Wed Feb 23 12:04:10 MSK 2011


http://wiki.freeswitch.org/wiki/Proxy_Media#Why_you_almost_certainly_don.27t_want_to_use_it


On 23 February 2011 08:56, Steven Ayre <steveayre at gmail.com> wrote:

> Exactly,
>
> Mac - I already answered this and pointed out this was your problem in your
> previous thread.
>
> There are three media modes:
>   Standard - Media flows through FS, full processing options (the default)
>   Proxy - Media flows through FS *no* processing options, just passed
> straight through
>   Bypass - Media flows around FS
>
> If you want to do anything that requires making a change to the media you
> have to use Standard.
>
> This is equivalent to:
> <action application="set" data="proxy_media=*false*"/>
>
> <action application="set" data="bypass_media=*false*"/>
>
> Since it's the default those lines are *not* required (leave them out
> completely) unless you've set either of those modes on your SIP profile in
> which case it would override the profile's parameter.
>
> Steve
>
>
>
>
> On 23 February 2011 00:16, Anthony Minessale <anthony.minessale at gmail.com>wrote:
>
>> just because you want to make a proxy and there is a mode with the
>> name proxy in it, you do not have to use it.
>> proxy_media mode is not going to work with inband detection because
>> then you are looking at the media and not really proxying it.
>>
>>
>>
>> On Sun, Feb 20, 2011 at 11:46 AM, Mac <validator77 at gmail.com> wrote:
>> > Dear ALL,
>> >
>> > Thats my first post here. I am struggling for some time with DTMF issue.
>> > Let me introduce you my configuration.
>> >
>> > The main task is to configure RTP Proxy with full topology hiding -
>> > OPERATOR_1 ------- Freeswitch ------- OPERATOR_2
>> > Here is a prt of my config:
>> > - sip profile.
>> > I have one new sip profile with two gateways (OPERATOR_1 and OPERATOR_2)
>> > <include>
>> >   <gateway name="OP1">
>> >     <param name="username" value="X1.Y1.V1.Z1"/>
>> >     <param name="password" value="09321234"/>
>> >     <param name="proxy" value="X1.Y1.V1.Z1"/>
>> >     <param name="from-domain" value="test.com"/>
>> >     <param name="register" value="false"/>
>> >     <param name="caller-id-in-from" value="true"/>
>> >     <param name="extension" value="test"/>
>> >     <param name="extension-in-contact" value="true"/>
>> >     <param name="outbound-codec-prefs" value="$${outbound_codec_
>> > prefs}"/>
>> >     <param name="disable-transcoding" value="true"/>
>> >     <param name="inbound-late-negotiation" value="true"/>
>> >   </gateway>
>> > </include>
>> >
>> > - dialplan
>> > <include>
>> >   <context name="public">
>> >         <extension name="term">
>> >                 <condition field="network_addr"
>> > expression="^(X1\.Y1\.V1\.Z1|X2\.Y2\.V1\.Z1)$" break="on-false"/>
>> >                 <condition field="destination_number"
>> > expression="^46(\d{9})$">
>> >                 <action application="set" data="proxy_media=true"/>
>> >                 <action application="set" data="bypass_media=false"/>
>> >                 <action application="start_dtmf"/>
>> >                 <action application="bridge"
>> data="sofia/gateway/OP1/$0"/>
>> >                 </condition>
>> >         </extension>
>> >   </context>
>> > </include>
>> >
>> > Everything is fine, but i have problem with DTMF conversion from RFC2833
>> to
>> > inband.
>> > Refering to
>> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf
>> > and http://wiki.freeswitch.org/wiki/Proxy_Media i have done all the
>> > necessary things.
>> >
>> > vars.xml
>> >   <X-PRE-PROCESS cmd="set"
>> data="global_codec_prefs=PCMA,G.729,PCMU,GSM"/>
>> >   <X-PRE-PROCESS cmd="set"
>> data="outbound_codec_prefs=PCMA,G.729,PCMU,GSM"/>
>> >
>> > The after-effect is following output:
>> > [ERR] switch_core_io.c:1055 Codec PROXY PASS-THROUGH encoder error!
>> >
>> > Placing  <param name="dtmf-type" value="none"/> does not help anyway.
>> >
>> > Could sb point me where the problem is located?
>> >
>> > Thanks in advance,
>> > Mac
>> > _______________________________________________
>> > 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
>> >
>> >
>>
>>
>>
>> --
>> Anthony Minessale II
>>
>> FreeSWITCH http://www.freeswitch.org/
>> ClueCon http://www.cluecon.com/
>> Twitter: http://twitter.com/FreeSWITCH_wire
>>
>> AIM: anthm
>> MSN:anthony_minessale at hotmail.com
>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>> IRC: irc.freenode.net #freeswitch
>>
>> FreeSWITCH Developer Conference
>> sip:888 at conference.freeswitch.org
>> googletalk:conf+888 at conference.freeswitch.org
>> pstn:+19193869900
>>
>> _______________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110223/69a8241c/attachment-0001.html 


More information about the FreeSWITCH-users mailing list