Hello Vlad,<div><br></div><div>Thanks for explaining, I will try to use sst module then!</div><div><br></div><div>Regards,</div><div>Mariana.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 8:28 AM, Vlad Paiu <span dir="ltr">&lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    When using the SST module, refreshing in-dialog replies should work,
    since the internal callbacks are called before the dialog module
    updates it&#39;s timeout values.<br>
    Still, is you set the AVP in the onreply_route, that is known not to
    work since the updating of timeout values is done before the
    onreply_route is triggered. <br>
    <br>
    indeed  this is some sort of bug, that we intend to fix in the
    future 1.9 release, by triggering event routes for different events
    that occur for the dialog module.<br>
    <br>
    Regards,<br>
    <pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
    <br>
    On 11/14/2012 07:59 PM, Muhammad Shahzad wrote:
    <blockquote type="cite">Then its a bug and need to be reported at,
      <div><br>
      </div>
      <div><a href="http://sourceforge.net/tracker/?group_id=232389&amp;atid=1086410" target="_blank">http://sourceforge.net/tracker/?group_id=232389&amp;atid=1086410</a><br>
        <div><br>
        </div>
        <div>Thank you.</div>
        <div><br>
          <br>
          <div class="gmail_quote">On Wed, Nov 14, 2012 at 6:43 PM,
            Mariana Arduini <span dir="ltr">&lt;<a href="mailto:marianarduini@gmail.com" target="_blank">marianarduini@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div><br>
              </div>
              Hi Muhammad,
              <div>
                <div><br>
                </div>
                <div>&quot;<span style="font-family:arial,sans-serif;font-size:13px">Well, i think if you have enabled
                    onreply_avp_mode in TM module then you can access
                    and change AVP you set in route block in on_reply
                    block. I don&#39;t see any reason why you need to modify
                    opensips source code for this.&quot;</span></div>
              </div>
              <div><span style="font-family:arial,sans-serif;font-size:13px">Yes, I have that enabled in tm
                  module, and in fact I can change avp values in
                  onreply_route, from what I see in other avps we use.</span></div>
              <div><span style="font-family:arial,sans-serif;font-size:13px"><br>
                </span></div>
              <div><span style="font-family:arial,sans-serif;font-size:13px">The problem is that it seems the
                  dialog module cannot apply the new avp value to the
                  dialog timeout. Check dialog module docs:</span></div>
              <div>
                <span style="font-family:arial,sans-serif;font-size:13px"><br>
                </span></div>
              <div><span style="font-family:arial,sans-serif"><a href="http://www.opensips.org/html/docs/modules/devel/dialog.html#timeout-avp-id" target="_blank">http://www.opensips.org/html/docs/modules/devel/dialog.html#timeout-avp-id</a></span><span style="font-family:arial,sans-serif;font-size:13px"><br>


                </span></div>
              <div><br>
              </div>
              <div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">** It may be used only
                  in a request (initial or sequential) context**</span><br>
              </div>
              <div><span style="font-family:arial,sans-serif;font-size:13px"><br>
                </span></div>
              <div>Using opensipsctl fifo dlg_list, I can see that the
                timeout value is set to 43200 seconds, which is the
                dafault value, even after setting the timeout avp in
                onreply_route:</div>
              <div><br>
              </div>
              <div>
                <div>
                  # opensipsctl fifo dlg_list</div>
                <div>dialog::  hash=1571:444747590</div>
                <div><span style="white-space:pre-wrap"> </span>state::
                  4</div>
                <div><span style="white-space:pre-wrap"> </span>user_flags::
                  0</div>
                <div><span style="white-space:pre-wrap"> </span>timestart::
                  1352912021</div>
                <div><span style="white-space:pre-wrap"> </span>timeout::
                  1352955222</div>
                <div><span style="white-space:pre-wrap"> </span>callid::
                  <a href="mailto:1-8696@91.190.218.180" target="_blank">1-8696@91.190.218.180</a></div>
                <div>
                  <span style="white-space:pre-wrap"> </span>from_uri::
                  <a href="mailto:sip%3Adaitan.engg1@connect-lync.connect.com" target="_blank">sip:daitan.engg1@connect-lync.connect.com</a></div>
                <div><span style="white-space:pre-wrap"> </span>to_uri::
                  <a href="mailto:sip%3Alync_user@lync.com" target="_blank">sip:lync_user@lync.com</a></div>
                <div><span style="white-space:pre-wrap"> </span>caller_tag::
                  uac191.190.218.180</div>
                <div><span style="white-space:pre-wrap"> </span>caller_contact::
                  sip:10.22.136.172;transport=tcp;did=326.53fb7ac1</div>
                <div><span style="white-space:pre-wrap"> </span>callee_cseq::
                  0</div>
                <div><span style="white-space:pre-wrap"> </span>caller_route_set:: </div>
                <div><span style="white-space:pre-wrap"> </span>caller_bind_addr::
                  tcp:<a href="http://10.22.137.64:5060" target="_blank">10.22.137.64:5060</a></div>
                <div><span style="white-space:pre-wrap"> </span>callee_tag::
                  uas291.190.218.170</div>
                <div><span style="white-space:pre-wrap"> </span>callee_contact::
                  sip:10.22.136.170;transport=tcp;did=326.7efc7653</div>
                <div><span style="white-space:pre-wrap"> </span>caller_cseq::
                  1</div>
                <div><span style="white-space:pre-wrap"> </span>callee_route_set:: </div>
                <div><span style="white-space:pre-wrap"> </span>callee_bind_addr::
                  tcp:<a href="http://10.22.137.25:5060" target="_blank">10.22.137.25:5060</a></div>
              </div>
              <div><br>
              </div>
              <div>I understand the dialog module won´t apply any change
                in the avp from onreply_route, doesn´t matter if done
                manually or through SST module... =/</div>
              <div class="gmail_extra"><br>
              </div>
              <div class="gmail_extra">Thanks again!</div>
              <div class="gmail_extra"><span><font color="#888888">Mariana.</font></span>
                <div>
                  <div><br>
                    <br>
                    <div class="gmail_quote">
                      On Wed, Nov 14, 2012 at 3:17 PM, Muhammad Shahzad
                      <span dir="ltr">&lt;<a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, i think if
                        you have enabled onreply_avp_mode in TM module
                        then you can access and change AVP you set in
                        route block in on_reply block. I don&#39;t see any
                        reason why you need to modify opensips source
                        code for this.
                        <div>
                          <br>
                        </div>
                        <div><a href="http://www.opensips.org/html/docs/modules/1.8.x/tm.html#id292825" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/tm.html#id292825</a></div>
                        <div><br>
                        </div>
                        <div>Just change value of SST AVP as i mentioned
                          in previous email when you get final reply
                          from upstream. However make sure
                          onreply_avp_mode is set as mentioned in about
                          link.</div>
                        <div><br>
                        </div>
                        <div>Thank you.
                          <div>
                            <div><br>
                              <br>
                              <br>
                              <div class="gmail_quote">On Wed, Nov 14,
                                2012 at 5:37 PM, Mariana Arduini <span dir="ltr">&lt;<a href="mailto:marianarduini@gmail.com" target="_blank">marianarduini@gmail.com</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                  <div>Hi Muhammad!</div>
                                  <div><br>
                                  </div>
                                  <div>Thanks for replying.</div>
                                  <div><br>
                                  </div>
                                  I looked at SST module and, at least
                                  from docs, there is no mention to
                                  using it for the 200 OK, only for
                                  INVITES...
                                  <div>
                                    <br>
                                  </div>
                                  <div>Even so, I think the problem is
                                    that the dialog module does not
                                    update the timeout value for 200 OK.
                                    For example, if you want to refresh
                                    the timeout value when you get an
                                    UPDATE message, you have to set the
                                    avp configured in timeout_avp
                                    modparam and then call
                                    match_dialog()/loose_route(),
                                    because either of these functions
                                    will actually update the dialog, and
                                    setting the avp without calling them
                                    will take no effect. I guess the
                                    same thing is happening when I set
                                    the avp after receiving the 200 OK.</div>
                                  <div><br>
                                  </div>
                                  <div>Any help on what should be
                                    changed in OpenSIPS code so that
                                    setting the avp in onreply_route
                                    will take effect on the dialog
                                    timeout?</div>
                                  <div><br>
                                  </div>
                                  <div>Thanks!</div>
                                  <span><font color="#888888">
                                      <div>
                                        Mariana</div>
                                    </font></span>
                                  <div>
                                    <div>
                                      <div class="gmail_extra">
                                        <br>
                                        <br>
                                        <div class="gmail_quote">On Wed,
                                          Nov 14, 2012 at 1:38 PM,
                                          Muhammad Shahzad <span dir="ltr">&lt;<a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a>&gt;</span>
                                          wrote:<br>
                                          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                            Use SST module,
                                            <div><br>
                                            </div>
                                            <div><a href="http://www.opensips.org/html/docs/modules/1.8.x/sst.html#id250008" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/sst.html#id250008</a></div>
                                            <div><br>
                                            </div>
                                            <div>
                                              Thank you.</div>
                                            <div><br>
                                              <br>
                                              <div class="gmail_quote">
                                                <div>
                                                  <div>On Tue, Nov 13,
                                                    2012 at 8:25 PM,
                                                    Mariana Arduini <span dir="ltr">&lt;<a href="mailto:marianarduini@gmail.com" target="_blank">marianarduini@gmail.com</a>&gt;</span>
                                                    wrote:<br>
                                                  </div>
                                                </div>
                                                <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                                  <div>
                                                    <div>
                                                      Hello all,
                                                      <div><br>
                                                      </div>
                                                      <div>I know from
                                                        the docs that
                                                        dialog module
                                                        param
                                                        timeout_avp &quot;<span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"> ...</span><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"> may
                                                          be used only
                                                          in a request
                                                          (initial or
                                                          sequential)
                                                          context</span>&quot;,
                                                        but we have a
                                                        scenario where
                                                        the UAS should
                                                        be the session
                                                        timer refresher,
                                                        then we can only
                                                        set the
                                                        timeout_avp
                                                        value when we
                                                        get the
                                                        Session-expires
                                                        header value in
                                                        200 OK.</div>
                                                      <div><br>
                                                      </div>
                                                      <div>May I ask
                                                        what would be
                                                        the best
                                                        approach to
                                                        this, like
                                                        modifying
                                                        OpenSIPS code to
                                                        be able to
                                                        actually set the
                                                        avp from
                                                        onreply_route?
                                                        If this is the
                                                        case, can you
                                                        please guide us
                                                        on what would
                                                        need to be
                                                        changed?</div>
                                                      <div><br>
                                                      </div>
                                                      <div>Thanks in
                                                        advance,</div>
                                                      <div><br>
                                                      </div>
                                                      <div>Mariana.</div>
                                                      <br>
                                                    </div>
                                                  </div>
