|---------+-----------------------------> | | dong-ming.li@mail.| | | foxconn.com | | | | | | 2014/12/24 上午 | | | 11:54 | |---------+----------------------------->
--------------------------------------------------------------------------------------------------------------------------------------------------|
| | | To: alfred.lu@foxconn.com | | cc: | | Subject: Mediaproxy do not work well with Kamailio SIP server issue |
--------------------------------------------------------------------------------------------------------------------------------------------------|
Secret Level: |------------------------| | ( ) 1.Non-Confidential | | ( ) 2.Confidential | | ( ) 3.Secret | | ( ) 4.Top Secret | |------------------------|
Priority Level: |--------------------| | ( ) 1.Normal | | ( ) 2.Urgent | | ( ) 3.Extra Urgent | |--------------------| -------------------------------------------------------------------------
Hi, sir,
We try to setup Mediaproxy on CentOS 6.6 with kamailio-4.2.1 SIP server. We use Linphone android version as SIP client to test. attached kamailio.cfg.txt is our kamailio-4.2.1 SIP server config file. pls help to rename kamailio.cfg.txt to kamailio.cfg. kamailio-4.2.1 SIP server is run on public IP server,and Linphone SIP client is run behind NAT. The problem is that only callee can hear caller's rtp audio data. caller can not hear callee's audio data. And the call will auto disconnect after about 30s time out.
Below's our modification regarding the kamailio.cfg file,pls help to check if this is OK or not ? #foxconn gallice add start #### MediaProxy module loadmodule "mediaproxy.so" modparam("mediaproxy", "disable", 0) modparam("mediaproxy", "ice_candidate", "high-priority") modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock") modparam("mediaproxy", "mediaproxy_timeout", 500) modparam("mediaproxy", "signaling_ip_avp", "$avp(nat_ip)") modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)") #foxconn gallice add end
# account only INVITEs if (is_method("INVITE")) { setflag(FLT_ACC); # do accounting use_media_proxy(); #foxconn gallice add }
# Manage incoming replies onreply_route[MANAGE_REPLY] { xdbg("incoming reply\n"); if(status=~"[12][0-9][0-9]") { #foxconn gallice add #route(NATMANAGE); #foxconn gallice delete use_media_proxy(); #foxconn gallice add } #foxconn gallice add }
For mediaproxy,we can see the media related processes are already run.
31212 ? SL 0:01 python ./media-dispatcher start 31218 ? SL 0:16 python ./media-relay start
***************************************************** dong-ming / 李東明 Foxconn Electronics Inc. HH Precision Ind. Co., Ltd. CNSBG NSDI TIPBU R&D Dept. LH Office 地址:深圳市龍華新區龍華東環二路二號富士康科技集團 分機 : +86-0755-2812-9588 #26109 Mobile : 13510123670 Mail : dong-ming.li@mail.foxconn.com, *****************************************************
溫馨提醒﹕入廠人員須遵守富士康出入管制,請勿攜帶手提電腦、各種攝像、U盤、MP3 等存儲設備
本電子郵件及附件所載信息均為保密信息,受合同保護或依法不得洩漏。其內容僅供 指定收件人按限定範圍或特殊目的使用。未經授權者收到此信息均無權閱讀、 使用、 複製、洩漏或散佈。若您因為誤傳而收到本郵件或者非本郵件之指定收件人,請即刻 回覆郵件或致電Super Notes郵件客服熱線 560-104,並永久刪除此郵件及其附件和銷 毀所有複印件。謝謝您的合作! This e-mail message together with any attachments thereto (if any) is confidential, protected under an enforceable non-disclosure agreement, intended only for the use of the named recipient(s) above and may contain information that is privileged, belonging to professional work products or exempt from disclosure under applicable laws.Any unauthorized review, use, copying, disclosure, or distribution of any information contained in or attached to this transmission is STRICTLY PROHIBITED and may be against the laws. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender by e-mail or telephone at Super Notes support hotline 560-104 and delete this e-mail message and any attached documentation from your computer. Receipt by anyone other than the intended recipient(s) is not a waiver of any attorney-client or work product privilege. Thank you!
mail from ip-->192.168.2.2 mail from pc-->MICROSOF-700F48 Version: Super Notes 1.6.4.5B (See attached file: kamailio.cfg.txt)