<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-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; 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-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">use engage_media_proxy</span> and the call works normal ,my media-relay has log as below:<br><pre class="usenet_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; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 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>