Yes it's the correct order. We call dlg_manage() prior to engage_media_proxy():
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; } -- Eduardo Lejarreta. -----Mensaje original----- De: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Enviado el: viernes, 08 de febrero de 2013 9:48 Para: lejarret...@sarenet.es; SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Asunto: Re: [SR-Users] dlg_manage and engage_media_proxy Quick check in the code and discovered that the mediaproxy function set the dialog tracking flag. That is usually used when the dialog structure is wanted just before the forwarding of the message. dlg_manage() creates the dialog immediately. What is the order you use the two functions in config? Cheers, Daniel On 2/7/13 4:51 PM, Eduardo Lejarreta Langarica SARENET wrote: > Good evening. > > Kamailio 3.2.2 and mediaproxy 2.5.2 > > We find a problem when using engage_media_proxy and dlg_manage on the > same kamailio.cfg (we loose one way audio) > > is ther any issue with regard to this? > may be anything we're doing wrong? > any other easy way to control concurrent calls? > > If > > 1.- we avoid dlg_manage with engage_media_proxy or > 2.- we use dlg_manage with "use_media_proxy/end_media_session" > > every thing works fine. > > Any idea will be helpful. > > Thanks and best regards. > ---------------------------------------------------------------------- > ------------------------------------------------------------- > Eduardo Lejarreta > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing > list sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- 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 - _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users