[Freeswitch-users] how to transcode from g.729 to g.711a ?
Jeff Chua
jeff.chua.linux at gmail.com
Thu Jun 25 09:48:23 MSD 2015
On Mon, Jun 22, 2015 at 6:25 PM, Stanislav Sinyagin <ssinyagin at gmail.com> wrote:
> ah, of course. I didn't go that far down the message :-)
>
> On Mon, Jun 22, 2015 at 12:16 PM, Giovanni Maruzzelli <gmaruzz at gmail.com> wrote:
>> You cannot bypass media if you want to transcode. Neither you can proxy
>> media.
>>
>> Delete this two lines:
>>
>> => <action application="set" data="proxy_media=false"/>
>> => <action application="set" data="bypass_media=true"/>
>>
>> -giovanni
>>
>>
>>
>>
>> On Mon, Jun 22, 2015 at 12:11 PM, Stanislav Sinyagin <ssinyagin at gmail.com>
>> wrote:
>>>
>>> the call towards sip:68465283 at 155.161.200.188:5070 contains only
>>> G.729 in SDP offer, so the remote side turned it down. You can use the
>>> "absolute_codec_string" variable to enforce the G.711 codec on the
>>> other side.
>>>
>>> Also, late negotiation is enabled by default in the SIP profiles. You
>>> may want to disable it, so that each leg negotiates the codec more
>>> independently.
>>>
>>>
>>>
>>> On Mon, Jun 22, 2015 at 12:03 PM, Jeff Chua <jeff.chua.linux at gmail.com>
>>> wrote:
>>> > On Mon, Jun 22, 2015 at 5:41 PM, Stanislav Sinyagin
>>> > <ssinyagin at gmail.com> wrote:
>>> >> G.729 support is not coming out of the box, because you need to
>>> >> purchase a G.729 license for your FreeSWITCH box.
>>> >>
>>> >> Without the license, the server can only transparently pass the media.
>>> >
>>> >> On Mon, Jun 22, 2015 at 10:17 AM, Jeff Chua <jeff.chua.linux at gmail.com>
>>> >> wrote:
>>> >> And I've bought license for g.729.
>>> >
>>> > I paid for the license via freeswitch website
>>> > https://freeswitch.com/cart.php?a=confproduct&i=0, and g729_info shows
>>> > that I've 2 channels.
>>> >
>>> > Any idea on how to do the transcoding?
I tried and it still does work. Any simple sample to follow for
transcoding g.729 to g.711a ?
Here's my modfied sip_profiles/external/example.xml
<gateway name="outbound1">
<param name="realm" value="155.161.200.188:5070"/>
<param name="register" value="false"/>
<param name="inbound-late-negotiation" value="false"/>
<variables>
<variable name="absolute_codec_string"
value="PCMA" direction="outbound"/>
</variables>
<param name="reg-id" value="1"/>
</gateway>
I'm seeing this error ...
2015-06-25 13:48:10.580918 [NOTICE] switch_channel.c:1075 New Channel
sofia/internal/1001 at 155.161.200.188
[4777a3ee-e25a-481b-91ad-52eaa247a624]
2015-06-25 13:48:10.640922 [INFO] mod_dialplan_xml.c:635 Processing
1001 <1001>->+6568465283 in context default
2015-06-25 13:48:10.640922 [NOTICE] switch_channel.c:1075 New Channel
sofia/external/68465283 [9c4747f3-6a36-4933-b158-bcead6bd0ed9]
2015-06-25 13:48:10.660920 [NOTICE] sofia.c:7543 Hangup
sofia/external/68465283 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
2015-06-25 13:48:10.660920 [NOTICE] switch_core_session.c:1641 Session
2 (sofia/external/68465283) Ended
2015-06-25 13:48:10.660920 [NOTICE] switch_core_session.c:1645 Close
Channel sofia/external/68465283 [CS_DESTROY]
2015-06-25 13:48:10.660920 [INFO] mod_dptools.c:3246 Originate Failed.
Cause: NORMAL_TEMPORARY_FAILURE
2015-06-25 13:48:10.660920 [NOTICE] switch_channel.c:4747 Hangup
sofia/internal/1001 at 155.161.200.188 [CS_EXECUTE]
[NORMAL_TEMPORARY_FAILURE]
2015-06-25 13:48:10.660920 [NOTICE] switch_core_session.c:1641 Session
1 (sofia/internal/1001 at 155.161.200.188) Ended
2015-06-25 13:48:10.660920 [NOTICE] switch_core_session.c:1645 Close
Channel sofia/internal/1001 at 155.161.200.188 [CS_DESTROY]
Thanks,
Jeff
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list