[OpenSIPS-Users] 回复: opensips use engage_media_proxy(),cannot end_media_session() problem
ㄨ冷se灬
291490117 at qq.com
Mon Oct 15 08:35:25 CEST 2012
Hi:
When I add BYE processing as follow :
if (method==BYE) {
end_media_session();
}
an error occurs:
Oct 15 10:36:27 opensips-1 /sbin/opensips[12894]: ERROR:mediaproxy:use_media_proxy: insufficient ports returned from mediaproxy: got 0, expected 1
I see from my mediaproxy it has already distribution 4 ports to the session.
------------------ 原始邮件 ------------------
发件人: "Laszlo"<laszlo at voipfreak.net>;
发送时间: 2012年10月12日(星期五) 凌晨1:37
收件人: "OpenSIPS users mailling list"<users at lists.opensips.org>;
主题: 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/0855c33a/attachment-0001.htm>
More information about the Users
mailing list