_______________________________________________<br>
                                                  Users mailing list<br>
                                                  <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                                                  <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                                  <br>
                                                </blockquote>
                                              </div>
                                              <span><font color="#888888"><br>
                                                  <br clear="all">
                                                  <div><br>
                                                  </div>
                                                  -- <br>
                                                  Muhammad Shahzad<br>
-----------------------------------<br>
                                                  CISCO Rich Media
                                                  Communication
                                                  Specialist (CRMCS)<br>
                                                  CISCO Certified
                                                  Network Associate
                                                  (CCNA)<br>
                                                  Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085" target="_blank">+49
                                                    176 99 83 10 85</a><br>
                                                  MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
                                                  Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
                                                </font></span></div>
                                            <br>
_______________________________________________<br>
                                            Users mailing list<br>
                                            <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                                            <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                            <br>
                                          </blockquote>
                                        </div>
                                        <br>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  Users mailing list<br>
                                  <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                                  <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                  <br>
                                </blockquote>
                              </div>
                              <br>
                              <br clear="all">
                              <div><br>
                              </div>
                              -- <br>
                              Muhammad Shahzad<br>
                              -----------------------------------<br>
                              CISCO Rich Media Communication Specialist
                              (CRMCS)<br>
                              CISCO Certified Network Associate (CCNA)<br>
                              Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085" target="_blank">+49
                                176 99 83 10 85</a><br>
                              MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
                              Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
                            </div>
                          </div>
                        </div>
                        <br>
                        _______________________________________________<br>
                        Users mailing list<br>
                        <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
                        <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
              <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          Muhammad Shahzad<br>
          -----------------------------------<br>
          CISCO Rich Media Communication Specialist (CRMCS)<br>
          CISCO Certified Network Associate (CCNA)<br>
          Cell: <a href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085" target="_blank">+49 176 99 83 10 85</a><br>
          MSN: <a href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
          Email: <a href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
        </div>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>