<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    really appreciating such feedback, it will help others looking for
    same solution.<br>
    <br>
    If you don't mind and have time, you can add it as a mini-howto in
    the wiki:<br>
    - <a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/tutorials/mini-howto-admin/main">http://www.kamailio.org/wiki/tutorials/mini-howto-admin/main</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 6/7/13 5:28 PM, Lucas Girard wrote:<br>
    </div>
    <blockquote cite="mid:1370618923.2907.149.camel@debian.cp"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="GENERATOR" content="GtkHTML/3.30.3">
      Thanks Daniel!<br>
      I have configured and its working fine.<br>
      <br>
      I am adding details in case someone else needs the same:<br>
      <br>
      <br>
      <i><font size="2"><u>Setup:</u></font></i><br>
      <br>
      <i><font size="2">loadmodule "avpops.so"</font></i><br>
      <i><font size="2">modparam("avpops","db_url","mysql://openser:<a
            moz-do-not-send="true" href="mailto:openserrw@localhost">openserrw@localhost</a>/kamailio")</font></i><br>
      <i><font size="2">modparam("avpops","avp_table","usr_preferences")</font></i><br>
      <br>
      <br>
      <i><font size="2"><u> *33 to enable:</u></font></i><br>
      <br>
      <i><font size="2">  if ($rU=~"^\*33.*") {</font></i><br>
      <i><font size="2">      strip(3);</font></i><br>
      <i><font size="2">      avp_printf("$avp(s:fwd_blind)","$ruri");</font></i><br>
      <i><font size="2">      .......</font></i><br>
      <i><font size="2">     
          avp_db_delete("$from/username","$avp(s:fwd_blind)");</font></i><br>
      <i><font size="2">     
          avp_db_store("$from/username","$avp(s:fwd_blind)");</font></i><br>
      <i><font size="2">      sl_send_reply("404","CFWD Set");</font></i><br>
      <i><font size="2">      ....}</font></i><br>
      <i><font size="2"> </font></i><br>
      <i><font size="2"><u> *32 to disable:</u></font></i><br>
      <br>
      <i><font size="2">  if ($rU=~"^\*32") {</font></i><br>
      <i><font size="2">     
          avp_db_delete("$from/username","$avp(s:fwd_blind)");</font></i><br>
      <i><font size="2">      sl_send_reply("404","CFWD UnSet");</font></i><br>
      <i><font size="2">       ......  }</font></i><br>
      <br>
      <i><font size="2"><u>Forwarding:</u></font></i><br>
      <br>
      <i><font size="2">if (avp_db_load("$ruri/username",
          "$avp(s:fwd_blind)")) {</font></i><br>
      <i><font size="2">   $from=$ruri;</font></i><br>
      <i><font size="2">   avp_pushto("$ruri", "$avp(s:fwd_blind)");</font></i><br>
      <i><font size="2">   ...</font></i><br>
      <i><font size="2">   route(RELAY);</font></i><br>
      <i><font size="2">   ....</font></i><br>
      <br>
      <br>
      <br>
      Thanks!<br>
      <br>
      Lucas Girard<br>
      <br>
      <br>
      <br>
      <br>
      On Fri, 2013-06-07 at 11:34 +0200, Daniel-Constantin Mierla wrote:<br>
      <blockquote type="CITE"> Hello,<br>
        <br>
        you can do call forwarding with kamailio, no problem. In config
        file you have to execute call forwarding actions before handling
        user location.<br>
        <br>
        You have to store somewhere the details, one way is in
        usr_preferences table and then load the new address with avpops.
        You can store in any table you want and use sqlops for loading
        the address. If you want to do with caching, then look at htable
        module.<br>
        <br>
        Cheers,<br>
        Daniel<br>
        <br>
      </blockquote>
      <blockquote type="CITE"> On 5/29/13 5:32 PM, Lucas Girard wrote:<br>
        <br>
      </blockquote>
      <blockquote type="CITE">
        <blockquote type="CITE"> <font color="#000000">Hi guys,</font><br>
          <font color="#000000">I need to implement a call forwarding
            (blind call forward) in a kamailio.</font><br>
          <font color="#000000">Do you know if this is possible? There
            is a way that allow the subscriber to configure it's own
            forwarding ?</font><br>
          <font color="#000000">Thanks in advance,</font><br>
          <br>
          <font color="#000000">Lucas</font> <br>
          <br>
          <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        </blockquote>
        <br>
        <pre>-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a moz-do-not-send="true" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
  </body>
</html>