It won't do anything if you used engage_media_proxy(), see http://www.opensips.org/html/docs/modules/1.6.x/mediaproxy.html#id250230
2012/10/11 Binan AL Halabi <[email protected]>: > Hi, > > # BYE processing > if (method==BYE) { > end_media_session(); > } > > // Binan > > ________________________________ > Från: ㄨ冷se灬 <[email protected]> > Till: users <[email protected]> > Skickat: torsdag, 11 oktober 2012 11:14 > Ämne: [OpenSIPS-Users] opensips use engage_media_proxy(), cannot > end_media_session() problem > > hi: > my opensips is 1.6.4-2 mediaproxy is 2.4.4 > now when call from PSTN to my opensips ,it works normal. > but call from my opensips to PSTN ,it has a problem: > opensips receive an invite message ,it use engage_media_proxy and > the call works normal ,my media-relay has log as below: > > 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 > > > 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: > media-dispatcher[1888]: session with call_id > [email protected]:5060 from relay 172.30.74.4 did > timeout > why media-relay cannot end the session by end_media_session() > automatic? > > > my opensips.cfg is like this: > > modparam("rr", "enable_full_lr", 0) > modparam("rr", "append_fromtag", 1) > > modparam("dialog", "dlg_flag", 10) > modparam("dialog", "bye_on_timeout_flag", 11) > modparam("dialog", "default_timeout",7200) > modparam("dialog", "db_url", "mysql://xxxx:[email protected]/XXXX") > modparam("dialog", "db_mode", 1) > > modparam("mediaproxy", "disable", 0) > modparam("mediaproxy", "mediaproxy_socket", > "/var/run/mediaproxy/dispatcher.sock") > modparam("mediaproxy", "mediaproxy_timeout", 500) > modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)") > modparam("mediaproxy", "media_relay_avp", "$avp(s:media_relay)") > ....... > on my main route: > > if (is_method("INVITE")) { > engage_media_proxy(); > } > > regards > vic.xiang > > > > > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
