Re: [SR-Users] dlg_manage and engage_media_proxy
On 2/8/13 12:15 PM, Eduardo Lejarreta wrote:
Yes it's the correct order. We call dlg_manage() prior to engage_media_proxy(): The correct order could be the other one, as mediaproxy might need some callbacks from dialog module.
Usually the dlg_manage() should be executed just before relaying, when is no other chance that the invite will get a negative reply from the config. Cheers, Daniel
route[INVITE_MANAGE] {
if (is_method("INVITE")) {
$dlg_var(si) = $si; $dlg_var(tU) = $tU; $dlg_ctx(timeout_bye) = 1;
dlg_manage(); ........ ........ } } ....... ....... route[RELAY] {
if (is_method("INVITE")) { ........ ........ route(MEDIAPROXY); # route MEDIAPROXY t_on_failure(FAIL_ONE); t_on_reply(REPLY_ONE); }
if (!t_relay()) { sl_reply_error(); } exit; } ........ ........ route[MEDIAPROXY] {
xlog("L_INFO", "Engage Media Proxy - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n"); engage_media_proxy(); return; }
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com -
Good evening Daniel. You are right, calling engage_media_proxy() prior to dlg_manage() solves the issue (just before t_relay on INVITEs). I've done several test changing the order of things and now everything works fine. Thank you very much Daniel -- Eduardo Lejarreta. -----Mensaje original----- De: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Enviado el: sábado, 09 de febrero de 2013 0:23 Para: Eduardo Lejarreta; 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List' Asunto: Re: [SR-Users] dlg_manage and engage_media_proxy On 2/8/13 12:15 PM, Eduardo Lejarreta wrote:
Yes it's the correct order. We call dlg_manage() prior to engage_media_proxy(): The correct order could be the other one, as mediaproxy might need some callbacks from dialog module.
Usually the dlg_manage() should be executed just before relaying, when is no other chance that the invite will get a negative reply from the config. Cheers, Daniel
route[INVITE_MANAGE] {
if (is_method("INVITE")) {
$dlg_var(si) = $si; $dlg_var(tU) = $tU; $dlg_ctx(timeout_bye) = 1;
dlg_manage(); ........ ........ } } ....... ....... route[RELAY] {
if (is_method("INVITE")) { ........ ........ route(MEDIAPROXY); # route MEDIAPROXY t_on_failure(FAIL_ONE); t_on_reply(REPLY_ONE); }
if (!t_relay()) { sl_reply_error(); } exit; } ........ ........ route[MEDIAPROXY] {
xlog("L_INFO", "Engage Media Proxy - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n"); engage_media_proxy(); return; }
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com -
participants (2)
-
Daniel-Constantin Mierla -
Eduardo Lejarreta