<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body 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'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 class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 11/14/2012 07:59 PM, Muhammad Shahzad wrote:
<blockquote
cite="mid:CAFZQphxR43wg3PsrOe_yx+tq2hUq99pxgrgwaY6HKJF0-NZ_8A@mail.gmail.com"
type="cite">Then its a bug and need to be reported at,
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://sourceforge.net/tracker/?group_id=232389&atid=1086410">http://sourceforge.net/tracker/?group_id=232389&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"><<a
moz-do-not-send="true"
href="mailto:marianarduini@gmail.com" target="_blank">marianarduini@gmail.com</a>></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 class="im">
<div><br>
</div>
<div>"<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't see any reason why you need to modify
opensips source code for this."</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
moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 class="HOEnZb"><font
color="#888888">Mariana.</font></span>
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">
On Wed, Nov 14, 2012 at 3:17 PM, Muhammad Shahzad
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:shaheryarkh@googlemail.com"
target="_blank">shaheryarkh@googlemail.com</a>></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't see any
reason why you need to modify opensips source
code for this.
<div>
<br>
</div>
<div><a moz-do-not-send="true"
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"><<a
moz-do-not-send="true"
href="mailto:marianarduini@gmail.com"
target="_blank">marianarduini@gmail.com</a>></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"><<a
moz-do-not-send="true"
href="mailto:shaheryarkh@googlemail.com"
target="_blank">shaheryarkh@googlemail.com</a>></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
moz-do-not-send="true"
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"><<a
moz-do-not-send="true"
href="mailto:marianarduini@gmail.com" target="_blank">marianarduini@gmail.com</a>></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 "<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>",
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
moz-do-not-send="true"
href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a
moz-do-not-send="true"
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
moz-do-not-send="true"
href="tel:%2B49%20176%2099%2083%2010%2085" value="+4917699831085"
target="_blank">+49
176 99 83 10 85</a><br>
MSN: <a
moz-do-not-send="true"
href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
Email: <a
moz-do-not-send="true"
href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
</font></span></div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="tel:%2B49%20176%2099%2083%2010%2085"
value="+4917699831085" target="_blank">+49
176 99 83 10 85</a><br>
MSN: <a moz-do-not-send="true"
href="mailto:shari_786pk@hotmail.com"
target="_blank">shari_786pk@hotmail.com</a><br>
Email: <a moz-do-not-send="true"
href="mailto:shaheryarkh@googlemail.com"
target="_blank">shaheryarkh@googlemail.com</a><br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
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: +49 176 99 83 10 85<br>
MSN: <a moz-do-not-send="true"
href="mailto:shari_786pk@hotmail.com" target="_blank">shari_786pk@hotmail.com</a><br>
Email: <a moz-do-not-send="true"
href="mailto:shaheryarkh@googlemail.com" target="_blank">shaheryarkh@googlemail.com</a><br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>