<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><pre>Hi,<br> <br># BYE processing
if (method==BYE) {
end_media_session();
}</pre><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: monospace; background-color: transparent; font-style: normal;"><span>// Binan<br></span></div><div><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">Från:</span></b> ㄨ冷se灬 <291490117@qq.com><br> <b><span style="font-weight: bold;">Till:</span></b> users <users@lists.opensips.org> <br> <b><span style="font-weight: bold;">Skickat:</span></b> torsdag, 11 oktober 2012 11:14<br> <b><span style="font-weight: bold;">Ämne:</span></b> [OpenSIPS-Users] opensips use engage_media_proxy(), cannot end_media_session() problem<br> </font> </div> <br>
<div id="yiv1390760865"><font><div>hi: <br> my opensips is <span style="color:rgb(0, 0, 0);font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;background-color:rgb(255, 255, 255);display:inline;float:none;"></span>1.6.4-2 mediaproxy is 2.4.4<br> now when call from PSTN to my opensips ,it works normal.<br> but call from my opensips to PSTN ,it has a problem: <br> opensips receive an invite message ,it <span style="color:rgb(0, 0, 0);font-family:Verdana, Geneva, Helvetica, Arial,
sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;background-color:rgb(255, 255, 255);display:inline;float:none;">use engage_media_proxy</span> and the call works normal ,my media-relay has log as below:<br><pre class="yiv1390760865usenet_thread_body" style="margin:0px 0px 10px;padding:5px 10px;border:1px solid rgb(170, 170, 170);line-height:16.78333282470703px;letter-spacing:normal;text-indent:0px;overflow:auto;background-color:rgb(254, 254, 254);color:rgb(0, 0, 0);clear:both;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;orphans:2;text-align:left;text-transform:none;widows:2;word-spacing:0px;">13:49:50 media-relay[690]:
mediaproxy.mediacontrol.StreamListenerProtocol starting on 54436
13:49:50 media-relay[690]:
mediaproxy.mediacontrol.StreamListenerProtocol starting on 54437
13:49:50 media-relay[690]:
mediaproxy.mediacontrol.StreamListenerProtocol starting on 54438
13:49:50 media-relay[690]:
mediaproxy.mediacontrol.StreamListenerProtocol starting on 54439</pre><br> when opensips receive BYE message ,it can end the dialog ,but doesnot end media session.just wait for conntrack timeout ,after 60 sceonds ,mediadispatcher end the session:<br>media-dispatcher[1888]: session with call_id 4c66ef815a8aa336677314c730bc2dc3@A.B.C.D:5060 from relay 172.30.74.4 did timeout<br> why media-relay cannot end the session by end_media_session() automatic?<br><br><br> my opensips.cfg is like this:<br><br> modparam("rr", "enable_full_lr", 0)<br> modparam("rr", "append_fromtag", 1)<br><br> modparam("dialog", "dlg_flag", 10)<br> modparam("dialog",
"bye_on_timeout_flag", 11)<br> modparam("dialog", "default_timeout",7200)<br> modparam("dialog", "db_url", "mysql://xxxx:xxxx@A.B.C.D/XXXX")<br> modparam("dialog", "db_mode", 1)<br><br> modparam("mediaproxy", "disable", 0)<br> modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")<br> modparam("mediaproxy", "mediaproxy_timeout", 500)<br> modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)")<br> modparam("mediaproxy", "media_relay_avp",
"$avp(s:media_relay)")<br> .......<br>on my main route:<br><br> if (is_method("INVITE")) {<br> engage_media_proxy(); <br> }<br><br>regards<br>vic.xiang<br><br><br><br><br><br><br> <br></div></font></div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br> </div> </div> </div></body></html>