Hello,
really appreciating such feedback, it will help others looking for same
solution.
If you don't mind and have time, you can add it as a mini-howto in the wiki:
-
Thanks Daniel!
I have configured and its working fine.
I am adding details in case someone else needs the same:
/_Setup:_/
/loadmodule "avpops.so"/
/modparam("avpops","db_url","mysql://openser:openserrw@localhost
<mailto:openserrw@localhost>/kamailio")/
/modparam("avpops","avp_table","usr_preferences")/
/_*33 to enable:_/
/ if ($rU=~"^\*33.*") {/
/ strip(3);/
/ avp_printf("$avp(s:fwd_blind)","$ruri");/
/ ......./
/avp_db_delete("$from/username","$avp(s:fwd_blind)");/
/avp_db_store("$from/username","$avp(s:fwd_blind)");/
/ sl_send_reply("404","CFWD Set");/
/ ....}/
//
/_*32 to disable:_/
/ if ($rU=~"^\*32") {/
/avp_db_delete("$from/username","$avp(s:fwd_blind)");/
/ sl_send_reply("404","CFWD UnSet");/
/ ...... }/
/_Forwarding:_/
/if (avp_db_load("$ruri/username", "$avp(s:fwd_blind)")) {/
/ $from=$ruri;/
/ avp_pushto("$ruri", "$avp(s:fwd_blind)");/
/ .../
/ route(RELAY);/
/ ..../
Thanks!
Lucas Girard
On Fri, 2013-06-07 at 11:34 +0200, Daniel-Constantin Mierla wrote:
> Hello,
>
> you can do call forwarding with kamailio, no problem. In config file
> you have to execute call forwarding actions before handling user
> location.
>
> 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.
>
> Cheers,
> Daniel
>
> On 5/29/13 5:32 PM, Lucas Girard wrote:
>
>> Hi guys,
>> I need to implement a call forwarding (blind call forward) in a
>> kamailio.
>> Do you know if this is possible? There is a way that allow the
>> subscriber to configure it's own forwarding ?
>> Thanks in advance,
>>
>> Lucas
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
>>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -http://www.asipto.com
>
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda>
-http://www.linkedin.com/in/miconda
> Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
> *http://asipto.com/u/katu *
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users