<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt">ok,<br>See if BYE is matched with the dialog: maybe setting dlg_match_mode to 1 solve it<br>Upgrade if you can.<br><div><span><br></span></div><div>// Binan<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> Laszlo <laszlo@voipfreak.net><br> <b><span style="font-weight: bold;">Till:</span></b> OpenSIPS users mailling list <users@lists.opensips.org> <br> <b><span style="font-weight: bold;">Skickat:</span></b> torsdag, 11 oktober 2012 19:37<br> <b><span style="font-weight: bold;">Ämne:</span></b> Re: [OpenSIPS-Users] opensips use engage_media_proxy(), cannot
end_media_session() problem<br> </font> </div> <br>
It won't do anything if you used engage_media_proxy(), see<br>http://www.opensips.org/html/docs/modules/1.6.x/mediaproxy.html#id250230<br><br><br>2012/10/11 Binan AL Halabi <<a ymailto="mailto:binanalhalabi@yahoo.com" href="mailto:binanalhalabi@yahoo.com">binanalhalabi@yahoo.com</a>>:<br>> Hi,<br>><br>> # BYE processing<br>> if (method==BYE) {<br>> end_media_session();<br>> }<br>><br>> // Binan<br>><br>> ________________________________<br>> Från: ㄨ冷se灬 <<a ymailto="mailto:291490117@qq.com" href="mailto:291490117@qq.com">291490117@qq.com</a>><br>> Till: users <<a ymailto="mailto:users@lists.opensips.org" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>> Skickat: torsdag, 11 oktober 2012 11:14<br>> Ämne: [OpenSIPS-Users] opensips use engage_media_proxy(), cannot<br>> end_media_session() problem<br>><br>> hi:<br>>
my opensips is 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 use engage_media_proxy and<br>> the call works normal ,my media-relay has log as below:<br>><br>> 13:49:50 media-relay[690]:<br>> mediaproxy.mediacontrol.StreamListenerProtocol starting on 54436<br>> 13:49:50 media-relay[690]:<br>> mediaproxy.mediacontrol.StreamListenerProtocol starting on 54437<br>> 13:49:50 media-relay[690]:<br>> mediaproxy.mediacontrol.StreamListenerProtocol starting on 54438<br>> 13:49:50 media-relay[690]:<br>> mediaproxy.mediacontrol.StreamListenerProtocol starting on 54439<br>><br>><br>> when opensips receive BYE message ,it can end the dialog ,but
doesnot<br>> end media session.just wait for conntrack timeout ,after 60 sceonds<br>> ,mediadispatcher end the session:<br>> media-dispatcher[1888]: session with call_id<br>> <a ymailto="mailto:4c66ef815a8aa336677314c730bc2dc3@A.B.C.D" href="mailto:4c66ef815a8aa336677314c730bc2dc3@A.B.C.D">4c66ef815a8aa336677314c730bc2dc3@A.B.C.D</a>:5060 from relay 172.30.74.4 did<br>> timeout<br>> why media-relay cannot end the session by end_media_session()<br>> 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:<a ymailto="mailto:xxxx@A.B.C.D" href="mailto:xxxx@A.B.C.D">xxxx@A.B.C.D</a>/XXXX")<br>> modparam("dialog", "db_mode", 1)<br>><br>> modparam("mediaproxy", "disable", 0)<br>> modparam("mediaproxy", "mediaproxy_socket",<br>> "/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>><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>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>><br>><br>><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>_______________________________________________<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>