[OpenSIPS-Users] opensips use engage_media_proxy(), cannot end_media_session() problem

Binan AL Halabi binanalhalabi at yahoo.com
Mon Oct 15 12:29:35 CEST 2012


ok,
See if BYE is matched with the dialog: maybe setting  dlg_match_mode to 1 solve it
Upgrade if you can.


// Binan


________________________________
 Från: Laszlo <laszlo at voipfreak.net>
Till: OpenSIPS users mailling list <users at lists.opensips.org> 
Skickat: torsdag, 11 oktober 2012 19:37
Ämne: Re: [OpenSIPS-Users] opensips use engage_media_proxy(), cannot end_media_session() problem
 
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 <binanalhalabi at yahoo.com>:
> Hi,
>
> # BYE processing
>  if (method==BYE) {
>       end_media_session();
>  }
>
> // Binan
>
> ________________________________
> Från: ㄨ冷se灬 <291490117 at qq.com>
> Till: users <users at lists.opensips.org>
> 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
> 4c66ef815a8aa336677314c730bc2dc3 at A.B.C.D: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:xxxx@A.B.C.D/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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121015/3d169425/attachment.htm>


More information about the Users mailing list