<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Thanks Daniel,<br></div><div><br>I'm confused a little bit by the dialog module documentation. Please correct me if I'm wrong<br><br></div>For initial invite I should create a dialog with dlg_manage "just" before t_relay.<br>
All dialog variables would be set correctly?<br></div>How about dialog:failed route, would it work correctly?<br></div>For in dialog requests (has_totag) I should call dlg_manage at the beginning of the script to have all dialog variables available.<br>
<br></div>So far seems to be fine. However uac_replace_from auto restore feature does not work with this scenario. Should I move it right after dlg_manage like this:?<br><br></div>dlg_manage();<br></div>uac_replace_from();<br>
</div>t_relay;<br><br></div><div>I think e.g. mediaproxy also requires the dialog to be started before enagage_mediaproxy()?<br>Aren't there any other functions bound to the dialog creation?<br></div><div><br></div>I apologize for so many questions and if any of these questions is inappropriate I'm sorry.<br>
<br></div>Thanks for clarifying answers.<br><br></div>Efelin <br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/14 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hello,<div><div class="h5"><br>
      <br>
      On 10/14/13 10:07 AM, Efelin Novak wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div><br>
                            </div>
                            Hi folks,<br>
                            <br>
                          </div>
                          i have a problem with call_control module. I
                          get a following log from kamailio<br>
                          <br>
                          kamailio[15066]: WARNING: call_control
                          [call_control.c:1159]: postprocess_request():
                          dialog to trace controlled call was not
                          created. discarding callcontrol.<br>
                          <br>
                        </div>
                        and following log from call_control python
                        application<br>
                        <br>
                        Call id <call-id> of <a href="mailto:1000@domain.com" target="_blank">1000@domain.com</a>
                        to <a href="mailto:sip%3A0033000000@domain.com" target="_blank">sip:0033000000@domain.com</a>
                        canceled by user<br>
                        <br>
                      </div>
                      As far as I can see the call_control module runs a
                      postprocess_request() function which checks
                      whether the dialog was created by checking
                      FL_USE_CALL_CONTROL variable.<br>
                      <br>
                    </div>
                    This variable is set at the time of the registration
                    of call_controll to the dialog module DLGCB_CREATED.<br>
                    <br>
                  </div>
                  Therefore if I call the call_control() function in
                  kamailio after the dlg_manage, the FL_USE_CALL_CONTROL
                  cannot be set and the call_control won't work.<br>
                  <br>
                </div>
                In my configuration I would like to call the dlg_manage
                at the beginning of the script for example because of
                uac_replace_from as I have AUTO_RESTORE mode ON.<br>
                <br>
              </div>
              I have kamailio 4.0.2 and call_control 2.0.15.<br>
              <br>
            </div>
            Is there anything I can fix in a script or configuration or
            this is an implementation problem?<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br></div></div>
    you can call dlg_manage() inside if conditions for initial requests
    and within dialog requests. So for initial you have it towards the
    end of the script. Anyhow, in both cases, do it as much as possible
    before relaying.<br>
    <br>
    Cheers,<br>
    Daniel<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Trainings - Berlin, Nov 25-28; Miami, Nov 18-20, 2013
  - more details about Kamailio trainings at <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> -
</pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>