<!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">
And this is in your failure route, right?<br>
do:<br>
rewritehostport()<br>
append_branch()<br>
avp_write("i:10"...<br>
t_relay() (or t_relay_to_udp if you really need to force udp)<br>
g-)<br>
<br>
<br>
<br>
inge wrote:
<blockquote cite="mid1168504377.22043.70.camel@legos01.legos.fr"
 type="cite">
  <pre wrap="">Hi Greger,

I've two function t_reply_to_udp, use in two conditionnals block. If the
flag is 24 and an other with 25.
According to the comments it's about the Voicemail. $
The avp_write function is set after these t_reply_to_udp.

To illustrate :

 if (isflagset(24)) {
                if (avp_db_load("$ruri/username",<a class="moz-txt-link-rfc2396E" href="s:vm_uri/usr_vm">"s:vm_uri/usr_vm"</a>)) {
                        avp_pushto("$ruri",<a class="moz-txt-link-rfc2396E" href="s:vm_uri">"s:vm_uri"</a>);
                        resetflag(24);
                        prefix("710");
                        rewritehostport("To_Asterisk"); #  Voice Mail IP
ADDRESS
                        append_branch();
                        t_relay_to_udp("Asterisk IP","Asterisk Port");
                        xlog("...");
                        avp_write("i:5", "inv_timeout");
                        break;

Thanks for your support.

Le mercredi 10 janvier 2007 à 09:01 +0100, Greger V. Teigre a écrit :
  </pre>
  <blockquote type="cite">
    <pre wrap="">Well, that's the way it is supposed to work. Are you sure the avp is
set before you call t_relay?
g-)

inge wrote: 
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi ram,

Thanks for your answer. 
I try to change it and it works.

This is the full parameters for tm in my config :

# ------------- tm parameters
modparam("tm", "fr_timer", 20)
modparam("tm", "wt_timer", 5)
modparam("tm", "fr_inv_timer", 15)
modparam("tm", "fr_inv_timer_avp", "inv_timeout")

Now, my question is, if I well understand, when I do an avp write on
inv_timeout, this should overwrite the default value ? It doesn't seem
to work.
For example, in my route for voicemail handler I've an  avp_write
("i:10", "inv_timeout");

But it's the default value of fr_inv_timer that match (ie. 15 sec).

Thanks for your support.

Le lundi 08 janvier 2007 à 22:44 +0530, ram a écrit :
  
      </pre>
      <blockquote type="cite">
        <pre wrap="">On 1/8/07, inge <a class="moz-txt-link-rfc2396E" href="mailto:inge@legos.fr">&lt;inge@legos.fr&gt;</a> wrote: 
        Hi all,
        
        I work on an existing configuration of SER. I'm not able to
        find the
        parameter wich define the time in seconds before SER redirect
        call to 
        Asterisk Voice Mail.
        
        In fact, I want to change this timing to put it in SER DB with
        a
        usr_preferences table like.
        
        Someone have an idea about the kind of line which could be
        define it ?
        
        Thanks for your help.
 

modparam("tm", "fr_timer", 10)
modparam("tm", "fr_inv_timer", 35)
modparam("tm", "wt_timer", 1)
 

should do the job.
 
ram
 
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
    
        </pre>
      </blockquote>
      <pre wrap="">_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>


  
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>