sems-server / sems

Sip Express Media Server
161 stars 92 forks source link

Sip Express Media Server (1.7-dev-90-g97d29b0 (x86_64/linux)) - SBC cannot transcode #44

Open linhtn121 opened 8 years ago

linhtn121 commented 8 years ago

[Hi you, we want to use SEMS to transcode but it's not working -

Caller understands only PCMA codec, callee: understands only PCMU codec:

my.sbcprofile.conf:

enable_rtprelay=yes enable_transcoder=always transcoder_codecs=pcmu,pcma prefer_existing_codecs=yes codec_preference=pcma/8000,pcmu/8000 sdp_filter=whitelist sdpfilter_list=pcma

The sip signaling is ok, but the media is not working....

The log: http://pastebin.com/6swu0hfG

What's wrong in my config? Please help us!

Thank you!

nghiacua commented 8 years ago

Dear linhtn121 Please check plugin wav.so? It's loaded or not?

linhtn121 commented 8 years ago

Dear nghiacua It's loaded! I have a debug log when the SEMS loaded: http://pastebin.com/ttCp9Q5b

nghiacua commented 8 years ago

Everything's seemly OK! Did you add "my.sbcprofile.conf" into /usr/local/etc/sems/etc/sbc.conf file?

linhtn121 commented 8 years ago

No, my.sbcprofile.conf config is different sbc.conf file, It is just same location

nghiacua commented 8 years ago

What is the error in Sip app when you using with and without your config? When you remove your config, please check the log file to confirm the transcoder is disabled.

linhtn121 commented 8 years ago

Server side: there are not any error when I using with and without my config. Client side: When using with my config:(Caller using PCMA, callee using PCMU)

Could you show me a sample for transcode?

nghiacua commented 8 years ago

If you use linephone desktop + without your config + same codecs(PCMA): It is ok, right? I use to use zoiper app to make call. Could you please try it?

linhtn121 commented 8 years ago

If caller and callee using the same codecs (PCMA or PCMU) : everything is OK!

nghiacua commented 8 years ago

Oh, I have not found any wrong in your configs? Please try to use wireshark (or tcpdump) to check media stream in sems server? "Lingphone Desktop: upload ok, download = 0kb"? Do you know "upload" and "download" mean? Upload: meadia stream from linephone -> sems Download: media stream from sems -> linephone, right?

linhtn121 commented 8 years ago

"Lingphone Desktop: upload ok, download = 0kb"? Do you know "upload" and "download" mean? Upload: meadia stream from linephone -> sems Download: media stream from sems -> linephone, right?

Do you have any simple config for transcoding?