<html><body>
<p><img width="16" height="16" src="cid:2__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com" border="0" alt="Inactive hide details for dong-ming.li---2014/12/24 下午 12:07:15---dong-ming.li@mail.foxconn.com"><font color="#424282">dong-ming.li---2014/12/24 下午 12:07:15---dong-ming.li@mail.foxconn.com</font><br>
<br>

<table V5DOTBL=true width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="72" height="1" src="cid:3__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com" border="0" alt=""><br>
</td><td style="background-image:url(cid:4__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com); background-repeat: no-repeat; " width="1%"><img width="225" height="1" src="cid:3__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com" border="0" alt=""><br>

<ul>
<ul>
<ul>
<ul><b><font size="2">dong-ming.li@mail.foxconn.com</font></b>
<p><font size="2">2014/12/24 上午 11:54</font></ul>
</ul>
</ul>
</ul>
</td><td width="100%"><img width="1" height="1" src="cid:3__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com" border="0" alt=""><br>
<font size="1" face="Arial">  </font><br>
<font size="2"> </font><font size="2" color="#0000FF">To</font><font size="2">:   </font><font size="2">alfred.lu@foxconn.com</font><br>
<font size="2"> </font><font size="2" color="#0000FF">cc</font><font size="2">:   </font><br>
<font size="2"> Subject:        </font><font size="2">Mediaproxy do not work well with Kamailio SIP server issue</font></td></tr>
</table>

<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="54%" valign="middle"><div align="right"><font size="2">Secret Level: </font></div></td><td width="46%" valign="middle"><img width="1" height="1" src="cid:3__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com" border="0" alt=""></td></tr>

<tr valign="top"><td width="54%" valign="middle"><div align="right"><font size="2">Priority Level:</font></div></td><td width="46%" valign="middle"><img width="1" height="1" src="cid:3__=C7BBF72BDF84E2F78f9e8a93df93@foxconn.com" border="0" alt=""></td></tr>
</table>
<br>
<font face="Sans">Hi, sir,</font><br>
<br>
<font face="Sans">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.</font><br>
<font face="Sans">attached kamailio.cfg.txt is our kamailio-4.2.1 SIP server config file. pls help to rename kamailio.cfg.txt to kamailio.cfg.</font><br>
<font face="Sans">kamailio-4.2.1 SIP server is run on public IP server,and  Linphone SIP client is run behind NAT.</font><br>
<font face="Sans">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.</font><br>
<font face="Sans"> </font><br>
<font face="Sans">Below's our modification regarding the kamailio.cfg file,pls help to check if this is OK or not ?</font><br>
<font face="Sans">#foxconn gallice add start<br>
#### MediaProxy module<br>
loadmodule "mediaproxy.so"<br>
modparam("mediaproxy", "disable", 0)<br>
modparam("mediaproxy", "ice_candidate", "high-priority")<br>
modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")<br>
modparam("mediaproxy", "mediaproxy_timeout", 500)<br>
modparam("mediaproxy", "signaling_ip_avp", "$avp(nat_ip)")<br>
modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")<br>
#foxconn gallice add end</font><br>
<font face="Sans"> </font><br>
<font face="Sans"> # account only INVITEs<br>
 if (is_method("INVITE")) {<br>
  setflag(FLT_ACC); # do accounting<br>
  </font><b><font face="Sans">use_media_proxy(); #foxconn gallice add</font></b><font face="Sans"><br>
 }</font><br>
<font face="Sans"> </font><br>
<font face="Sans"><br>
# Manage incoming replies<br>
onreply_route[MANAGE_REPLY] {<br>
 xdbg("incoming reply\n");<br>
 if(status=~"[12][0-9][0-9]")<br>
        {  #foxconn gallice add<br>
  #route(NATMANAGE); #foxconn gallice delete<br>
                </font><b><font face="Sans">use_media_proxy(); #foxconn gallice add</font></b><font face="Sans"><br>
        }  #foxconn gallice add<br>
}</font><br>
<font face="Sans"> </font><br>
<font face="Sans">For mediaproxy,we can see the media related processes are already run.</font><br>
<font face="Sans"> </font><br>
<font face="Sans">31212 ?        SL     0:01 python ./media-dispatcher start<br>
31218 ?        SL     0:16 python ./media-relay start<br>
<br>
<br>
*****************************************************<br>
dong-ming / 李東明<br>
Foxconn Electronics Inc.<br>
HH Precision Ind. Co., Ltd.<br>
CNSBG NSDI TIPBU R&D Dept.<br>
LH Office<br>
地址:深圳市龍華新區龍華東環二路二號富士康科技集團<br>
分機 : +86-0755-2812-9588 #26109 <br>
Mobile : 13510123670<br>
Mail : dong-ming.li@mail.foxconn.com,<br>
*****************************************************<br>
<br>
溫馨提醒﹕入廠人員須遵守富士康出入管制,請勿攜帶手提電腦、各種攝像、U盤、MP3等存儲設備</font><br>
<font face="Sans"><br>
</font><hr width="100%" size="2" align="left"><font face="Sans">本電子郵件及附件所載信息均為保密信息,受合同保護或依法不得洩漏。其內容僅供指定收件人按限定範圍或特殊目的使用。未經授權者收到此信息均無權閱讀、 使用、 複製、洩漏或散佈。若您因為誤傳而收到本郵件或者非本郵件之指定收件人,請即刻回覆郵件或致電Super Notes郵件客服熱線 560-104,並永久刪除此郵件及其附件和銷毀所有複印件。謝謝您的合作!<br>
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!<br>
</font><hr width="100%" size="2" align="left"><br>
<font face="Sans"><br>
mail from ip-->192.168.2.2<br>
mail from pc-->MICROSOF-700F48<br>
Version: Super Notes 1.6.4.5B</font><br>
<i>(See attached file: kamailio.cfg.txt)</i><br>
<br>
</body></html>