[SR-Users] Question about call transfer and pickup

Lucas Girard lgirard at commpartner.net
Tue Nov 5 13:31:13 CET 2013


Hi Oleg, 
These are the steps to perform the call forwarding, may be you can use
something like that (avp_pushto) to perform the transfer:

Enable CF
*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");
      ....}

Disable CF
*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);
   ....

Setup

loadmodule "avpops.so"
modparam("avpops","db_url","mysql://openser:openserrw@localhost/kamailio")
modparam("avpops","avp_table","usr_preferences")


Regards,

Lucas Girard



On Tue, 2013-11-05 at 09:15 +0800, Гергарт Олег (Мобилон) wrote:
> Hello!
> 
> Tell me please, is there in kamailio opportunity to call transfer and
> pickup? If yes, where can I about this to read?
> 
>  
> 
> Thanks!
> 
>  
> 
> Regards, Oleg Gergart
> 
> 
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131105/574abdfe/attachment.html>


More information about the sr-users mailing list