Yate Community Forum
Yate server => Yate bugs => Topic started by: m.savelsberg on November 22, 2012, 01:41:29 PM
-
Hello,
using Yate 4.2.0 2
mandriva kernel (version 2.6.33.7-server-2mnb)
registered customer is using codec g711 alaw for making calls. We want Yate to transcode this to g711 ulaw for outgoing calls
We added the following lines to regexroute.conf
[default]
${rtp_forward}possible=;rtp_forward=yes
${rtp_forward}^yes$^=;formats=${oformats}
${formats}^=;formats=mulaw
The problem is that transcoding is not working, as calls going out of Yate are still with g711 alaw
In yate log I see " 'alaw' -> [0x7fa250019150] 'alaw' succeeded "
in the attachment I added the complete log of a call attempt.
Any idea what I'm missing in the config ?
Thanks in advance
Martin Savelsberg
-
Edit ysipchan.conf and add additional codecs and modify formats parameter.
-
I made the following changes in ysipchan.conf but withouth sucess
[codecs]
default=disable
;mulaw=default
mulaw=enable
;alaw=default
alaw=enable
1xx_change_formats=yes
Any idea what is wrong?
Thanks in advance,
Martin Savelsberg
-
You are trying to forward RTP and to transcode? Is this even possible?
I guess yate has to handle the RTP to make transcoding, because that is where the voice data is in.
If you set rtp_forward to 'yes', then the two endpoints (the one sending SIP to you and the one you are sending SIP to) handle RTP directly without your interaction and then transcoding is impossible to happen in your system.
Try it with
[default]
rtp_forward=no
format=mulaw
formats=mulaw
-
well I'm not sure, but you should put format(s) and other parameters to a rule like, I'm not sure if processes them global
^12234$=sip/sip:\1@IP;rtp_forward=no;format=mulaw;formats=mulaw