Hi,<div><br></div><div>I once had somewhat related issue with OpenSIPS+MediaProxy where media-proxy wasn't able to manage the media between the two end points and end the session in 30 seconds automatically even though everything was fine. Anyway that issue was resolved as soon as we updated the opensips version.</div>
<div><br></div><div>I think that by updating version of opensips or mediaproxy may improve the situation.</div><div><br></div><div>I don't really see any use of dlg_match_mode here because AFAIK that is used for dialog based profiling and matching the stored dialogs based on the mode we select here, I don't see any way which will help the issue by setting it to some other value.</div>
<div><br></div><div>I hope it helps.</div><div>Thanks,</div><div>Sammy</div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Oct 15, 2012 at 3:29 PM, Binan AL Halabi <span dir="ltr"><<a href="mailto:binanalhalabi@yahoo.com" target="_blank">binanalhalabi@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:times new roman,new york,times,serif">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"> <hr size="1"> <b><span style="font-weight:bold">Från:</span></b> Laszlo <<a href="mailto:laszlo@voipfreak.net" target="_blank">laszlo@voipfreak.net</a>><br> <b><span style="font-weight:bold">Till:</span></b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>> <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><div><div class="h5"> <br>
It won't do anything if you used engage_media_proxy(), see<br><a href="http://www.opensips.org/html/docs/modules/1.6.x/mediaproxy.html#id250230" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/mediaproxy.html#id250230</a><br>
<br><br>2012/10/11 Binan AL Halabi <<a href="mailto:binanalhalabi@yahoo.com" target="_blank">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 href="mailto:291490117@qq.com" target="_blank">291490117@qq.com</a>><br>> Till: users <<a href="mailto:users@lists.opensips.org" target="_blank">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 href="mailto:4c66ef815a8aa336677314c730bc2dc3@A.B.C.D" target="_blank">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 href="mailto:xxxx@A.B.C.D" target="_blank">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 href="mailto:Users@lists.opensips.org" target="_blank">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>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.opensips.org" target="_blank">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 href="mailto:Users@lists.opensips.org" target="_blank">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> </div> </div></div><br>_______________________________________________<br>
Users mailing list<br>
<a 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></blockquote></div><br></div>