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:
- http://www.kamailio.org/wiki/tutorials/mini-howto-admin/main
Cheers,
Daniel
On 6/7/13 5:28 PM, Lucas Girard wrote:
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/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@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://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@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://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013 * http://asipto.com/u/katu *