<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
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 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 HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A 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 HREF="http://www.asipto.com">http://www.asipto.com</A>
<A HREF="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</A> - <A 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 HREF="http://asipto.com/u/katu">http://asipto.com/u/katu</A> *
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A 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>
</BODY>
</HTML>