opensips use engage_media_proxy(), cannot end_media_session() problem

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

opensips use engage_media_proxy(), cannot end_media_session() problem

ㄨ冷se灬
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 [hidden email]: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:[hidden email]/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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: opensips use engage_media_proxy(), cannot end_media_session() problem

Binan83
Hi,
 
# BYE processing if (method==BYE) { end_media_session(); }
// Binan


Från: ㄨ冷se灬 <[hidden email]>
Till: users <[hidden email]>
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 [hidden email]: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:[hidden email]/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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
voipmagazine.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: opensips use engage_media_proxy(), cannot end_media_session() problem

Laszlo
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 <[hidden email]>:

> Hi,
>
> # BYE processing
>  if (method==BYE) {
>       end_media_session();
>  }
>
> // Binan
>
> ________________________________
> Från: ㄨ冷se灬 <[hidden email]>
> Till: users <[hidden email]>
> 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
> [hidden email]: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:[hidden email]/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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: opensips use engage_media_proxy(), cannot end_media_session() problem

Binan83
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 <[hidden email]>
Till: OpenSIPS users mailling list <[hidden email]>
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 <[hidden email]>:

> Hi,
>
> # BYE processing
>  if (method==BYE) {
>      end_media_session();
>  }
>
> // Binan
>
> ________________________________
> Från: ㄨ冷se灬 <[hidden email]>
> Till: users <[hidden email]>
> 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
> [hidden email]: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:[hidden email]/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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
voipmagazine.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: opensips use engage_media_proxy(), cannot end_media_session() problem

SamyGo
Hi,

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.

I think that by updating version of opensips or mediaproxy may improve the situation.

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.

I hope it helps.
Thanks,
Sammy



On Mon, Oct 15, 2012 at 3:29 PM, Binan AL Halabi <[hidden email]> wrote:
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 <[hidden email]>
Till: OpenSIPS users mailling list <[hidden email]>
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 <[hidden email]>:
> Hi,
>
> # BYE processing
>  if (method==BYE) {
>      end_media_session();
>  }
>
> // Binan
>
> ________________________________
> Från: ㄨ冷se灬 <[hidden email]>
> Till: users <[hidden email]>
> 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
> [hidden email]: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:[hidden email]/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
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users